Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Restricted teleport
AlexLambert
Little Clucker
Posts: 18
Threads: 9
Joined: Mar 2016
Reputation:
0
#1
25.04.2017, 09:03
Hi, I havent found anything similar. I would like to know how I can create a teleport that can only be used if you are in an area, if you are not in that area, the command will not work, thank you.
Find
Reply
Kane
Gangsta
Posts: 824
Threads: 6
Joined: Sep 2012
Reputation:
0
#2
25.04.2017, 09:10
Could always use IsPlayerInRangeOfPoint.
Find
Reply
AlexLambert
Little Clucker
Posts: 18
Threads: 9
Joined: Mar 2016
Reputation:
0
#3
25.04.2017, 10:12
Quote:
Originally Posted by
Arthur Kane
Could always use IsPlayerInRangeOfPoint.
Yes, but in IsPlayerInRangeOfPoint do i just need to put the /save position?
Find
Reply
DarkSkull
Huge Clucker
Posts: 325
Threads: 14
Joined: Aug 2014
Reputation:
0
#4
25.04.2017, 10:38
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
x, y, z is the center. Range is the radius. Think of it like a circle with radius 'Range' and center as (x,y,z)
You need to put the first three cords of /save as x, y and z respectively and then specify a range.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help