SA-MP Forums Archive
AOD, needed help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: AOD, needed help (/showthread.php?tid=70563)



AOD, needed help - Martinike - 25.03.2009

Код:
//--------------------------------[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.