Raised This Month: $ Target: $400
 0% 

Saving Origins 1.0 (Drak)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Xanimos (85)
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 07-03-2007 , 09:36   Saving Origins 1.0 (Drak)
Reply With Quote #1

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:
amx_addcoordinates "text"
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

Known bugs:
-None (anymore)

Credits:
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

NOTES:
-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.
Attached Files
File Type: zip saving_origins.zip (724 Bytes, 795 views)
File Type: ini mapOrigins.ini (2 Bytes, 716 views)
File Type: sma Get Plugin or Get Source (saving_origins.sma - 2173 views - 996 Bytes)
__________________
Mod:
User:

Last edited by BlackMilk; 07-04-2007 at 04:17.
BlackMilk is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode