public OnVehicleDeath(vehicleid, killerid)
#6

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
pawn Код:
stock GetVehicleDriver(vehicleid)
{
    foreach(Player,i)//replace with usual for(.. if you dont use foreach
    {
        if (IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2)
        {
            return i;
        }
    }
    return -1;
}
Im not sure about this code, i need to check the playerids vehicle id, and this code doesnt do that, or are im wrong?
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)