Today ive finally made my first script that works Thanks to some tutorials.
Its an talkaction script
Its an talkaction script
PHP:
<talkaction words="!backpack" script="backpack.lua" />
PHP:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 100) == 1 then
doPlayerAddItem(cid, 1988, 1)
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end