06.12.2009, 13:42
somewhere I read something like "GetPlayerDeathReasonName" Have you ever heard? is a way to get letters in the cause of death?
GetWeaponName(reason, string, sizeof(string))
public OnPlayerDeath(playerid,killerid,reason)
{
new gunname[32], string[64], 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),"%s has wasted %s using a %s.",sName,fName,gunname);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
Originally Posted by Malice
pawn Код:
|
Originally Posted by Malice
pawn Код:
Just found the example. https://sampwiki.blast.hk/wiki/GetWeaponName |