Jump to content
  • 0

Comanda aod


ScripterU

Question

3 answers to this question

Recommended Posts

modifici din comanda /aod :

  if(strcmp(cmd, "/aod", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		    if(AdminDuty[playerid] == 1)
		    {
                       GetPlayerName(playerid, sendername, sizeof(sendername));
			           format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid);
                       SendClientMessageToAll(COLOR_DBLUE,string);
   				       AdminDuty[playerid] = 0;
				       SetPlayerHealth(playerid,100);
				       SetPlayerArmour(playerid,0);
				       SetPlayerToTeamColor(playerid);
			  }

		    else
		    {
                GetPlayerName(playerid, sendername, sizeof(sendername));
		    	format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);
				SendClientMessageToAll(0xFAAFBEFF,string);
				AdminDuty[playerid] = 1;
				SetPlayerHealth(playerid,99999);
				SetPlayerArmour(playerid,99999);
				SetPlayerColor(playerid,0xFAAFBEFF);
				for(new i = 0; i < MAX_PLAYERS; i ++)
				       {
				         if(IsPlayerConnected(i))
				        {
					      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
					    }
				       }
		    }
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");
		}
		return 1;
	}

vrei sa vb cu mine? add [email protected] pe yahoo mesenger ;)

Link to comment
Share on other sites

modifici din comanda /aod :

  if(strcmp(cmd, "/aod", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		    if(AdminDuty[playerid] == 1)
		    {
                       GetPlayerName(playerid, sendername, sizeof(sendername));
			           format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid);
                       SendClientMessageToAll(COLOR_DBLUE,string);
   				       AdminDuty[playerid] = 0;
				       SetPlayerHealth(playerid,100);
				       SetPlayerArmour(playerid,0);
				       SetPlayerToTeamColor(playerid);
			  }

		    else
		    {
                GetPlayerName(playerid, sendername, sizeof(sendername));
		    	format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);
				SendClientMessageToAll(0xFAAFBEFF,string);
				AdminDuty[playerid] = 1;
				SetPlayerHealth(playerid,99999);
				SetPlayerArmour(playerid,99999);
				SetPlayerColor(playerid,0xFAAFBEFF);
				for(new i = 0; i < MAX_PLAYERS; i ++)
				       {
				         if(IsPlayerConnected(i))
				        {
					      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
					    }
				       }
		    }
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");
		}
		return 1;
	}

prate fara suparare nu e ce cauta el..el ar vrea ceva care sati seteze numele cu Scipteru[AOD] si cand dai dinou aod sa iesi din sati apare numele dor Scipteru

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.