Remove "Spawn" Dialog
#5

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Add this to OnPlayerConnect:

pawn Код:
TogglePlayerSpectating(playerid, 1);
Then when a player logs in, set it to:

pawn Код:
TogglePlayerSpectating(playerid, 0);
pawn Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                new HashPass[129];
                WP_Hash(HashPass, sizeof(HashPass), inputtext);
                if(strcmp(HashPass, PlayerInfo[playerid][pPass]) == 0)
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_data", .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","");
                    TogglePlayerSpectating(playerid, 0);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 1;
}
I added it here but it seems to have not changed
Reply


Messages In This Thread
Remove "Spawn" Dialog - by Lz - 02.12.2012, 20:26
Re: Remove "Spawn" Dialog - by iGetty - 02.12.2012, 20:27
Re: Remove "Spawn" Dialog - by Lz - 02.12.2012, 20:32
Re: Remove "Spawn" Dialog - by iGetty - 02.12.2012, 20:37
Re: Remove "Spawn" Dialog - by Lz - 02.12.2012, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)