10.05.2014, 11:10
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER)
{
if (GetVehicleModel(GetVehiclePlayerID(playerid)) == 487)
{
if (!isPilot[playerid])
{
SendClientMessage(playerid, COLOR_RED, "You must be the Pilot class to fly helicopters.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}

