20.03.2013, 19:27
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
If you have any idea of an include or some code that would be able to make this happen please let me know! Thanks
The code below i found a while back but it doesent really do what i want it to do :L
PHP код:
public OnVehicleDeath(vehicleid, killerid)
{
new string[128];
if (killerid != GetVehicleDriver(vehicleid) && (GetVehicleDriver(vehicleid) != INVALID_PLAYER_ID || killerid != INVALID_PLAYER_ID))
{
format(string, sizeof(string), "[KILL] - %s Took Down %s", PlayerName(GetVehicleDriver(vehicleid)), PlayerName(killerid));
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}
