[AJUDA/HELP] Criar comando /procurados | Create command /wanted [Portuguese/English]
#2

Depdende de como vocк ta montando seu GM
Usa esse exemplo e tenta pegar o principal do comando.
Se tiver alguma dъvida fala por aqui ou manda pm, esse й o que to usando no meu servidor.

Код:
if(strcmp(cmd, "/procurados", true) == 0)
	{
	    new string2[128];
	    new Procurados[24];
	    if(IsPlayerConnected(playerid))
	   	{
  			
			if(IsACop(playerid) || IsAFreecop(playerid))
			{
				new x;
				SendClientMessage(playerid, COLOR_GREEN, "Atuais Suspeitos Procurados:");
			        for(new i=0; i < MAX_PLAYERS; i++)
				{
					if(IsPlayerConnected(i))
					{
					    if(WantedLevel[i] >= 1 || WantedPoints[i] >= 1)
					    {
							GetPlayerName(i, Procurados, sizeof(Procurados));
							format(string2, sizeof(string2), "|| Nome: %s || Nнvel De Procurado: %d || Pontos De Procurado: %d ||", Procurados,WantedLevel[i], WantedPoints[i]);
							x++;
						}
					}
				}
				if(x == 0)
				{
				    SendClientMessage(playerid, COLOR_YELLOW, "Nгo hб suspeitos sendo procurados.");
				}
				if(x >= 1)
				{
				    SendClientMessage(playerid, COLOR_YELLOW, string2);
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um Policial / Polнcia Civil / Exйrcito !");
			}
		}//not connected
		return 1;
	}
Reply


Messages In This Thread
[AJUDA/HELP] Criar comando /procurados | Create command /wanted [Portuguese/English] - by [THs]ShadoW - 02.12.2012, 23:15
Re: [AJUDA/HELP] Criar comando /procurados | Create command /wanted [Portuguese/English] - by DexterBR - 03.12.2012, 01:04

Forum Jump:


Users browsing this thread: 1 Guest(s)