Force player to Spawn
#1

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 !
Reply
#2

You need put SetSpawnInfo(); above SpawnPlayer();
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#3

Thank you I placed it in OnPlayerSpawn
I will change it for OnplayerRequestclass
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)