How to make gates ? + they open and close
#1

I need help with making gates.. i know how to add gates,but how that open and close system?
i hear i have to get coordinates of close and open place..
Reply
#2

Use moveobject.
Reply
#3

Okay.. I use if(PlayerToPoint too?
Reply
#4

http://forum.sa-mp.com/index.php?top...8575#msg828575
Reply
#5

Quote:
Originally Posted by Nakki
Okay.. I use if(PlayerToPoint too?
the native IsPlayerInRangeOfPoint(playerid.. is better, and faster
edit; link here (how to use it)
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#6

Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by Nakki
Okay.. I use if(PlayerToPoint too?
the native IsPlayerInRangeOfPoint(playerid.. is better, and faster
edit; link here (how to use it)
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
IsPlayerInRangeOfPoint is better

if(IsPlayerInRangeOfPoint(playerid, 10.0 , Float, Float:y, Float:z); //you can get the floats from saved positions
Reply
#7

Quote:
Originally Posted by _Saif_
Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by Nakki
Okay.. I use if(PlayerToPoint too?
the native IsPlayerInRangeOfPoint(playerid.. is better, and faster
edit; link here (how to use it)
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
IsPlayerInRangeOfPoint is better

if(IsPlayerInRangeOfPoint(playerid, 10.0 , Float, Float:y, Float:z);
And what have i just said to him? Just keeping your post counter high up
and he can change the range of where the door's (or gates) can open,
so it doesn't have to be 10.0!

edit; the link i gave him is pretty self-explanatory
Reply
#8

I used this https://sampwiki.blast.hk/wiki/Automatic_Gates
back then to learn Move Object stuff.
Reply
#9

For automatic gates you have to use PlayerToPoint or IsPlayerInRangeOfPoint (Easier one). But I recommend you to just use gates opening with a command (MoveObject)
Reply
#10

Yes i make Command (/opengate) i use MoveObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)