Saving the skin
#1

I have this
Код:
case DIALOG_LOGIN:
        {
            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]);
                    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
                    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
                    SetSpawnInfo(playerid, 0, 0, 2200.0459, 1285.3773, 10.8203, 93.1433, 0, 0, 0, 0, 0, 0);
                	SpawnPlayer(playerid);
					ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                }
                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;
I want to save the last skin he has and set the skin when he re-join and I know that it is not working due to this
Код:
SetSpawnInfo(playerid, 0, 0, 2200.0459, 1285.3773, 10.8203, 93.1433, 0, 0, 0, 0, 0, 0);
But if I remove that, the player won't spawn, just sit on login screen, and if use that, he will spawn with CJ skin
Reply
#2

ffs. ******!!! Search "SetSpawnInfo" and look at the parameters.
Reply
#3

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
ffs. ******!!! Search "SetSpawnInfo" and look at the parameters.
I made it! Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)