AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Saving Origins 1.0 (Drak) (https://forums.alliedmods.net/showthread.php?t=57357)

BlackMilk 07-03-2007 09:36

Saving Origins 1.0 (Drak)
 
3 Attachment(s)
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.

vvg125 07-03-2007 12:14

Re: Saving Origins 1.0 (Drak)
 
Don't put the files in a .zip. Upload the .sma and .ini separately.

Hawk552 07-05-2007 18:18

Re: Saving Origins 1.0 (Drak)
 
Waiting for confirmation that it works.

BlackMilk 07-06-2007 04:21

Re: Saving Origins 1.0 (Drak)
 
I tested it before posting, it works. (including fixing the Unknown command message thanks to Stupok69)

However that was on CZ, so I reckon it will at least work on CS too, if it doesn't work on others I suppose I'll change the mod to CS or CZ.

purple nurple 07-12-2007 16:20

Re: Saving Origins 1.0 (Drak)
 
good job!

Xanimos 07-15-2007 14:20

Re: Saving Origins 1.0 (Drak)
 
Approved. Very simple but useful plugin.

HLM 09-19-2008 16:14

Re: Saving Origins 1.0 (Drak)
 
I am interested in this, maybe when I get my server back to a stable phase again I will seriously use this.

ColdBlood 01-24-2009 03:43

Re: Saving Origins 1.0 (Drak)
 
i have a quick question about this..... how do you add the waypoints to runemod for the runes to spawn on them?

Drak 12-17-2010 22:39

Re: Saving Origins 1.0 (Drak)
 
1 Attachment(s)
Updated version:
Added "amx_coordinateteleport" - Allows you to teleport back to saved locations.
Fixed up a few things

nagile 12-13-2012 21:26

Re: Saving Origins 1.0 (Drak)
 
is the extra text ignored? is only chunk of digits a,b,c parsed?? i tried to save coords like other maps on crossfire but no runes in map.


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

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