SA-MP Forums Archive
[HELP]RolePlay Bug - 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: [HELP]RolePlay Bug (/showthread.php?tid=72091)



[HELP]RolePlay Bug - External-Life - 06.04.2009

on any rp script that i load on my server the users will only get 50% health but if i do /sethp <name> 100 then it sets to 100 i leave come back and back at 50%.. Can someone help me please


Re: [HELP]RolePlay Bug - dre$tA - 06.04.2009

Search for SetPlayerHealth(playerid, 50.0); or SetPlayerHealth(playerid, 50);

Most likely you can find one under OnPlayerSpawn(playerid) callback, if yes change it to SetPlayerHealth(playerid, 100);

Or just add
SetPlayerHealth(playerid, 100);

In the end of OnPlayerSpawn(playerid) callback.