04.10.2010, 16:25
do it like:
You can get the reason here:
https://sampwiki.blast.hk/wiki/Weapons
(the ID is = the reason)
Код:
OnPlayerDeath(playerid, killerid, reason) { new string[200], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(killerid, name2, sizeof(name2)); if(reason == 0){ format(string, sizeof(string), "%s Killed %s with Fists", name2, name); AdminMsg(string); //YOU NEED TO DEFINE THE ADMIN MESSAGE FIRST / REPLACE THIS WITH YOUR ADMINMSG CODE } else if(reason == 1){ format(string, sizeof(string), "%s Killed %s with Brass Knuckles", name2, name); AdminMsg(string); }else if(reason == 2){ ......... } etc.
https://sampwiki.blast.hk/wiki/Weapons
(the ID is = the reason)