11.03.2013, 21:13
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 17:57.
)
^^^^^^^^
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
new string[128],WeapName[32],Name[MAX_PLAYER_NAME],KillerName[MAX_PLAYER_NAME];
GetWeaponName(reason, WeapName, sizeof(WeapName));
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
GetPlayerName(killerid, KillerName, MAX_PLAYER_NAME);
format(string,sizeof(string),"%s Has Killed %s With A %s. ",Name, KillerName,WeapName);
SendClientMessageToAll(-1, string);
}
return 1;
}
format(string,sizeof(string),"%s Has Killed %s With A %s. ", KillerName, Name, WeapName);