30.10.2010, 22:33
Quote:
pawn Код:
|
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if (Engine[vehicleid] == 0)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "Please type ~r~/eon~r~ to turn the Vehicles Engine on", 4, 3000);
}
else if(Engine[vehicleid] == 1) return SendClientMessage(playerid,color,"The engine is on you can drive");
}
}
return 1;
}