11.09.2012, 15:35
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) zijn, etc.
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vModel = GetVehicleModel(GetPlayerVehicleID(playerid));
if((vModel == 432 && GetPlayerScore(playerid) < 500) || (vModel == 520 && GetPlayerScore(playerid) < 500))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "You can't enter this Vehicle yet check /vehicles for the rank needed to enter this vehicle!");
}
}
return 1;
}