25.08.2011, 23:49
pawn Код:
//OnPlayerState callback up here
if(newstate == 2)
{
new vehicle;
vehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vehicle == 421)
{
if(!(gTeam[playerid] == TEAM_DRIVERS && GetPlayerScore(playerid) >= 120)) //if the player is in the right team and has the right score
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "U need 120 for this car");
return 1;
}
}
return 1;
}