17.03.2009, 19:50
Код:
public Startup(playerid, vehicleid) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid]) { } else if(!engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)"); TogglePlayerControllable(playerid, false); vehicleEntered[playerid][vehicleid] = true; } else if(!engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SendClientMessage(playerid, COLOR_GRAD3, "Start Your Engine! (/start)"); TogglePlayerControllable(playerid, false); } }