How can i make a team not able to drive or sit in a vehicle? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can i make a team not able to drive or sit in a vehicle? (
/showthread.php?tid=520198)
How can i make a team not able to drive or sit in a vehicle? -
Johnson_Brooks - 17.06.2014
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.
Re: How can i make a team not able to drive or sit in a vehicle? -
Dziugsas - 17.06.2014
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.