• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Suicide Talkaction !!!

perfection

FATAL DAMAGE
Joined
Aug 27, 2011
Messages
196
Reaction score
8
Lua:
function onSay(cid, words, param, channel)
    if isPlayerPzLocked(cid) == FALSE then
		doCreatureAddHealth(cid, - getCreatureMaxHealth(cid))
	else	
		doCreatureSay(cid,"Admin Won't Allow me To Suicide During Fight",TALKTYPE_ORANGE_1)
	end	
return 1
end
 
It won't work too well. What if the player has less than his maxhealth?
Change the "-getCreatureMaxHealth" to "-getCreatureHealth"
 
It won't work too well. What if the player has less than his maxhealth?
Change the "-getCreatureMaxHealth" to "-getCreatureHealth"

ye this would also work but if he has less than max health and u - max health he will also get 0 hp and R.I.P :p
 
Back
Top