• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Change maximum numer of health points lua

Nerkoerko

Banned User
Joined
Feb 28, 2009
Messages
402
Reaction score
5
Location
Polska
Welcome to the NPC needs a function that changes the maximum number of health points of a player.
 
hard eng?
if u mean: npc who decreasing max health
LUA:
...
local percent = 10

setPlayerMaxHealth(cid, getPlayerMaxHealth(cid)-(getPlayerMaxHealth(cid)/100)*percent)
...

This will decrease health by 10% for forever.
If u want that script will decrease for a while - change "PlayerMaxHealth" to "PlayerHealth"
 
Back
Top