Category: Admin Commands
Approver: Xanimos (85)
Saving Origins 1.0 by Drak
What does it do?
This plugin allows you to save the coordinates of your current position (ingame ofcourse) to an .ini file along with a comment that you can input yourself. Every entry is listed below the previous one in the .ini file.
The mapname of the map you were in when you executed the command is also noted at the beginning of the entry (automatically).
What's the use of it?
Requested (by me) so one can quickly "write down" coordinates to use with mods and plugins such as CSDM and Rune Mod where the server owner has to input lots of coordinates in configuration files for eg. player/item/rune spawns, or perhaps teleportation locations for other plugins.
Because you don't have to type status in console everytime to get your coordinates, or write them down on paper or constantly go to desktop to put them on some file - this saves MAJOR time.
How do I use this plugin?
There is only one command:
Use the command wherever you like, the coordinates of that position will automatically be saved to the mapOrigins.ini file, along with the text behind it, and the mapname in front of the entry. Ofcourse the point is to use the text to add comments such as "CSDM player spawn" or "CT flag point" or whatever, but you can do without.
-And ofcourse you can view all the entries in the mapOrigins.ini
How to install:
-Download the zip file (contains the source file AND the .ini file)
-Compile the .sma file
-Put the .amxx file in your plugins folder
-Place the mapOrigins.ini file in your configs folder
Drak (aka SixTwin) for making the plugin.
Alka for showing how to add a line-breaker so all entries are listed BELOW eachother rather than on one line (that made the plugin almost redundant - thanks Alka)
Stupok69 for removing the Unknown command console message by adding a check.
Plugin requested by myself, I just changed the command flag to ADMIN_RCON so other (non-)admins won't add entries which you don't need or which are plainly wrong, and added the linebreak shown by Alka
-I set the Modification to All because it's a fairly simple plugin and I didn't really find anything that's mod-specific in the source code. (but I'm a noob at coding so please correct me if I'm wrong)
-Once more, keep in mind that this is NOT MY plugin, I merely posted it here for Drak cos he didn't really feel like it.
Last edited by BlackMilk; 07-04-2007 at 04:17.