[PEDIDO]Comando
#1

Alguйm me da uma forзa pra fazer um comando de trazer todos os player de uma org?

exemplo, /trazertodosballas (ZCMD)
Reply
#2

pawn Код:
CMD:trazerorg(playerid,params[]) {
    if(isnull(params))
        return SendClientMessage(playerid, "Use /trazerorg [id da org]");
    new org = strval(params);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) && variaveldeorg[i] == org) {
            SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
            SetPlayerInterior(i, GetPlayerInterior(playerid));
            SetPlayerPos(i, x, y, z);
        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
pawn Код:
CMD:trazerorg(playerid,params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, "Use /trazerorg [id da org]");
    new org = strval(params);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && variaveldeorg[i] == org)
        {
            SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
            SetPlayerInterior(i, GetPlayerInterior(playerid));
            SetPlayerPos(i, x, y, z);
        }
    }
    return 1;
}
Deu mt certo aqui nгo cara, pq to definindo as orgs pelo PlayerInfo!
Reply
#4

troca aquele 'variaveldeorg[i]' pela sua variavel ex: 'PlayerInfo[i][pMembro]'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)