25.04.2012, 11:32
Do you already define your Team?
if yes here is the example
if yes here is the example
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(vid) == 522)
{
if(!gTeam[playerid] != TEAM_COPS) return RemovePlayerFromVehicle(playerid); //if player is not team cop he cannot enter the vehicle id 522 which is NRG-500
}
}
return 1;
}