This is a plugin i mainly made for my server, it used to only work through RCON. But a few people kept bugging me to release it. So i figured i would. I doubt it'll get approved as...it's not really designed for release.
[edit]Woot, it got approved o.O anyone got any suggestions?[/edit]
It was originally designed to only communicate with my IRC bot that sits on RCON and my IRC bot would authenticate the inputs and stuff, But none the less here it is for anyone that wants to use it
In order to access the mute commands you must have the kick flag, for the bans you must have the ban flag.
The Ban/MuteRef is the UnixTime of when you muted the player, so you can look it up in your logs if you keep any.
Commands:
You MUST use quotes, Overwise the plugin will bug out, and thats no good.
/csr_ban "TIME STEAMID REASON"
/csr_unban "STEAMID"
/csr_mute "TIME STEAMID REASON"
/csr_unmute "STEAMID"
You can also use any of the above commands from RCON, just without the /
Time is the number of minutes you want the person to be muted for.
SteamID is the persons steam_id. I opted against using names as i always used to get muddled with stupid clan tags, and unicode names. Stupid people :@
Reason is a reason why the person was banned or muted, like "Being a lamer"
Examples:
/csr_ban "10 STEAM_0:123456 You are lame!"
/csr_unban "STEAM_0:123456"
/csr_mute "10 STEAM_0:123456 I hate you!"
/csr_unmute "STEAM_0:123456"
Installation:
First you must make a MySQL Database with a table called banmutes The table must have 7 colums, exactly as follows.
"id" varchar(25)
"bantime" int(4)
"banref" int(4)
"banreason" varchar(1024)
"mutetime" int(4)
"muteref" int(4)
"mutereason" varchar(1024)
When you have created this table, you must open sourcemod/configs/databases.cfg and make a new entry called CShadowRunBanMutes with all your SQL connection information.
Next copy CShadowRunBanMutes.smx to your plugin folder, and your all done
Hope this helps some people, have fun