SA-MP Forums Archive
onplayerspawn & onplayerdeath callbacks - 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: onplayerspawn & onplayerdeath callbacks (/showthread.php?tid=261215)



onplayerspawn & onplayerdeath callbacks - i514x - 12.06.2011

When i do something like that:
Код:
OnPlayerSpawn(playerid);
or
Код:
SpawnPlayer(playerid);
i dont know why but OnPlayerDeath callback is called. Im not a PAWN noob, i checked everything, i never call that callback, i checked it when its called by print(..); and it seems that its called right after OnPlayerSpawn has finished.
Has SA-MP got some function bugged which i dont know about? Please reply


//edit: when i set player health to 0, the hp bar is 0 but you can walk normaly


Re: onplayerspawn & onplayerdeath callbacks - Gamer_Z - 12.06.2011

try testing the mode on you localhost.


Re: onplayerspawn & onplayerdeath callbacks - ricardo178 - 12.06.2011

OnPlayerSpawn is a call back...

public OnPlayerSpawn(playerid)


Re: onplayerspawn & onplayerdeath callbacks - i514x - 12.06.2011

lol i know its a callback, but i can call it as a normal function so it will like respawn a player. and problem is solved