only cops can enter police vehicles
#6

why not explain more clear

pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    if(gTeam[playerid] == your team) // team u want to remove
    {
        if(vehicle > 411) // car id for example i used a infernus
        {
            RemovePlayerFromVehicle(playerid); // removes player from vehicle
            SendClientMessage(playerid, your color, "SERVER: You can not enter this vehicle"); // message you want to send to the player that is not in your team
        }
    }


}
EDIT: for cops to enter vehicle the top one was the team not allowed the bottom one is the team allowed to enter

pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    if(gTeam[playerid] == your team) // team that is allow to enter the car
    {
        if(vehicle > 411) // car id for example i used a infernus
        {
            SendClientMessage(playerid, your color, "SERVER: Welcome to your vehicle"); // message for the person allow to enter
        }
    }

}
Reply


Messages In This Thread
only cops can enter police vehicles - by Black_Sun1 - 31.10.2010, 17:57
Re: only cops can enter police vehicles - by Mike_Peterson - 31.10.2010, 17:59
Re: only cops can enter police vehicles - by Duck - 31.10.2010, 17:59
Re: only cops can enter police vehicles - by Duck - 31.10.2010, 18:02
Re: only cops can enter police vehicles - by WillyP - 31.10.2010, 18:02
Re: only cops can enter police vehicles - by Kitten - 31.10.2010, 18:14
Re: only cops can enter police vehicles - by Duck - 31.10.2010, 18:16
Re: only cops can enter police vehicles - by Cameltoe - 31.10.2010, 18:19
Re: only cops can enter police vehicles - by Steven82 - 31.10.2010, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)