[HELP] Send Death Message With Weapon Name..?
#3

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)