Detect PlayerVehicleDeath
#1

I'm trying to make it so when somebody shoots another player that is in a rustler (Dogfight type server) and there vehicle gets destroyed it announces it to the server e.g. "NAME took down NAME" or something like that.

The code below i found a while back but it doesent really do what i want it to do :L

PHP код:
public OnVehicleDeath(vehicleidkillerid)
{
    new 
string[128];
    if (
killerid != GetVehicleDriver(vehicleid) && (GetVehicleDriver(vehicleid) != INVALID_PLAYER_ID || killerid != INVALID_PLAYER_ID))
    {
        
format(stringsizeof(string), "[KILL] - %s Took Down  %s"PlayerName(GetVehicleDriver(vehicleid)), PlayerName(killerid));
        
SendClientMessageToAll(COLOR_RED,string);
    }
    return 
1;

If you have any idea of an include or some code that would be able to make this happen please let me know! Thanks
Reply


Messages In This Thread
Detect PlayerVehicleDeath - by 2K9CON - 20.03.2013, 19:27
Re: Detect PlayerVehicleDeath - by ReVo_ - 20.03.2013, 19:48
Re: Detect PlayerVehicleDeath - by Konstantinos - 20.03.2013, 19:50
Re: Detect PlayerVehicleDeath - by 2K9CON - 20.03.2013, 19:56
Re: Detect PlayerVehicleDeath - by Konstantinos - 20.03.2013, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)