Instant Spawn problems
#1

Hello SA-MP community, today i come to you with a rather easy problem. I have tried to do this myself, but i do not know how to go about it. If you guys recall, when you make a registration system, the spawn interface pops up. I want to know a way to instantly spawn the player, thus avoiding this situation.



Any solutions?
Reply
#2

Maybe SpawnPlayer(playerid); ?
Reply
#3

Yes, i know the function. Sadly, it does not work where i put it(in the registration/login dialog).
Reply
#4

Well i do this in my script, i call spawnplayer in the OnPlayerRequestClass callback.
Works fine for me.
Where are you doing it?
Reply
#5

After the player registers their account, or logs in. I tried your way, but it does not work. I will post a video on what it does.
Reply
#6

TogglePlayerSpectating(playerid,false);
Should spawn them. If it doesn't, use
TogglePlayerSpectating(playerid,true);
just before it.
Reply
#7

Well, i cannot help you without the code.
Reply
#8

The code is not necessary... and i will try that jonrb
Reply
#9

Ok so, where would i put TogglePlayerSpectating, and Spawnplayerid to make it work?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)