SA-MP Forums Archive
Spawning at escalates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawning at escalates (/showthread.php?tid=488490)



Spawning at escalates - Blademaster680 - 18.01.2014

SOLVED!!!

I keep spawning at the escalates when I select grove street. It only happens sometiems though and I cant figure it out... Any help?

Here is my spawn code:
Код:
case DIALOG_STEAM:
		{
		    if(!response) return ShowPlayerDialog(playerid, DIALOG_STEAM, DIALOG_STYLE_LIST, "Gang Selection", "Grove Street Families  \nThe Ballas  \nVarios Los Aztecas  \nLos Santos Vagos", "Continue", "Cancel");
		    if(response)
		    {
		        if(listitem == 0)
		        {
		            new id = random(3);
		            new rand = random(sizeof(GroveSpawn));
		            SetPlayerColor(playerid, CGrove);
		            SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
		            SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
		            SetSpawnInfo(playerid, 1, GroveGangTeamSkin[id], GroveSpawn[rand][0], GroveSpawn[rand][1], GroveSpawn[rand][2], GroveSpawn[rand][3], 22, 999, 28, 999, 1, 999);
			    SpawnPlayer(playerid);
		        }
		        if(listitem == 1)
		        {
		            new id = random(3);
		            new rand = random(sizeof(BallasSpawn));
			    SetPlayerColor(playerid, CBallas);
		        }
		        if(listitem == 2)
		        {
                            SetPlayerColor(playerid, CVarios);
		        }
		        if(listitem == 3)
		        {
                            SetPlayerColor(playerid, CVagos);
		        }
		    }
		}



Re: Spawning at escalates - King Ace - 18.01.2014

Код:
SpawnPlayer(playerid);
Add SetPlayerPos aswell.