Linking a car to a team?
#1

How to link a car to a team,
So like a team vehicle, So only one team can enter it,
Reply
#2

I am using this.
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == XXXXX) {
    if(GetPlayerTeam(forplayerid) == XXXXX) {
            SetVehicleParamsForPlayer(XXXXX,forplayerid,1,1);
        }
        else
        {
          SetVehicleParamsForPlayer(XXXXX,forplayerid,1,0);
        }
    }
    else if(vehicleid == XXXXX222)
    {
    if(GetPlayerTeam(forplayerid) == XXXXX222)
        {
            SetVehicleParamsForPlayer(XXXXX222,forplayerid,1,1);
        }
        else
        {
          SetVehicleParamsForPlayer(XXXXX222,forplayerid,1,0);
        }
    }
Reply
#3

How about linking vehicle ids to a certain team

Like

597 = Police Car SFPD,

So like i put 597 and it makes every police car for one team,
You know what i mean, I hope xd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)