Quote:
Originally Posted by Voldemort
Then I dont get your need, why you need player involve in vehicle functions, just use:
pawn Код:
public OnVehicleDeath(vehicleid, killerid) { DestroyObject(VehicleBomb[vehicleid][0]); DestroyObject(VehicleBomb[vehicleid][1]); VehicleFire[vehicleid] = 0; return 1; }
Because there is only 1 VehicleBomb[vehicleid][0]); object, dont need to make a loop for players
|
The thing is if you use the /load cmd and get ur bombs, and you crash ur vehicle, its also removes the bombs for all other players and not only on your own vehicle you was using.
And same on this code..if you exit, you remove all other players bombs to
pawn Код:
COMMAND:unload(playerid,vehicleid, params[])
{
new id;
id = GetPlayerVehicleID(playerid);
DestroyObject(VehicleBomb[id][0]);
DestroyObject(VehicleBomb[id][1]);
VehicleFire[id] = 1;
return 1;
}