SA-MP Forums Archive
[Ajuda] Comando Nгo Funciona - 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 Nгo Funciona (/showthread.php?tid=511312)



Comando Nгo Funciona - ElGringo - 04.05.2014

pawn Код:
COMMAND:trazertodos(playerid, params[])
{
    new Float:X,
     Float:Y,
      Float:Z,
       don[250],
        AdminName[24];
    GetPlayerPos(playerid, X, Y, Z);
    if (APlayerData[playerid][LoggedIn] == true)
    {
      if (APlayerData[playerid][PlayerLevel] >= 6)
      {
         for(new i = 0; i < MAX_PLAYERS; ++i)
         {
             if(IsPlayerConnected(i))
             {
                 SetPlayerPos(i, X+1, Y+1, Z);
             }
         }
         format(don, sizeof(don), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", AdminName);
         SendClientMessageToAll(-1,don);
      }
    }
    return 1;
}
Oque tem De Errado ?'-'


Re: Comando Nгo Funciona - DrTHE - 04.05.2014

pawn Код:
CMD:trazertodos(playerid)
{
    new Float:X, Float:Y, Float:Z, str[144], AdminName[24];
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerName(playerid, AdminName, 24);

    if((APlayerData[playerid][LoggedIn] == true) && (APlayerData[playerid][PlayerLevel] >= 6))  {

        for(new i=0; i < MAX_PLAYERS; ++i)
             if((IsPlayerConnected(i)) && (APlayerData[i][LoggedIn] == true))
                 SetPlayerPos(i, X+1.0, Y+1.0, Z);

        format(str, sizeof(str), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", AdminName);
        SendClientMessageToAll(-1, str);
    }
    return 1;
}
Tenta com esse comando.


Re: Comando Nгo Funciona - PT - 04.05.2014

pawn Код:
COMMAND:trazertodos(playerid, params[])
{
    if(APlayerData[playerid][LoggedIn] == true)
    {
        if(APlayerData[playerid][PlayerLevel] >= 6)
        {  
            new Float:POS[3], z2PT[128];
            for(new i = 0; i < MAX_PLAYERS; ++i)
            {
                if(IsPlayerConnected(i))
                {      
                    GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
                    SetPlayerPos(i, POS[0], POS[1], POS[2]+1);
                }
            }
            GetPlayerName(playerid, z2PT, MAX_PLAYER_NAME);
            format(z2PT, sizeof(z2PT), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", z2PT);
            SendClientMessageToAll(-1,z2PT);
        }
    }
    return 1;
}



Re: Comando Nгo Funciona - comanfiss - 04.05.2014

PT me ajuda em uma coisa PF... gostaria de almentar o tempo pq quando o player coloca /trabalhar ai quando sai do veiculo o tem й de 1 minuto mais so pega com o caminhao eo treiler some em menos de 10 segundo gotaria de colocar pra ficar em 2 minuto e q pegar o treile tambem..desculpa por pedi aki nesse post...


Re: Comando Nгo Funciona - ElGringo - 04.05.2014

Vlw ae Pt