[Ajuda] Trazertodos
#6

PHP код:
#define DIALOG_TRAZER_TODOS 666
dcmd_TrazerFAC(playeridparams[]) {
    
#pragma unused params
    
if(Player[playerid][pAdmin] >= 5)
        
ShowPlayerDialog(playeridDIALOG_TRAZER_TODOSDIALOG_STYLE_MSGBOX"Atenзгo!""Deseja realmente trazer todos os jogadores?""Sim""Nгo");    
       else
        
SCM(playeridCOR_ERRO"Vocк Nгo Tem Permissгo!");
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
    if ( 
dialogid == DIALOG_TRAZER_TODOS ) {
        if ( 
response ) {
            new 
Float:X,Float:Y,Float:Z;
            
GetPlayerPos(playerid,X,Y,Z);
            new 
String[128];
            
format(Stringsizeof(String), "O {FF0000}%s:{FFFFD2} Trouxe Todos da Facзгo ! "getPName(playerid));
            for(new 
0MAX_PLAYERS++) {
                if(
IsPlayerConnected(i)) {
                      if(
Player[playerid][pFaccao] == Player[i][pFaccao]) {
                          
SetPlayerPos(iX+1Y+1Z);
                        
SCM(iCOR_INFOString);
                    }
                }
            }
        }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
Trazertodos - by LukasMartins - 15.05.2016, 17:00
Re: [Ajuda] trazertodos - by Mas7eR - 15.05.2016, 17:04
Re: [Ajuda] trazertodos - by Whoo - 15.05.2016, 17:08
Re: [Ajuda] trazertodos - by LukasMartins - 15.05.2016, 17:09
Re: [Ajuda] trazertodos - by Mas7eR - 15.05.2016, 17:32
Re: [Ajuda] trazertodos - by Gii - 15.05.2016, 17:34
Re: [Ajuda] trazertodos - by LukasMartins - 15.05.2016, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)