Spawn problems..
#1

So basically when I spawn player is in like one big cube but before that player died...

So maybe some one could tell me what is the prob with this:

OnDialogResponse:
pawn Код:
case DIALOG_FROM:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        if(PlayerInfo[playerid][pSex] == 0)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1714.2400,-1901.2373,13.5667);
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 26, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1714.2400,-1901.2373,13.5667);
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 21, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 26, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1714.2400,-1901.2373,13.5667);
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 26, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1714.2400,-1901.2373,13.5667);
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 26, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1714.2400,-1901.2373,13.5667);
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SpawnPlayer(playerid);
                                SetSpawnInfo( playerid, 0, 26, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                        if(PlayerInfo[playerid][pSex] == 1)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 0;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1714.2400, -1901.2373, 13.5667, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                    }
                    case 1:
                    {
                        if(PlayerInfo[playerid][pSex] == 0)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 26, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo( playerid, 0, 21, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                SetSpawnInfo(playerid, 0, 26, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 26, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 26, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,1776.1342,-1961.3536,14.1172);
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 26, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                        if(PlayerInfo[playerid][pSex] == 1)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 1;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetSpawnInfo(playerid, 0, 150, 1776.1342,-1961.3536,14.1172, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                    }
                    case 2:
                    {
                        if(PlayerInfo[playerid][pSex] == 0)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerPos(playerid,-1876.8957519531, 58.365238189697, 1057.1906738281);
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 21, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetPlayerInterior(playerid,14);
                                SetSpawnInfo(playerid, 0, 30, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetPlayerInterior(playerid,14);
                                SetSpawnInfo(playerid, 0, 26, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetPlayerInterior(playerid,14);
                                SetSpawnInfo(playerid, 0, 30, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 26, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                        if(PlayerInfo[playerid][pSex] == 1)
                        {
                            if(PlayerInfo[playerid][pNationality] == 0)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 1)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 195, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 2)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 3)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 4)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                            if(PlayerInfo[playerid][pNationality] == 5)
                            {
                                PlayerInfo[playerid][pFrom] = 2;
                                PlayerInfo[playerid][pRegistred] = 1;
                                SetPlayerHealth(playerid, 100);
                                SetPlayerInterior(playerid,14);
                                TogglePlayerSpectating(playerid, 0);
                                SetTimerEx("UnfreezePlayer", 1500, 0, "i", playerid);
                                SetSpawnInfo(playerid, 0, 150, -1876.8957519531, 58.365238189697, 1057.1906738281, 269.15, 0, 0, 0, 0, 0, 0 );
                                SpawnPlayer(playerid);
                            }
                        }
                    }
                }
            }
            return 1;
        }
Thank you for your time ...

With best regards Scrillex.
Reply


Messages In This Thread
Spawn problems.. - by Scrillex - 08.01.2014, 07:55
Re: Spawn problems.. - by amirab - 08.01.2014, 09:01
Re: Spawn problems.. - by Scrillex - 08.01.2014, 12:15
Re: Spawn problems.. - by Scrillex - 08.01.2014, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)