SA-MP Forums Archive
SpawnPlayer won't work - 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: SpawnPlayer won't work (/showthread.php?tid=185005)



SpawnPlayer won't work - Audiophr3ak - 22.10.2010

Hello there, i need some help to force a player to spawn after registration/login. I tried to fix it different ways, but it still wont work. Here is a part of my account panel code attached:


Respuesta: SpawnPlayer won't work - The_Moddler - 22.10.2010

SpawnPlayer isn't anywhere in your script...


Re: SpawnPlayer won't work - Steven82 - 22.10.2010

You have to kill the player first and then it will work.

It's like a scripted version of pressing "f4"


Respuesta: SpawnPlayer won't work - The_Moddler - 22.10.2010

You don't have to kill the player to use SpawnPlayer, I have it many times on my script and I don't need to kill... it spawns automaticly.


Re: SpawnPlayer won't work - Steven82 - 22.10.2010

Uh....yeah i just read the wiki and i failed, i was thinking of

ForceClassSelection



Anyways well i will check the new.pwn document you provided and check what the problem is then

*EDIT/UPDATE*

I am no longer going to help you, hence the name Sin City Roleplay, your trying to recreated the script, or you just stole it but i highly doubt that.


Respuesta: SpawnPlayer won't work - The_Moddler - 22.10.2010

He didn't even put SpawnPlayer under TogglePlayerControllable, I doub't if he knows how to script..


Re: SpawnPlayer won't work - Audiophr3ak - 23.10.2010

OMG i didnt stole anything, i just made a simple registration system by using a tutorial at sa-mp forum, aint that allowed What a bullshit.... -_- And i tried to put SpawnPlayer in different parts (after log in etc) and it didnt work, so stfu if u cant help.


Respuesta: SpawnPlayer won't work - The_Moddler - 23.10.2010

Then put SpawnPlayer under TogglePlayerControllable