Message help
#1

If a player got killed, I just want to show the logs to the admins only not player. Is there a way to do that?
Reply
#2

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[128];
	format(string, sizeof(string), "Player: %d killed Player: %d", killerid, playerid);
    SendClientMessageToAdmins(COLOR_GREEN, string);
	return 1;
}

stock SendClientMessageToAdmins(color, string[])
{
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
	        if(PlayerData[i][AdminLevel] >= 1)
	        {
				SendClientMessage(i, color, string);
			}
		}
	}
}
Reply
#3

ThanKs alot dude
Reply
#4

No problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)