Only police can enter vehicle
#1

I trying to make a system so only cops can enter their vehicle, but the others team can still enter it.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new newcar;
    if(CopCar(newcar))
    {
        if (gTeam[playerid] == TEAM_COPS)
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, COLOR_RED, "You're not in the police team");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Only police can enter vehicle - by N0FeaR - 10.10.2015, 09:31
Re: Only police can enter vehicle - by Dusan01 - 10.10.2015, 09:36
Re: Only police can enter vehicle - by Sellize - 10.10.2015, 09:39
Re: Only police can enter vehicle - by N0FeaR - 10.10.2015, 09:45

Forum Jump:


Users browsing this thread: 2 Guest(s)