Player isn't in position
#1

Well, I have a problem when a player spawns, I have a cinematic while login dialog, but when he introduces the password, the player appears in the sky, where he stopped the cinematic. I have this code

Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    new skin, Float:x, Float:y, Float:z;
                    skin = PlayerInfo[playerid][pSkin];
                    x = PlayerInfo[playerid][pPos_x];
                    y = PlayerInfo[playerid][pPos_y];
                    z = PlayerInfo[playerid][pPos_z];

                    SetSpawnInfo(playerid, 0, skin, x, y, z, 0, 0, 0, 0, 0, 0, 0);
					TogglePlayerSpectating(playerid, false);
                    StopAudioStreamForPlayer(playerid);
                    SetPlayerPos(playerid, 1271.3654,181.0756,19.4705); //I have this to check if the player spawns in this position, but he doesn't
                    SetCameraBehindPlayer(playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);

		}
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","You've entered a wrong pass.\nPut your password.","Login","Exit");
                }
                return 1;
            }
        }
Sorry for bad english
Reply


Messages In This Thread
Player isn't in position - by Antenastyle - 07.05.2017, 20:53
Re: Player isn't in position - by Antenastyle - 08.05.2017, 16:18
Re: Player isn't in position - by Kucin666 - 08.05.2017, 17:13
Re: Player isn't in position - by Antenastyle - 08.05.2017, 18:13
Re: Player isn't in position - by BlueGames - 08.05.2017, 18:20
Re: Player isn't in position - by Antenastyle - 08.05.2017, 21:13

Forum Jump:


Users browsing this thread: 1 Guest(s)