29.09.2011, 19:57
I want to create a command for Admins like /secretadmin to hide your name out of /admins list, so no one can see you in /admin list..
I will appreciate your help,
thanks.
I will appreciate your help,
thanks.
Код:
if(strcmp(cmd, "/admins", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 0) { SendClientMessage(playerid, COLOR_WHITE, "Admins Online:"); //foreach(Player, i) for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] > 0) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%d Admin: %s",PlayerInfo[i][pAdmin],giveplayer); SendClientMessage(playerid, COLOR_GREY, string); } } } } } return 1; }