12.02.2013, 18:07
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 520 && GetPlayerScore(playerid) < 1000)
{
SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
RemovePlayerFromVehicle(playerid);
}
if(GetVehicleModel(vehicleid) == 432 && GetPlayerScore(playerid) < 1000 )
{
SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
RemovePlayerFromVehicle( playerid );
}
}
return 1;
}