cars rep + [help]
#3

Do you already define your Team?

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;
}
Reply


Messages In This Thread
cars rep + [help] - by oscar7610 - 25.04.2012, 11:28
Re: cars rep + [help] - by Andrew97 - 25.04.2012, 11:30
Re: cars rep + [help] - by RollTi - 25.04.2012, 11:32
Re: cars rep + [help] - by oscar7610 - 25.04.2012, 11:41
Re: cars rep + [help] - by oscar7610 - 25.04.2012, 11:43
Re: cars rep + [help] - by antonio112 - 25.04.2012, 11:44
Re: cars rep + [help] - by RollTi - 25.04.2012, 11:45
Re: cars rep + [help] - by oscar7610 - 25.04.2012, 11:47
Re: cars rep + [help] - by oscar7610 - 25.04.2012, 11:52
Re: cars rep + [help] - by antonio112 - 25.04.2012, 11:59

Forum Jump:


Users browsing this thread: 3 Guest(s)