11.11.2013, 17:52
OnPlayerEnterVehicle is called when a player starts to enter a vehicle, so the player is not in yet. Use OnPlayerStateChange instead.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if (Pizzajob == 1) SendClientMessage(playerid,0xF5FF00FF, "[JOBHELP]:Use /deliverpizza to start your job");
else if (Pizzajob == 0) RemovePlayerFromVehicle(playerid);
}
}
return 1;
}