SA-MP Forums Archive
Lose Health & Objects - 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: Lose Health & Objects (/showthread.php?tid=298683)



Lose Health & Objects - Qur - 22.11.2011

Hey.. on my script players lose hp every few minutes, and I couldnt find it on the script.. someone can lead me to how it should look like?

and the second thing is..
I saw on few server that if you /smoke so you get a ciggarette in your hand.. same like beer and things like that.. so wanted to ask if i need that Hold thing and how can I find the objects?


Re: Lose Health & Objects - jiwan - 22.11.2011

Code? Show us code.


Re: Lose Health & Objects - [MG]Dimi - 22.11.2011

1) Search for SetTimerEx and
PHP код:
new Float:HP;
GetPlayerHealth(playerid,HP);
SetPlayerHealth(playerid,HP-[something]); 
2)https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction with these IDs https://sampwiki.blast.hk/wiki/SpecialActions