How to check when some vehicle explode?
#1

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)