• 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!

Cigar

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
Code:
function onUse(cid, item, frompos, item2, topos)
 
local rand = math.random(1,10)
 
	if rand == 1 then
		doPlayerSay(cid, "Cough!, Cough!..." ,16)
		doPlayerAddHealth(cid, -5)
		doSendMagicEffect(topos,34)
		doRemoveItem(item.uid, 1)
 
		return 1
 
	else
		doPlayerSay(cid, "Fhuuu..." ,16)
		doSendMagicEffect(topos,2)
		doRemoveItem(item.uid, 1)
 
		return 1
  	end
end

can someone make this work with tfs 0.3.6pl1 8.54?
 
Back
Top