17.06.2014, 21:20
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.
I would appriciate any help given.
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;
}