19.02.2011, 23:58
Quote:
|
thx it worked with a little editing
![]() another question i want to ask about: When the cars explode they respawn the place i wrote /infernus. how can i get them removed when they explode ? |
.pawn Код:
//Put In The Top of your GameMode:
new CreatedVehicleVar[MAX_PLAYERS];
//In your command, change this line:
CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600);
//for:
CreatedVehicleVar[playerid] = CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600);
//And at least, put it in OnVehicleDeath callback:
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(CreatedVehicleVar[x] == vehicleid)
{
DestroyVehicle(vehicleid);
}
}


