• 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 Get Exp By Paying Money

perfection

FATAL DAMAGE
Joined
Aug 27, 2011
Messages
196
Reaction score
8
LUA:
local experience = 100000 -- How much exp will be granted
local cash = 200000 -- How much money will be paid

function onSay (cid, words, param)
	if getPlayerMoney(cid) >= cash then
		doPlayerRemoveMoney(cid, cash)
		doPlayerAddExp(cid, experience)
		doPlayerSendTextMessage(cid,22, "You sucessfully bought " .. experience .. " EXP.")
	else
		doPlayerSendCancel(cid,"You Dont Have Enough Money")
	end
	doSendMagicEffect(getPlayerPosition(cid),2)
	return TRUE
end

leave ur comment if u like it :) and if u wanna change the values just edit the locals
 
Back
Top