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

!hp/mp, !level commands

troxet

New Member
Joined
Oct 7, 2010
Messages
158
Reaction score
3
Location
United kingdom
Hey.

Does anybody have got !hp/mp and !level commands for tfs 0.3.6? I was lookin on otland about 3 days now and cant find them :(
If anybody got it please share with me i wil rep ++ for that

Regards,

Troxet
 
Okay, and what's the function of those scripts?

- - - Updated - - -

Code:
function onSay(cid, words, param)
	local info = {
		[1] = {"Current HP: ", getCreatureHealth(cid)},
		[2] = {"Current Mana: ", getCreatureMana(cid)},
		[3] = {"Level: ", getPlayerLevel(cid)}
	}
 
	end
	return true
end
 
With popup:
Lua:
function onSay(cid, words, param)
	local info = {
		[1] = {"Current Mana: ", getCreatureMana(cid)},
		[2] = {"Current Health: ", getCreatureHealth(cid)},
		[3] = {"Level: ", getPlayerLevel(cid)}
	}
	
	local str = ""
	for i = 1,#info do
		str = str .."".. info[i][1] .."".. info[i][2] .."\n"
	end
	doPlayerPopupFYI(cid, "\n".. str)
 
	return true
end

Without popup:
Lua:
function onSay(cid, words, param)
	local info = {
		[1] = {"Current Mana: ", getCreatureMana(cid)},
		[2] = {"Current Health: ", getCreatureHealth(cid)},
		[3] = {"Level: ", getPlayerLevel(cid)}
	}
	
	local str = ""
	for i = 1,#info do
		str = str .."".. info[i][1] .."".. info[i][2] .."\n"
		doPlayerSendTextMessage(cid, 19, "\n".. str)
	end
 
	return true
end
 
Back
Top