SA-MP Forums Archive
Set car to team? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Set car to team? (/showthread.php?tid=126516)



Set car to team? - too803 - 08.02.2010

The only thing I really dont understand is how to set a car to a TEAM.Help PLEASE


Re: Set car to team? - too803 - 09.02.2010

Bump


Re: Set car to team? - BlackFoX - 09.02.2010

pawn Код:
new copcar; // top of script for example

copcar = CreateVehicle(...); //Creates it and Returns the ID


//Check it in Onplayerstatechange...

if(newstate == 2)// Is Player the Driver..
{
if(GetPlayerVehicleID(playerid) == copcar) // Copcar Contains the ID
{
if(Team[playerid]!=4)RemovePlayerFromVehicle(playerid); // for example Teamvar and Teamnum
}
}