Faction Vehicles help.
#3

You use OnPlayerStateChange, like this:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vehicle) == 598)
        {
            if(pTeam[playerid] != team_lspd)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, 0xFFFFFFFF, "You're not a cop.");
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Faction Vehicles help. - by Heisenbergx2 - 06.10.2013, 16:34
Re: Faction Vehicles help. - by Heisenbergx2 - 06.10.2013, 16:37
Re: Faction Vehicles help. - by DanishHaq - 06.10.2013, 16:38
Re: Faction Vehicles help. - by xXShadowXx - 06.10.2013, 16:38
Re: Faction Vehicles help. - by Heisenbergx2 - 06.10.2013, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)