Raised This Month: $ Target: $400
 0% 

join to sourcemod group(!join to join a group automanicly)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
gamemann
Veteran Member
Join Date: Sep 2009
Location: Mullica Hill, New Jersey
Plugin ID:
2562
Plugin Version:
1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    join to sourcemod group(!join to join a group automanicly)
    Old 09-16-2011 , 19:18   join to sourcemod group(!join to join a group automanicly)
    Reply With Quote #1

    Description:
    Hello everyone, what this plugin does is when someone types !join in the chatbox, it automatically adds them to a group based on the convars!

    Features:
    - Checks for the group so people can't spam !join and spam admin_simple.ini
    - When people type !join and they are added to the group, it automatically refreshes admins list

    Convars:
    sm_join_flag - The groups name to put in admin simple.ini, USAGE: <immunity>:@<groupname>
    sm_join_group - The group name to check to see if the client in that group or not(prevents flooding the admim_simple.ini and should be same group as sm_join_flag group is set to
    sm_join_group_name - Groups name of the group

    Installation:
    put .smx into the sourcemod/plugins folder
    put .sp into the sourcemod/scripting folder
    put .cfg into the cstrike\cfg\sourcemod folder and edit it

    Making groups:
    open sourcemod\configs\admin_groups.cfg
    and put this:
    Code:
    "Groups"
    {
    	"<groupname>"
    	{
    		"flags"		"<flags>"
    	}
    }
    and edit the <groupname> for group name to put in the convar...
    Also edit the <flags> of which flags to put
    Example:
    Code:
    "Groups"
    {
    	"MEM"
    	{
    		"flags"		"t"
    	}
    }

    then go into the sourcemod\configs\admin_overrides.cfg
    and put this at the bottom:
    Code:
    	 "<groupname>"		"<flags>"
    and edit the <groupname> for group name to put in the convar...
    Also edit the <flags> of which flags to put
    Example:
    Code:
    Overrides
    {
    	/**
    	 * By default, commands are registered with three pieces of information:
    	 * 1)Command Name 		(for example, "csdm_enable")
    	 * 2)Command Group Name	(for example, "CSDM")
    	 * 3)Command Level		(for example, "changemap")
    	 *
    	 * You can override the default flags assigned to individual commands or command groups in this way.
    	 * To override a group, use the "@" character before the name.  Example:
    	 * Examples:
    	 *		"@CSDM"			"b"				// Override the CSDM group to 'b' flag
    	 * 		"csdm_enable"	"bgi"			// Override the csdm_enable command to 'bgi' flags
    	 *
    	 * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
    	 * any setting that csdm_enable previously had.
    	 *
    	 * You can make a command completely public by using an empty flag string.
    	 */
    	 "MEM"		"t"
    
    }

    Credits:
    - me

    Version History:
    1.0:
    - release

    Bugs:
    - none so far

    Good with:
    - simple chat colors(for tags and stuff)

    How to see if its working:
    Let someone that isn't a member of that group type !join and when he does go to admin simple, scroll down the bottom and should say this:
    Code:
    //<username?
    "<steamid>" "<immunity>:@<groupname>
    and should work good from there ;)

    Please report any bugs and enjoy!

    UPDATED THREAD: http://gflclan.com/showthread.php?30...-automatically)
    Attached Files
    File Type: sp Get Plugin or Get Source (join.sp - 880 views - 3.1 KB)
    File Type: smx join.smx (6.4 KB, 733 views)
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!

    Last edited by gamemann; 04-21-2012 at 19:01.
    gamemann is offline
    Send a message via Skype™ to gamemann
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 09-17-2011 , 01:03   Re: join to group(!join to join a group automanicly)
    Reply With Quote #2

    Meh nvm.
    Thanks for the plugin will come handy for sure.
    __________________

    Last edited by napalm00; 09-17-2011 at 01:06.
    napalm00 is offline
    angel635
    Senior Member
    Join Date: Apr 2011
    Old 09-17-2011 , 04:26   Re: join to group(!join to join a group automanicly)
    Reply With Quote #3

    hi
    It is plugin can join a group steam ?
    angel635 is offline
    Mike_BoG
    SourceMod Donor
    Join Date: Jul 2011
    Old 09-17-2011 , 06:24   Re: join to group(!join to join a group automanicly)
    Reply With Quote #4

    This only adds people to a SourceMod group i believe.
    Mike_BoG is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 09-17-2011 , 06:30   Re: join to group(!join to join a group automanicly)
    Reply With Quote #5

    name is confusing. at first i thought it was a join to steam group plugin.
    imo, this should be renamed to something like "join to admin/sourcemod group."
    Visual77 is offline
    angel635
    Senior Member
    Join Date: Apr 2011
    Old 09-17-2011 , 06:48   Re: join to group(!join to join a group automanicly)
    Reply With Quote #6

    is it possible to have an example please?
    angel635 is offline
    gamemann
    Veteran Member
    Join Date: Sep 2009
    Location: Mullica Hill, New Jersey
    Old 09-17-2011 , 11:06   Re: join to sourcemod group(!join to join a group automanicly)
    Reply With Quote #7

    THis is good for members and stuff...
    Like if you type !join, it puts you in a sourcemod group such as MEM... And it gives a member a flag according to the group...
    Its kinda hard to explain but if you want to try a test go to my surf dm server( in signature)
    and type !join and then rejoin and see how it works...

    EDIT:
    I was think about a plugin that made it so someone types !join and it invites them to a steam group but i havent figured out the code yet....
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!
    gamemann is offline
    Send a message via Skype™ to gamemann
    gamemann
    Veteran Member
    Join Date: Sep 2009
    Location: Mullica Hill, New Jersey
    Old 09-17-2011 , 18:45   Re: join to sourcemod group(!join to join a group automanicly)
    Reply With Quote #8

    Please give feedback
    And please report bugs...
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!
    gamemann is offline
    Send a message via Skype™ to gamemann
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 09-17-2011 , 20:22   Re: join to sourcemod group(!join to join a group automanicly)
    Reply With Quote #9

    Plugins shouldn't be modifying the admin configuration files.
    You should make your own file (a local sqlite DB would probably be best) and use the admin API to add them.
    __________________
    asherkin is offline
    gamemann
    Veteran Member
    Join Date: Sep 2009
    Location: Mullica Hill, New Jersey
    Old 09-17-2011 , 23:08   Re: join to sourcemod group(!join to join a group automanicly)
    Reply With Quote #10

    Quote:
    Originally Posted by asherkin View Post
    Plugins shouldn't be modifying the admin configuration files.
    You should make your own file (a local sqlite DB would probably be best) and use the admin API to add them.
    i cant do that
    oh... Well i am not good with mysql
    __________________
    Software/network engineer. I often work on a neat project called The Modding Community.

    Check out my GitHub here!

    Last edited by gamemann; 09-18-2011 at 16:28. Reason: spelling error
    gamemann is offline
    Send a message via Skype™ to gamemann
    Reply



    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 22:32.


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