How can I create the /secretadmin cmd
#1

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.

Код:
	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;
	}
Reply


Messages In This Thread
How can I create the /secretadmin cmd - by Cr4zyR0d - 29.09.2011, 19:57
Re: How can I create the /secretadmin cmd - by [MG]Dimi - 29.09.2011, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)