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)