SA-MP Forums Archive
[Ajuda] Comando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comando (/showthread.php?tid=547268)



Comando - PristonBreak - 21.11.2014

.......


Re: Comando - PT - 21.11.2014

Qual a Variavel que diz que o player esta preso?

usa ela como condicao quando tras os players.


Re: Comando - PaulMcCartney - 21.11.2014

Sim, qual sua variбvel para jogadores presos?


Re: Comando - PristonBreak - 21.11.2014

Preso = 1;


Re: Comando - PaulMcCartney - 21.11.2014

Код:
	if(strcmp(cmd, "/trazerall", true) == 0)
	{
	    for(new i; i< MAX_PLAYERS; ++i)
            {
	        if(Preso[i] == 0)
	        {
	    	    new Float:X,Float:Y,Float:Z;
	    	    GetPlayerPos(playerid,X,Y,Z);
   	    	    SetPlayerPos(i,X,Y,Z);
                }
	    }
	}
	return 1;
}