SA-MP Forums Archive
Spawn bug? - 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: Spawn bug? (/showthread.php?tid=485144)



Spawn bug? - Hannibal_Smith - 03.01.2014

Hi everyone,

I hope you can help me, before the release of the current 0.3x samp version i had the following code to select your class and (you look in the mirror to select a class and then spawn in the world)
But with the current version of samp i can still sellect the skin i want to use, but once you click the "spawn" button you just spawn in a grey area.

Can anyone point the the right direction?
I think it has something to do the with SetPlayerInterior(playerid,14); are the interior codes changed with the last release of samp?

Thanks for your time reading this thread.

code:
------------------------------------------------
public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.8008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-40.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.8008,1002.0234);
}
------------------------------------------------


Re: Spawn bug? - Burridge - 03.01.2014

Are you setting their interior to 0 (or which ever interior world they spawn) under OnPlayerSpawn?


Re: Spawn bug? - Hannibal_Smith - 04.01.2014

Thank you Burridge, i forgot to set the interior to 0.

Its working now!