Death Screen
#2

Creating something like:
Код:
public SendToAdmins(colour, string[])
{
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
          if(Player[i][AdminLevel] >= 1)
         { 
              SendClientMessage(i, colour, string);
         }
    }
  return 1;
}
Change if(Player[i][AdminLevel] to whatever yours is of course.

OnPlayerDeath
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[128], weapon[128];
	GetWeaponName(reason, weapon, sizeof(weapon));

        format(string, sizeof(string), "AdmWarn: %s killed %s with a(an) %s.", GetName(killerid), GetName(playerid), weapon);
	SendToAdmins(YELLOW, string);
Same for OnPlayerConnect & OnPlayerDisconnect.

Only examples.
Reply


Messages In This Thread
Death Screen - by DavidSF - 30.04.2017, 09:23
Re: Death Screen - by Kane - 30.04.2017, 10:32
Re: Death Screen - by Sew_Sumi - 30.04.2017, 10:58
Re: Death Screen - by Kane - 30.04.2017, 11:11
Re: Death Screen - by DavidSF - 30.04.2017, 12:20
Re: Death Screen - by Sew_Sumi - 30.04.2017, 19:02
Re: Death Screen - by DavidSF - 18.05.2017, 19:23
Re: Death Screen - by Sew_Sumi - 19.05.2017, 10:22
Re: Death Screen - by Logic_ - 19.05.2017, 11:03
Re: Death Screen - by DavidSF - 22.05.2017, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)