OnVehicleDeath
#1

how can i count OnVehicleDeath?
i have a personal vehicle system and when a vehicle death i would like to create a TD
every time when a car deth create a TD.
that is my script and what i edit
Reply
#2

nobody can help me?
Reply
#3

bump
Reply
#4

pawn Код:
new countDeadVehicles;

public OnVehicleDeath(vehicleid, killerid)
{
    countDeadVehicles ++;
    return 1;
}
This will add 1 to countDeadVehicles everytime a vehicle dies and you can show that in a td by using TextDrawSetString.
Reply
#5

thanks is working but when the car dead is count +1 for all plyer not only for person to whom the car died
Reply
#6

Then turn it into a per-player variable:

pawn Код:
new countDeadVehicles[MAX_PLAYERS];
public OnVehicleDeath(vehicleid, killerid)
{
    countDeadVehicles[killerid] ++;
    return 1;
}
Will increase it for killerid.
Reply
#7

remained just as
look into my script please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)