12.04.2015, 10:12
Hello!
You can use the function GetWeaponName:
Mencent
You can use the function GetWeaponName:
PHP код:
new gunname[32],string[145],fName[MAX_PLAYER_NAME],sName[MAX_PLAYER_NAME];
GetWeaponName(reason,gunname,sizeof gunname);
GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
format(string,sizeof string,"player %s has been killed by player %s with %s",fName,sName,gunname);
SendClientMessageToAll(-1,string);