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



Spawn Problem - zT KiNgKoNg - 03.09.2012

hey guys in my new script that im doing im saving the person's X,Y,Z when they leave but when they login
and click spawn its saying please stay in the world and not spawning me on my last position


Re: Spawn Problem - Ranama - 03.09.2012

You have to use the function SetSpawnInfo(playerid, blablabla); before you can spawn a player or that error will occour. Hope it helped


Re: Spawn Problem - Yiin - 03.09.2012

Do you have AddPlayerClass ?


Re: Spawn Problem - HuSs3n - 03.09.2012

Quote:
Originally Posted by Ultra-Gaming
Посмотреть сообщение
its saying please stay in the world
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds


Re: Spawn Problem - Roko_foko - 03.09.2012

"please stay in the world" are you using SetPlayerWorldBounds? on player connect, on player spawn or on playerclassselection(or how ever)?
How do you save stats(position)? show us the code. As well as that show us loading stats.


Re: Spawn Problem - zT KiNgKoNg - 03.09.2012

iv added AddPlayerClass and SetPlayerWorldBounds but its still doing it

pawn Код:
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
        SetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
        SetPlayerFacingAngle( playerid, Angle[ playerid ] );
        SetPlayerInterior( playerid, Interior[ playerid ] );
        SetPlayerVirtualWorld( playerid, VirtualWorld[ playerid ] );  // this loads the position int and VW



Re: Spawn Problem - HuSs3n - 03.09.2012

Dont add SetPlayerWorldBounds
CTRL + F and remove it!


Re: Spawn Problem - zT KiNgKoNg - 03.09.2012

how is this going to fix my problem its not place


Re: Spawn Problem - zT KiNgKoNg - 05.09.2012

BUMP still happening