CMD:motor(playerid, params[]){ new EngineStatus,lights, alarm, doors, bonnet, boot, objective; new vid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(vid != INVALID_VEHICLE_ID && EngineStatus== 0) { GetVehicleParamsEx(GetPlayerVehicleID(playerid), EngineStatus, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective); } else { GetVehicleParamsEx(GetPlayerVehicleID(playerid), EngineStatus, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective); } } else { SendClientMessage(playerid,COLOR_ULTRARED,\"(( Nem vagy jármûben! ))\"); } return 1;}
CMD:motor(playerid, params[]){ if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_ULTRARED,\"(( Nem vagy jármûben! ))\"); if(GetPlayerVehicleID(playerid) == jogsicar1 && !JogsiElkezdAM[playerid] && !JogsiElkezdA[playerid] && !JogsiElkezdB[playerid]) return 1; new EngineStatus,lights, alarm, doors, bonnet, boot, objective, vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid, EngineStatus, lights, alarm, doors, bonnet, boot, objective); if(!EngineStatus) { SetVehicleParamsEx(vid, 1, lights, alarm, doors, bonnet, boot, objective); SetPlayerCheckpoint(playerid, ...); } else SetVehicleParamsEx(vid, 0, lights, alarm, doors, bonnet, boot, objective); return 1;}
CMD:motor(playerid, params[]){ if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_ULTRARED,\"(( Nem vagy jármûben! ))\"); if(GetPlayerVehicleID(playerid) == jogsicar1 && !JogsiElkezdAM[playerid] && !JogsiElkezdA[playerid] && !JogsiElkezdB[playerid]) return 1; new EngineStatus,lights, alarm, doors, bonnet, boot, objective, vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid, EngineStatus, lights, alarm, doors, bonnet, boot, objective); if(!EngineStatus) { SetVehicleParamsEx(vid, 1, lights, alarm, doors, bonnet, boot, objective); SetPlayerCheckpoint(playerid, ...); } else SetVehicleParamsEx(vid, 0, lights, alarm, doors, bonnet, boot, objective); return 1;} Elvileg jó. A checkpointhoz írd oda a koordinátákat.