[Ajuda] trazer todos da facзao
#9

Quote:
Originally Posted by VinteDois
Посмотреть сообщение
Код:
#define DIALOG_TRAZERFAC 6587

new facOWNER[13];

CMD:trazertodos(playerid)
{
    if(Player[playerid][TempoPreso] >= 1 || Player[playerid][InHospital] == true)
    return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo pode fazer isso agora!");
    
    if(NaBoateVip[playerid] == 1)
    return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo pode fazer isto agora.");
    
    if(Player[playerid][Lider] >= 1 || Player[playerid][Dono])
    {
        new facID = Player[playerid][Faccoes];
        facOWNER[facID] = playerid;
        
        for(new i; i <  HighestID; i++)
        {
            if(Player[i][Faccoes] == Player[playerid][Faccoes])
            {
                if(Player[i][TempoPreso] >= 1 || EmTrabalho[i] >= 1 || Player[i][InHospital] == true)
                return SCM(playerid, COR_ERRO, "[ERRO]: Alguns Players Nгo Vieram Por Algum Motivo!");

                ShowPlayerDialog(i, DIALOG_FACTELE, DIALOG_STYLE_MSGBOX, "Trazendo", "Vocк aceita ser puxado", "Sim", "Nгo");
            }
        }
    }
    else SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo tem permissгo para usar este comando!");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_TRAZERFAC)
    {
        if(response) SetPlayerPos(playerid, FaccaoPos[0], FaccaoPos[1], FaccaoPos[2]);
        for(new i = 0; i <= HighestID; i++)
        if(GetDistanceBetweenPlayers(playerid, i) <= 50)
        if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
        SendFormattedMessage(i, COR_ROXO, "## %s Aceitou o pedido de guerra", getPName(playerid));
    }
    return true;
}
Cara se mate
Reply


Messages In This Thread
trazer todos da facзao - by caiomali06 - 14.10.2016, 00:02
Re: trazer todos da facзao - by FalcaoNC - 14.10.2016, 00:14
Re: trazer todos da facзao - by Casttiel - 14.10.2016, 01:08
Re: trazer todos da facзao - by caiomali06 - 14.10.2016, 01:16
Re: trazer todos da facзao - by FalcaoNC - 14.10.2016, 01:23
Re: trazer todos da facзao - by caiomali06 - 14.10.2016, 01:36
Re: trazer todos da facзao - by caiomali06 - 14.10.2016, 01:45
Re: trazer todos da facзao - by Whoo - 14.10.2016, 03:00
Re: trazer todos da facзao - by Whoo - 16.10.2016, 17:07

Forum Jump:


Users browsing this thread: 2 Guest(s)