English Area position

5 replies
Goto Page
To the start Previous 1 Next To the start
02.08.18 12:39:05 pm
Up
Hazard_h
User
Offline Off
Hi guys welcome everybody,

I need some help please I need the area i lua but position i dont add it
Code:
1
2
3
4
5
6
7
8
addhook('movetile','movetile_hook')
function movetile_hook(id,x,y)
if player(id,'tilex') == tilex and player(id,'tiley') == tiley then --
parse('hudtxt2 '..id..' 2 "\169000128255[Area]:\169255255255 CAR SHOP " 9 126 0')
else
parse('hudtxt2 '..id..' 2 "\169000128255[Area]:\169255255255 CITY " 9 126 0')
end
end


pls hellp me and thx so much
02.08.18 12:45:39 pm
Up
Avo
User
Offline Off
Code:
if player(id,'tilex') == tilex and player(id,'tiley') == tiley then

tilex
and
tiley
are coordinates, so change them to any numbers you want:
Code:
if player(id,'tilex') == 20 and player(id,'tiley') == 18 then

Btw, you didn't have to make another thread, since you created thread trash Area position.
02.08.18 05:33:46 pm
Up
Hazard_h
User
Offline Off
I do not know what you mean
Code:
1
tiley
and
Code:
1
tilex
Explain to me please •
02.08.18 05:49:55 pm
Up
KingShadow
User
Offline Off
you made 2 threads about that just cause you dont know how to change the coordinates
i told you to change it before you use it in your script

you can find tilex and tiley in map editor down of the screen
you will find x | y take the first number and replace it with
Code:
1
tilex
and the second number replace it with
Code:
1
tiley


is it hard to understand??
03.08.18 09:51:46 am
Up
Hazard_h
User
Offline Off
I honestly do not know how to use it so I make the place that I want to be in @user Avo: @user KingShadow: Explain to me how
05.08.18 05:34:25 pm
Up
Rygna
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
addhook('movetile', 'movetile_hook')
function movetile_hook(id, x, y)
     local x1 = 10 -- change this.
     local y1 = 10 -- dis tho.

     if player(id, 'tilex') == x1 and player(id, 'tiley') == y1 then
          parse('hudtxt2 '..id..' 2 "\169000128255[Area]:\169255255255 CAR SHOP " 9 126 0')
     else
          parse('hudtxt2 '..id..' 2 "\169000128255[Area]:\169255255255 CITY " 9 126 0')
     end
end

Begone.
To the start Previous 1 Next To the start