20.08.2012, 04:39
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?
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); } } } }