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
Thanks.
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.