SA-MP Forums Archive
Spawning - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawning (/showthread.php?tid=210007)



Spawning - Anthonyx3' - 12.01.2011

Im still having problems with this, can someone show me a good way to spawn a player after login to their saved coords? I am using mysql.


Re: Spawning - [L3th4l] - 12.01.2011

Great way to make a new topic without info. Why didn't you just bumped your other topic on a period of 24 hours? -_-


Re: Spawning - Anthonyx3' - 12.01.2011

i heard someone got infracted for bumping after 24hours, wasnt planning to risk it. and i did include information, i asked if someone can show me best way to spawn a player with saved pos after login


Re: Spawning - [L3th4l] - 12.01.2011

pawn Код:
1st, load player info

// on player spawn:
SetPlayerPos(playerid, savedposx, savedposy, savedposz);



Re: Spawning - Anthonyx3' - 12.01.2011

Alright, yes i can do that, but then it fucks up my register login


Re: Spawning - Kyosaur - 12.01.2011

Quote:
Originally Posted by Anthonyx3'
Посмотреть сообщение
Alright, yes i can do that, but then it fucks up my register login
Load their coordinates after they're logged in, and then use SetPlayer(Pos/Interior/VirtualWorld)? If the account is registered, they shouldnt be spawning before they're logged in anyways.


Re: Spawning - XFlawless - 12.01.2011

Use this under
Код:
OnPlayerRequestClass(playerid,classid)
and
Код:
SpawnPlayer(playerid);
after
Код:
SetSpawnInfo(.....);