SA-MP Forums Archive
How to check when some vehicle explode? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to check when some vehicle explode? (/showthread.php?tid=170577)



How to check when some vehicle explode? - CoaPsyFactor - 23.08.2010

hi all, i don't know is there any function that check when some vehicle explode?


Re: How to check when some vehicle explode? - bertuspiteri - 23.08.2010

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
hi all, i don't know is there any function that check when some vehicle explode?
Well I don't really know if this works cause I never used it but in new pawno documents you can find this.

pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}



Re: How to check when some vehicle explode? - CoaPsyFactor - 23.08.2010

thanks man, that's the name of function that i was looking for. . .


Re: How to check when some vehicle explode? - bertuspiteri - 23.08.2010

pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
    new string[40];
    if(killerid == INVALID_PLAYER_ID) format(string, sizeof(string), "Vehicle %i was destroyed.", vehicleid);
    else format(string, sizeof(string), "Vehicle %i was destroyed by ID %i", vehicleid, killerid);
    SendClientMessageToAll(0xFFFFFFFF, string);
    return 1;
}
Found it on sa-mp wiki