vitorbertolucci
Member
- Joined
- Apr 15, 2014
- Messages
- 75
- Reaction score
- 18
I'm trying to make it so only vip players are able to buy houses.
I tryied to change the !buyhouse command into a script that calls another talkaction, like this:
talkactions.xml:
and in buyhouse.lua
It is working fine with my gamemaster but when players try to use the command simply nothing happens... does anyone have an idea?
I tryied to change the !buyhouse command into a script that calls another talkaction, like this:
talkactions.xml:
Code:
<talkaction words="!buyhouse" filter="word-spaced" event="script" value="buyhouse.lua"/>
<talkaction words="!huyblulx3" filter="word-spaced" event="function" value="houseBuy"/>
and in buyhouse.lua
Code:
function onSay(cid, words, param)
if isVip(cid) then
doCreatureExecuteTalkAction(cid, "!huyblulx3",true)
else
doPlayerSendCancel(cid,"Only vip player can buy houses.")
end
return true
end
It is working fine with my gamemaster but when players try to use the command simply nothing happens... does anyone have an idea?