Im about to flip. - 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: Im about to flip. (
/showthread.php?tid=336071)
Im about to flip. -
Scripter12345 - 21.04.2012
Why does this not log me in automatically ?
It did like 30 minutes ago.
pawn Код:
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
SpawnPlayer(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
}
}
If you need any part of my code post here.
Thank You
Please Help Me Please
Re: Im about to flip. -
DBan - 21.04.2012
If it doesn't log you in automatically, that's good, of course you don't want people who join with your name to access your account? If you want it to log you in automatically, you're going to have to get the player's IP when registering, store it in his/her's file, then when they connect check if the IP's match.