Raised This Month: $59 Target: $400
 14% 

Clan Manager - A clan management plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   devicenull (200)
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 07-22-2004 , 14:49   Clan Manager - A clan management plugin
Reply With Quote #1

**** MOVED TO THE FOLLOWING LOCATION ****

http://forums.alliedmods.net/showthread.php?t=12851


This plugin is directly related to a few requests that I read and did some work on. I added them together and started thinking about this is a larger light. So this is the initial release and will be maintained and modified as bugs a noticed.

Features:

clan_add - Will allow a clan leader to add a member to his clan. That member MUST be on the server. In later releases I will have a php based web interface to this plugin and it will be converted to SQL so that you will be able to add a player using the tracker feature that will be incorporated into it.

clan_del - Will allow a clan leader to delete a member from his clan. This member does not need to be on the server and a portion of their steam id or their name will be enough. It will store this deleted member in a deleted file so that they can be reinstated in later versions.

clan_promote - This is a way to promote you players and give them rights on the server as admins. To configure this you must open the amxx/custom/clanmanager/clanlevel.txt to your own fixings. At the moment it is set to the following:
Code:
//Name		Access
"Clan Leader"	"abcdefghijklmnopqrstuy"
"Clan Admin"	"abcdefghijkltu"
"Clan Commander"	"bcefijktu"
"Clan Soldier"	"bijtu"
As this plugin is dynamic a member is set to whatever level you wish when you add them. So if you add a member as a "Clan Soldier" and then wish to promote them they will become a "Clan Commander". Now depending on your clan organization you must edit the names of the Levels as well as the Access Flags.

clan_demote - This will let you demote a member to a lower level.
clan_showmembers - This will show the caller a list of clan members, if they have the access level of ADMIN_CVAR, they will also see the steam id and the access flags. Anyone else will just see the members and the Level Name that that member is.

CVARS - These variables DO NOT NEED to be modified in the .sma, you just edit the amxx/custom/clanmanager/manager.cfg

clan_name - This will be the Full Name of Your Clan
clan_tag - This is the Tag worn by your members
clan_listmotd - This is the display method you wish to use for the clan_showmembers command. If this is set to 1 then it will use a Message of the Day motd window and HTML. If it is set to 0 it will show it in the console. In later version I will take into account for larger clans so that it will ask you to pick the class level you wish to look at. That way there are no overflows with the motd window.

Future Features:
These are some of the features I am planning on intergrating:
- Clan member statistics gatherer
- Tag Protection and Naming/Re-Naming Convention
- SQL Integration
- PHP web Interface
- Eventually I want to make this into a module for making it easier to administer your clan and bring the fun back into being the boss.

Feature Requests:
If you have any features that you would like to see please post them here and I will add them to the ToDo list if they fit with this plugin and if they are do-able. If a feature is requested and implemented your name will be attached to that feature.

Bug Reports:
Please start by putting BUG REPORT at the top of your reply to this thread. And provide detailed information about the following:

1. OS
2. RAM / CPU Speed
3. Metamod version and Modules Running
Output from rcon metamod list
4. AmxModX version and Modules Running
Output from rcon amxx modules
5. Plugins for AmxModX Running
Output from rcon amxx plugins
6. Snipet of the logs from both amxx and hl that detail the crash

With this information I can quickly diagnose the problems that are occuring and how to fix them. If you find a problem and have cured it yourself please post the code snipit in this thread and it will be fixed in the original code and a modification version will be uploaded with your name incorporated into it.

If you have any general questions in regards to this or any other plugins PM me and I will get to asap!

Code:
Version Revision:
v0.1 -
Started a text based version to add members.  You must have the folder clanmanager/ in the amxx/custom/ directory with files contained.  You must also place this plugin AFTER the admin.amx or admin_sql.amx whichever you use as it will check users for admin privlages, it is best if you do not have anyone in these files.

v0.2 -
Found some major programming errors in the code.
- Fixed all the linenumbers that are for file iteration to start at 0
- Fixed reseting linenumbers to 0 before attempting to run throught the next file

v0.3 -
Found some more errors
- Main error was coming from the clanlevel.txt, I was calling it meberslevel.txt
- Fixed method of tracking the files, added an enum instead of using the 0-4
- Made it compliant with amxmodx method of folder locating
- Fixed the output of showmembers in console mode to show to admins all on one line
- Removed the oldmembers file and references, now it just logs it as a delete
- Fixed the check for level containi to see if retur is greater than 0
- Removed && !is_user_bot(playerIndex) && !is_user_hltv(playerIndex) checks as they were not working and redundant
- Changed the read_file to use the return other than using the linum++ in certain places
- Reworked the clandelete function as it was cause ^n when a member was added and deleted, this could become a huge file
- Reworked the showmembers function
- Made the third argument in clanadd an optional one.  It will default to lowest level

v0.3a -
- Fixed some compile errors and the  that I forgot to remove!!!

v0.3b - 
- Fixed the client_connect problem set it to client_authorized
- Fixed error where anyone had access to call the functions, made it authenticate in the function
- Changed the Admin Levels: to add and delete is not ADMIN_CVAR=g to promote/demote is ADMIN_LEVEL_A=m and a view admins with levels is now ADMIN_LEVEL_H=t

v0.3c -
- Fixed for the RC3 v0.20 AmxModX
- Changed file name to a more distinct name
- Changed from custom directory to config directory
- Added the ability to skip empty lines in the config files
Cheers! And the Best of Luck!
Attached Files
File Type: zip clanmanager.zip (844 Bytes, 2091 views)
File Type: sma Get Plugin or Get Source (clan_manager.sma - 3248 views - 24.8 KB)
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-22-2004 , 15:38  
Reply With Quote #2

hmmsounds nice gonna try out saturday when most members are on. gj.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 07-22-2004 , 15:58  
Reply With Quote #3

Thx King, now I'm still doing testing on it so please be patient and if you notice any f-ups please tell me. I'm not perfect and this was only briefly tested as I'm testing only on my home puter and connecting to it via network.

Cheers!
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 07-22-2004 , 16:25  
Reply With Quote #4

get error message when unziping the clanmanager.zip
__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-22-2004 , 16:46  
Reply With Quote #5

hey atleast u did it and thats good lol will get back to you if I notice anything.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Zor
Veteran Member
Join Date: Mar 2004
Location: Toronto, ON
Old 07-22-2004 , 18:05  
Reply With Quote #6

-=STN=- MaGe, I downloaded it no problem. Are you Linux? Cause it was done with winzip...could be confilicts.
__________________
Zor is offline
Send a message via AIM to Zor Send a message via MSN to Zor Send a message via Yahoo to Zor
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-22-2004 , 18:11  
Reply With Quote #7

works fine on linux maybe ur getting a correupted file? try again or restart and try again.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 07-22-2004 , 21:24  
Reply With Quote #8

downloaded 20 times with same error

error message is attacheted im using windows

__________________



-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
Arucard
Member
Join Date: Mar 2004
Location: Somewhere Special :D
Old 07-22-2004 , 21:32  
Reply With Quote #9

Thats weird bro I just unrarred it fine..... Im also usin win xp..
__________________
May the Lord and the Queens Blessings be With you. Amen.
Arucard is offline
BOOM
Member
Join Date: Jun 2004
Old 07-22-2004 , 22:20  
Reply With Quote #10

nice one i'm gonna try this and i'll get back to you if there's any error or problem
BOOM is offline
Reply


Thread Tools
Display Modes

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 05:48.


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