Death -> 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Death -> Spawn (
/showthread.php?tid=232329)
Death -> Spawn -
Typhome - 27.02.2011
Fixed, thanks to
dice7.
Re: Death -> Spawn -
dice7 - 27.02.2011
gPlayerLogged[playerid] obviously isn't 1
Also by that way of execution OnPlayerSpawn will be called twice, first time before the debug print and the second time after the player requests spawn. You could use SpawnPlayer(playerid) though
Re: Death -> Spawn -
Typhome - 27.02.2011
SpawnPlayer(playerid); <- Works