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

TalkAction Simple Buy Backpack Command

perfection

FATAL DAMAGE
Joined
Aug 27, 2011
Messages
196
Reaction score
8
LUA:
function onSay(cid, words, param)
if  getPlayerMoney(cid) >=20 then
	doPlayerRemoveMoney(cid,20)
	doPlayerAddItem(cid,1988,1)
	doSendMagicEffect(getPlayerPosition(cid),12)
	doPlayerSendTextMessage(cid,22,"You Got A Bp!")
else
	doPlayerSendCancel(cid,"You Dont Have Enough Money")
	doSendMagicEffect(getPlayerPosition(cid),2)
end
return 1
end
 
LUA:
function onSay(cid, words, param)
	return doPlayerRemoveMoney(cid, 20) and (doPlayerAddItem(cid, 1988, 1) and doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE) and doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE ,"You've bought a backpack.")) or (doPlayerSendCancel(cid, "You don't have enought money.") and doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF))
end

Simple script, someone might need it for high exp ots.
 
Back
Top