Thread: JailMod++
View Single Post
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 08-17-2005 , 10:54  
Reply With Quote #6

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
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee