Sorry that I bother you with such an easy problem.
I just can't figure out how this works.
... dam.
Here's the script:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("use","PMu")
PMPCs = {84,186,83,190}
function PMu(id)
local x = math.floor(player(id,"x")/32)
local y = math.floor(player(id,"y")/32)
if PMpos(id,x,y) == "true" then
	PMPCPmain(id)
end
end
function PMpos(id,x,y)
for k,v in ipairs(PMPCs) do
if x == v and y == PMPCs[v+1] then
	return "true"
end
end
end
Like this:
1
2
3
2
3
if (player(id,"x") == 84 and player(id,"x") == 186) or (player(id,"x") == 83 and player(id,"x") == 190) then 	PMPCPmain(id) end
How can you do that, I am a beginner in scripting so I don't know
open menu if x,y = "true"
1 
Offline
Flacko