General > Developers Corner
[Prop Hunt] Prevent player going to xx xx coordinates
BelgiumWarGod:
Hi,
How do i get the current coordinates of a player in ulx ?
I want to make a addon that prevent you from going to a specific coordinate(s).
So i need to know how you get the coordinate(s) of a player ?
Example : Prop wants to go behind dumpster but gets pushed back for going to that coordinate.
Excusses of this is very simple but i just started messing around in ulx so thanks for helping
JamminR:
ULX admin mod has no function like you're asking about.
Perhaps you could go ask for help coding a function (whether ULib dependent or not) in the Developers corner.
BelgiumWarGod:
--- Quote from: JamminR on December 07, 2014, 07:47:20 PM ---ULX admin mod has no function like you're asking about.
Perhaps you could go ask for help coding a function (whether ULib dependent or not) in the Developers corner.
--- End quote ---
Oh k thanks for the fast reply. I'll guess i look in to map editing our something like that.
lol if someone could make this and ask 20 $ for it he/she is going to get nice money of it xD pretty much every server would buy it
JamminR:
I've seen mentions of spawn protect scripts here, wouldn't surprise me if the framework hasn't been done already somewhere.
Though you're not necessarily trying to protect spawn, the idea is generally the same.
As for charging, well, we don't exactly recommend that here, since the license ULib/ULX use (Creative Commons 3) expressly forbids charging.
Not exactly strongly enforced though.
Most coders here code Lua for fun.
BelgiumWarGod:
--- Quote from: JamminR on December 07, 2014, 09:15:26 PM ---I've seen mentions of spawn protect scripts here, wouldn't surprise me if the framework hasn't been done already somewhere.
Though you're not necessarily trying to protect spawn, the idea is generally the same.
--- End quote ---
Hmm i could take a look in those scripts. I've checking out the !unstuck scripts already cause those teleport you back to the map.
--- Quote from: JamminR on December 07, 2014, 09:15:26 PM ---As for charging, well, we don't exactly recommend that here, since the license ULib/ULX use (Creative Commons 3) expressly forbids charging.
Not exactly strongly enforced though.
Most coders here code Lua for fun.
--- End quote ---
Well if i ever could find / make something in ulx that does this i'll never ask money for it.
I mess around in programming languages for fun.
Ulx is a great language it reminds me of a simplified c# language and C# is awesome if you get the hang of it x.x
Navigation
[0] Message Index
[#] Next page
Go to full version