25.09.2009, 19:36
Let me show it;
Код:
public OnPlayerDeath(playerid,killerid,reason)
{
//Normal kill
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 got 1 point for killing %s. %s.",sName,fName,gunname);
SendClientMessageToAll(COLOR_HL2,string);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
return 1;
}

