[Ajuda] Sistema Painel De Admin Dando Error
#7

vixe intao vou postar oq й Aki

Sistema q to Usando
PHP код:
#define SENHACLA         "123456"
#define DialogClaConf   666
//------------
new
    
corda[128],
    
Nome[MAX_PLAYER_NAME]
;
//-------
public OnPlayerConnect(playerid)
{

    
GetPlayerName(playeridNomesizeof(Nome));
    if(
strfind(Nome"[DPS]"true) != -1) return ShowPlayerDialog(playeridDialogClaConfDIALOG_STYLE_PASSWORD"Clг [DPS]","Insira a senha do clг: ","Entrar","Sair");
    return 
1;
}
//--------
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DialogClaConf)
    {
        if(
response)
        {
            if(
strcmp(inputtextSENHACLAtrue))
            {
                
format(cordasizeof(corda), "%s[%i] inseriu a senha {00FF00}correta{FFFFFF} de seu clг e entrou no servidor!",Nomeplayerid);
                
SendClientMessageToAll(0xFFFFFFAAcorda);
                
SendClientMessage(playerid, -1"Vocк logou com a tag [DPS]");
                
SpawnPlayer(playerid);
                return 
1;
            }
            else
            {
                   
format(cordasizeof(corda), "%s[%i] inseriu a senha {E31919}incorreta{FFFFFF} de seu clг e foi kickado no servidor!"Nomeplayerid);
                 
SendClientMessageToAll(0xFFFFFFAAcorda);
                
SendClientMessage(playerid, -1"Vocк foi kickado por errar a senha do clг [DPS]!");
                
Kick(playerid);
                return 
1;
            }
        }
        else if(!
response)
        {
            
GetPlayerName(playeridNomesizeof(Nome));
            
printf("%s[%i] cancelou o dialog de confirmaзгo de clг"Nomeplayerid);
            
Kick(playerid);
        }
    }
    return 
1;
}
//------ 
Estou Conseguindo Logar Com Qualqer Senha !
Reply


Messages In This Thread
Sistema Painel De Admin Dando Error - by JuniorTheDM - 30.05.2015, 03:19
Re: Sistema Painel De Admin Dando Error - by Felipe_Freeze - 30.05.2015, 03:22
Re: Sistema Painel De Admin Dando Error - by JuniorTheDM - 30.05.2015, 03:25
Re: Sistema Painel De Admin Dando Error - by Felipe_Freeze - 30.05.2015, 03:28
Re: Sistema Painel De Admin Dando Error - by JuniorTheDM - 30.05.2015, 03:30
Re: Sistema Painel De Admin Dando Error - by Felipe_Freeze - 30.05.2015, 03:31
Re: Sistema Painel De Admin Dando Error - by JuniorTheDM - 30.05.2015, 03:33
Re: Sistema Painel De Admin Dando Error - by Felipe_Freeze - 30.05.2015, 03:37
Re: Sistema Painel De Admin Dando Error - by JuniorTheDM - 30.05.2015, 03:54
Re: Sistema Painel De Admin Dando Error - by [BC]Vinny - 01.06.2015, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)