SA-MP Forums Archive
[Pedido] Sistema - 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: [Pedido] Sistema (/showthread.php?tid=578005)



Sistema - pawnoderek - 15.06.2015

Queria um sistema que fosse assim , tu puxasse todos da tua equipe , ex : /trazertodos

Se alguem souber ai ...


Re: Sistema - zSuYaNw - 15.06.2015

Da uma olhada


PHP код:

// Pegando a posiзгo do jogador
new FloatxFloatyFloat:z;
GetPlayerPos(playeridxyz);


// Fazendo um loop percorrendo os jogadores que sгo do mesmo time que o cara que digitou o comando
// caso for do mesmo time, puxa atй a posiзгo do jogador.
for(new iGetMaxPlayers(); != e; ++i){
    if(
IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]){
        
SetPlayerPos(ix,y,z);
    }