Players die when spawning - 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: Players die when spawning (
/showthread.php?tid=425349)
Players die when spawning -
Xabi - 25.03.2013
So the problem is that when new players spawn, they sometimes die, and other times they don't. It loads and sets correctly their life when spawning but, after the "OnPlayerSpawn(playerid)" callback is finished, they die always with the reason 255.
So my question is, should I check if another callback kills the player apart from OnPlayerUpdate, which I will check later?
Thanks in advance.
Re: Players die when spawning -
Nivniv2 - 25.03.2013
Show us your "OnPlayerSpawn(playerid)" codes.
Re: Players die when spawning -
EiresJason - 25.03.2013
I kinda have the same problem
When theres a rcon gmx, the player will die no matter what, it's really annoying and I can't find the problem, if there even is one

it happens when you spawn too. If you /q, and then login, you spawn properly but rcons gmx will reset your location, skin, etc., anyone know how to fix it please?
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid, 0xFFFFFFFF);
return 1;
}