Show class selection after login?
#1

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;
            }
        }
Reply
#2

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)