As soon as I spawn I die. - 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: As soon as I spawn I die. (
/showthread.php?tid=348206)
As soon as I spawn I die. -
cloudysky - 04.06.2012
As soon as I spawn, after choosing my class, I die. There is no reason for it. Does anyone know what could be causing this?
Re: As soon as I spawn I die. -
Firo - 04.06.2012
What do you mean ? After you select a class you dying?
Give me the OnPlayerRequestSpawn & OnPlayerSpawn Public.
Re: As soon as I spawn I die. -
cloudysky - 04.06.2012
I don't have OnPlayerRequestSpawn
Re: As soon as I spawn I die. -
Firo - 04.06.2012
This function should Spawn the player, Are you sure the player die?
Re: As soon as I spawn I die. -
cloudysky - 04.06.2012
FIXED: I imagine other people with the same problem so here is the solution, Make sure you have this,
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
SetPlayerHealth(playerid, 100);
return 1;
}