SA-MP Forums Archive
Show class selection after login? - 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: Show class selection after login? (/showthread.php?tid=475247)



Show class selection after login? - RickUSBstick - 11.11.2013

Hello,

How can i show my class selection only if a player is loggedin succesfully?
Is it posible like this? Please edit for me in code: START PUBLIC public OnPlayerRequestClass(playerid, classid)

Код:
		case DIALOG_LOGIN:
        {
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    START PUBLIC public OnPlayerRequestClass(playerid, classid)
                }
                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;
            }
        }



Re: Show class selection after login? - RickUSBstick - 12.11.2013

bump