public OnVehicleDeath(vehicleid, killerid)
#8

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


Messages In This Thread
public OnVehicleDeath(vehicleid, killerid) - by cruising - 13.01.2012, 11:41
Re: public OnVehicleDeath(vehicleid, killerid) - by iPLEOMAX - 13.01.2012, 11:45
Re: public OnVehicleDeath(vehicleid, killerid) - by Voldemort - 13.01.2012, 11:47
Re: public OnVehicleDeath(vehicleid, killerid) - by iPLEOMAX - 13.01.2012, 11:51
Re: public OnVehicleDeath(vehicleid, killerid) - by cruising - 13.01.2012, 11:53
Re: public OnVehicleDeath(vehicleid, killerid) - by cruising - 13.01.2012, 11:57
Re: public OnVehicleDeath(vehicleid, killerid) - by Voldemort - 13.01.2012, 12:03
Re: public OnVehicleDeath(vehicleid, killerid) - by cruising - 13.01.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)