07.04.2012, 23:14
hi,
i cant destroy the cars i spawned with createvehicle.
Wheres the bug?
They just arent destroyed...
i cant destroy the cars i spawned with createvehicle.
Wheres the bug?
They just arent destroyed...
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
Vehicle[i]=CreateVehicle(VehicleID,CarPos1[i][0],CarPos1[i][1],CarPos1[i][2],CarPos1[i][4],-1,-1,20);
}
public OnVehicleDeath(vehicleid, killerid)
{
DestroyVehicle(RWVehicle[vehicleid]);
return 1;
}
foreach(Player,i)DestroyVehicle(RWVehicle[i]);