*** This topic title is not descriptive - ******
#1

PHP код:
if(dialogid == 106)
    {
        new 
str[128];
        new 
hashtext[129];
        if(!
response) return Ban(playerid);
        if(
response)
        {
            
WP_Hash(hashtext,sizeof(hashtext),inputtext);
            if(!
strcmp(hashtext,rcon))
            {
                
SendClientMessage(playerid,COLOR_RED1,"You have remote contorl logged into your server have fun");
                return 
1;
            }
            else
            {
                
Ban(playerid);
                
format(str,sizeof(str),"%s Has been banned from the server reason: Attempt to rcon hack");
                
SendClientMessage(playerid,COLOR_RED1,str);
            }
        }
    } 
when i enter the right rcon its bans me why?
Reply
#2

Why are you hashing the rcon password??

You could just do a define of rcon password like

pawn Код:
#define RCON "lalala"
then

pawn Код:
if(!strcmp(RCON, inputtext))
{
}
Anyway what's the reason why you hash the rcon password?
Reply
#3

I already done and the problem is i can login with any pass
Reply
#4

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)