09.02.2010, 00:57
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
}
}