*** This topic title is not descriptive - ****** - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** This topic title is not descriptive - ****** (
/showthread.php?tid=390826)
*** This topic title is not descriptive - ****** -
Gangster-rocks - 08.11.2012
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?
Re: Why is that happening. -
JaKe Elite - 08.11.2012
Why are you hashing the rcon password??
You could just do a define of rcon password like
then
pawn Код:
if(!strcmp(RCON, inputtext))
{
}
Anyway what's the reason why you hash the rcon password?
Re: Why is that happening. -
Gangster-rocks - 08.11.2012
I already done and the problem is i can login with any pass
Re: Why is that happening. -
Gangster-rocks - 08.11.2012
Solved.