Adminduty, hides from /admins
#1

Hello can anyone please help me out of this situation.. i got this command /adminduty and i want to make it so it hides the admin from /admins (list)

This is how it looks alike at the moment..
Also how do i remove the player name over their head in this chase ?
Код:
	if(!strcmp(cmdtext, "/adminduty", true)) // By Ellis
	{
		if(IsPlayerConnected(playerid))
		{
		  if(gPlayerLogged[playerid] == 0)
		  {
		    SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");
				return 1;
		  }
		  if(PlayerInfo[playerid][pAdmin] > 0)
		  {
		    if(AdminDuty[playerid] == 0)
		    {
		      AdminDuty[playerid] = 1;
		      SetPlayerArmour(playerid, 999);
					SetPlayerHealth(playerid, 999);
					SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "[ADMIN] [ID:%d]%s goes on duty as admin", playerid, sendername);
					ABroadCast(COLOR_YELLOW,string,1);
					if(PlayerInfo[playerid][pAdmin] >= 5)
					{
					  for(new i = 0; i < sizeof(CarInfo); i++)
						{
							SetVehicleParamsForPlayer(i,playerid,0,0);
						}
					}
					return 1;
		    }
		    else if(AdminDuty[playerid] == 1)
		    {
		      AdminDuty[playerid] = 0;
		      SetPlayerArmour(playerid, 0);
					SetPlayerHealth(playerid, 100);
					SetPlayerColor(playerid,TEAM_HIT_COLOR);
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, sizeof(string), "[ADMIN] [ID:%d]%s goes off duty as admin", playerid, sendername);
					ABroadCast(COLOR_YELLOW,string,1);
					return 1;
		    }
		  }
		  else
		  {
		    SendClientMessage(playerid, COLOR_GREY, "  You're not the admin !");
		    return 1;
		  }
		}
	  return 1;
	}
Reply


Messages In This Thread
Adminduty, hides from /admins - by Chivava - 07.02.2010, 20:46
Re: Adminduty, hides from /admins - by Chivava - 08.02.2010, 06:15
Re: Adminduty, hides from /admins - by ettans - 08.02.2010, 06:22
Re: Adminduty, hides from /admins - by Chivava - 08.02.2010, 06:24
Re: Adminduty, hides from /admins - by ettans - 08.02.2010, 06:36
Re: Adminduty, hides from /admins - by Chivava - 08.02.2010, 06:43
Re: Adminduty, hides from /admins - by Onyx09 - 08.02.2010, 06:44
Re: Adminduty, hides from /admins - by ettans - 08.02.2010, 06:45
Re: Adminduty, hides from /admins - by Onyx09 - 08.02.2010, 06:48
Re: Adminduty, hides from /admins - by Chivava - 08.02.2010, 06:55

Forum Jump:


Users browsing this thread: 3 Guest(s)