30.04.2017, 10:32
Creating something like:
Change if(Player[i][AdminLevel] to whatever yours is of course.
OnPlayerDeath
Same for OnPlayerConnect & OnPlayerDisconnect.
Only examples.
Код:
public SendToAdmins(colour, string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(Player[i][AdminLevel] >= 1) { SendClientMessage(i, colour, string); } } return 1; }
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);
Only examples.