Set car to team?
#3

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
}
}
Reply


Messages In This Thread
Set car to team? - by too803 - 08.02.2010, 22:00
Re: Set car to team? - by too803 - 09.02.2010, 00:19
Re: Set car to team? - by BlackFoX - 09.02.2010, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)