How can i make a team not able to drive or sit in a vehicle?
#1

As the title says , i would like to know how can i make a code that will disallow a team from entering any vehicle .
I would appriciate any help given.
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(PlayerInfo[playerid][pTeam] == YOURTEAMID)
    {
        SendClientMessage(playerid,COL_RED,"Welcome back .....");
    }
    else
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid,COL_RED,"This is not your team vehicle!");
    }
    return 1;
}
Example for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)