Jump to content
  • 0

playeru pe harta la /aod


impulse81

Question

10 answers to this question

Recommended Posts

Cum fac sa apara adminul pe harta cand el da /aod .? pana acu mergea dar am pus ShowPlayersMarker(0); ca sa nu mai apara playerii pe harta

ShowPlayerMarkers(numar);

0 -> fals, nu ii arata

1 -> adevarat, ii arata pe toti

2 -> ii arata pe cei de langa tine

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;
	}

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

Guest mafia2

Aceasi problema am si eu ShowPlayerMarkers(0); si nu mi se vede dar daca sterg asta "'ShowPlayerMarkers(numar);'''' mi se vad playeri pe mapa

Link to comment
Share on other sites

Guest mafia2

dar eu nu vreau sa se vada playeri vreau decat sa se vada /aod pe mapa ca nu mi se vede sidaca pun ShowPlayerMarkers(1) mi e vad toti playeri vreaudecat /aod sa se vada

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.