Force player to Spawn - 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: Force player to Spawn (
/showthread.php?tid=486555)
Force player to Spawn -
anou1 - 09.01.2014
Hi,
I am trying to force a player to spawn when he's at this moment:
http://oi40.tinypic.com/2ueh9ic.jpg
I tried this:
Код:
public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid);
return 1;
}
But nothing happen. How could I force a player to spawn ?
Thank you !
Re: Force player to Spawn -
offon - 09.01.2014
You need put SetSpawnInfo(); above SpawnPlayer();
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Re: Force player to Spawn -
anou1 - 09.01.2014
Thank you I placed it in OnPlayerSpawn
I will change it for OnplayerRequestclass