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

Script 3.6 Tfs

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
Can someone tell me what needs to be edited in this script so it works on tfs 3.6? When ever i type the talkaction the server starts to freeze, command takes cash but does not give an item and keeps saying you don't have enough cash ;o


Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == 1 then
doPlayerAddItem(cid, 2173, 1)
else
			doPlayerSendCancel(cid, 'You don\'t have enough money.')
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		end
		end


Thanks.
 
Code:
function onSay(cid, words, param)
	if(doPlayerRemoveMoney(cid, 10000)) then
		doPlayerAddItem(cid, 2173, 1)
	else
		doPlayerSendCancel(cid, "You don't have enough money.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end
 
So it was just missing return true?


Tbh i am in such shame atm :( :l will try it, thanks!









@Edit,

Still keeps giving me "you don't have enough cash".

Just takes cash without giving an item. :(

Code:
<talkaction words="!aol" event="script" value="aol.lua" />
 
Last edited:
Bump. :( Still didn't figure it out


//Thankss. :( Rep+

Code:
function onSay(cid, words, param)
    if doPlayerRemoveMoney(cid, 50000) == true then
        doPlayerAddItem(cid, 2173, 1)
    else
        doPlayerSendCancel(cid, 'You don\'t have enough money.')
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
    end
end

Its the one I am using :p and it works
 
Back
Top