Posts: 95
Threads: 28
Joined: Jan 2011
Reputation:
0
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?
Posts: 944
Threads: 77
Joined: Dec 2010
Reputation:
0
Maybe SpawnPlayer(playerid); ?
Posts: 95
Threads: 28
Joined: Jan 2011
Reputation:
0
Yes, i know the function. Sadly, it does not work where i put it(in the registration/login dialog).
Posts: 76
Threads: 19
Joined: Jul 2010
Reputation:
0
Well i do this in my script, i call spawnplayer in the OnPlayerRequestClass callback.
Works fine for me.
Where are you doing it?
Posts: 95
Threads: 28
Joined: Jan 2011
Reputation:
0
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.
Posts: 244
Threads: 37
Joined: May 2009
Reputation:
0
TogglePlayerSpectating(playerid,false);
Should spawn them. If it doesn't, use
TogglePlayerSpectating(playerid,true);
just before it.
Posts: 944
Threads: 77
Joined: Dec 2010
Reputation:
0
Well, i cannot help you without the code.
Posts: 95
Threads: 28
Joined: Jan 2011
Reputation:
0
The code is not necessary... and i will try that jonrb
Posts: 95
Threads: 28
Joined: Jan 2011
Reputation:
0
Ok so, where would i put TogglePlayerSpectating, and Spawnplayerid to make it work?