Kayan
Active Member
see my action
I use this action..
But him no send player name owner of house ID 1
what's problem? ;x
PHP:
function onUse(cid, item, frompos, item2, topos)
playername = getCreatureName(cid)
if item.uid == 2526 and item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
setHouseOwner(1, playername)
doSendMagicEffect(topos,4)
doPlayerSendTextMessage(cid,18,"You are new owner of Castel!")
elseif item.uid == 2526 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
end
end
I use this action..
But him no send player name owner of house ID 1
what's problem? ;x