[Ajuda] Com esse comando
#1

Iae galerinha, alguйm poderia mim ajudar com esse comando ?
Tipo tava pensando em fazer um comando mais ou menos assim “/trazeradm”
Ai puxaria todos os adm para perto da pessoa que utilizasse esse comando...

tipo pADMIN rsrs

Agradeзo desde ja (:
Reply
#2

Tуpico Estб Contra As Regras. Leia as Regras.
Reply
#3

eitxa e, tem como eu trocar a tag ? para por [PEDIDO] ?
:$

se tiver mim ensina
Reply
#4

pawn Код:
if(strcmp(cmd, "/trazeradm", true) == 0)
    {
    new Float:X, Float:Y, Float:Z;
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pAdmin] > 0)
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(i, X, Y, Z);
    SendClientMessage(playerid, 0xFFFFFFFF, "Vocк trouxe os adms atй vocк");
    }
    return 1;
    }
OBS: Nгo testado.
Reply
#5

pawn Код:
if(strcmp(cmd, "/trazeradm", true) == 0)
    {
                new string[128];
        if(!PlayerInfo[playerid][pAdmin] > 5000)
        {
            SendClientMessage(playerid, COR_VERDELIMAO,"* |ERRO| Vocк nгo й Administrador!");
            return 0x1;
        }
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(PlayerInfo[i][pAdmin] > 0)
            {
                format(string, sizeof(string), "* O Administrador %s trouxe todos jogadores atй ele.", pName);
                SendClientMessage(i, COR_BRANCO, string);

                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid, x, y, z);
                SetPlayerPos(i, x, y, z+2);
            }
        }
        format(string, sizeof(string), "* Vocк trouxe todos os administradores atй vocк.");
        SendClientMessage(playerid, COR_BRANCO, string);
        return 0x1;
    }
Reply
#6

pawn Код:
if(strcmp(cmd, "/trazeradm", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 3000) return SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: Vocк nгo й Admin 3000+");
        new Float:[3];
        for(new i = 0; i < GetMaxPlayers(); ++i)
        {
            if(PlayerInfo[i][pAdmin] > 0)
            {
                GetPlayerPos(playerid, [0], [1], [2]);
                SetPlayerPos(i, [0], [1], [2]);
                SendClientMessage(playerid, 0xFFFFFFAA, "- Vocк trouxe todos os Admins.");
                return 1;
            }
        }
        return 1;
    }
Reply
#7

cуdigo fail

pawn Код:
if(strcmp(cmd, "/trazeradm", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 3000) return SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: Vocк nгo й Admin 3000+");
        new Float:a[3];
        GetPlayerPos(playerid, a[0],a [1], a[2]);
        for(new i = 0; i < GetMaxPlayers(); ++i)
        {
            if(PlayerInfo[i][pAdmin] > 0)
            {
                if(i == playerid) return false;
                SetPlayerPos(i, a[0], a[1], a[2]);
                SendClientMessage(playerid, 0xFFFFFFAA, "- Vocк trouxe todos os Admins.");
                return 1;
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)