function comprarcasa(id,x,y)
if(player(id,"exists")) then
px = player(id,"tilex")
py = player(id,"tiley")
if px == 21 and py == 21 then
msg2(id,"©255000000 ID: "..casas[1].."")
if casas[1] == 255 then
casas[1] = id
msg2(id,"©255000000 ID: "..casas[1].."")
parse("setmoney "..id.." "..player(id,"money")-1000)
elseif casas[1] ~= id then
msg2(id,"©255000000 Somente o dono pode abrir a casa")
msg2(id,"©255000000 ID: "..casas[1].."")
return 1
end
end
end
end
And is not working, only for admins... =\
I need to know, is 'usebutton' hook working?