AOD, needed help
#1

Код:
//--------------------------------[aod]-------------------------------------------------------------------
	if(strcmp(cmd, "/aod", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pAdmin] == 1)
	    {
				SetPlayerColor(playerid,TEAM_BALLAS_COLOR);
				SetPlayerArmour(playerid, 100);
	    }
	    else if(PlayerInfo[playerid][pAdmin] >= 2)
	    {
	      SetPlayerColor(playerid,TEAM_BALLAS_COLOR);
				SetPlayerArmour(playerid, 999999);
				SetPlayerHealth(playerid, 999999);
			}
	    else
	    {
	      SendClientMessage(playerid, COLOR_GREY, " You are not an Admin!");
	      return 1;
	    }
	  }
		return 1;
	}
// I want change color to Yellow. But help.-
I have that aod code, but if i type /aod and im now aod, i type /aod, and im same aod, but how get aod off ?
and i want see if i type /aod and sends all messages Admin Jack_Defender is admin on duty. if off then Admin Jack_Defender is admin off duty.

Thanks,
Martinike.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)