20.10.2010, 18:08
lol, i tryed to make dcmd_admins but it only shows the
name to who typed admin and it sends the message to all
why?
name to who typed admin and it sends the message to all
why?
Код:
dcmd_admins(playerid,params[]) { #pragma unused params new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); for(new i = 0; i < MAX_PLAYERS; i++) { if(PInfo[i][Level] > 1) { format(string, sizeof string, "(%i)%s/n/",i, pName); SendClientMessage(i,LGREEN, string); } } return 1; }