Quote:
Originally Posted by mysticssjgoku4
Damn dude nice job, I wish I could say i did this
|
thx man
Quote:
Originally Posted by mysticssjgoku4
Do you think you could also tell me how I would add the functionality for checking what map it is, and then reading from the file for the correct coordinates like yours does. It would be great if I could add this into mine for my server
|
well, you could simply use mine...
if you have a closer look at the functions readjail() and writejail(), you'll see how I did that... just read the config file line by line, search for a map name and if you found the right one, parse the coordinates which are located in the following lines.
you basically have to keep all the functions dynamic so the jail the users are sent to can vary, that's it. you hardcoded the origins in your script and used different functions for the jails, that is what I avoided.
Greetz MGee
__________________