/* This plugin was made by: Sharpsniper on October 10, 2001, 9:39 P.M * This Plugin is for changing sv_maxrate and sv_minrate and * sv_sendvelocity(1=lower lag) * Usage: admin_maxrate <rate> * Usage: admin_minrate <rate> * Usage: admin_sendvelocity <1|0> */ #include <core> #include <console> #include <string> #include <admin> #include <adminlib> new STRING_VERSION[MAX_DATA_LENGTH] = "2.50.0"; public admin_maxrate(HLCommand,HLData,HLUserName,UserIndex) { new Command[MAX_COMMAND_LENGTH]; new Data[MAX_DATA_LENGTH]; new User[MAX_NAME_LENGTH]; convert_string(HLCommand,Command,MAX_COMMAND_LENGTH); convert_string(HLData,Data,MAX_DATA_LENGTH); convert_string(HLUserName,User,MAX_NAME_LENGTH); execute_command(User,Command,"sv_maxrate",Data); return PLUGIN_HANDLED; } public admin_minrate(HLCommand,HLData,HLUserName,UserIndex) { new Command[MAX_COMMAND_LENGTH]; new Data[MAX_DATA_LENGTH]; new User[MAX_NAME_LENGTH]; convert_string(HLCommand,Command,MAX_COMMAND_LENGTH); convert_string(HLData,Data,MAX_DATA_LENGTH); convert_string(HLUserName,User,MAX_NAME_LENGTH); execute_command(User,Command,"sv_minrate",Data); return PLUGIN_HANDLED; } public admin_sendvelocity(HLCommand,HLData,HLUserName,UserIndex) { new Command[MAX_COMMAND_LENGTH]; new Data[MAX_DATA_LENGTH]; new User[MAX_NAME_LENGTH]; convert_string(HLCommand,Command,MAX_COMMAND_LENGTH); convert_string(HLData,Data,MAX_DATA_LENGTH); convert_string(HLUserName,User,MAX_NAME_LENGTH); execute_command(User,Command,"sv_sendvelocity",Data); return PLUGIN_HANDLED; } public plugin_init() { plugin_registerinfo("plugin_setrates","Changes the sv_maxrate and sv_minrate",STRING_VERSION); plugin_registercmd("admin_maxrate","admin_maxrate",ACCESS_KICK,"admin_maxrate : Edits sv_maxrate throu admin_ form"); plugin_registercmd("admin_minrate","admin_minrate",ACCESS_KICK,"admin_minrate : Edits sv_minrate throu admin_ form"); plugin_registercmd("admin_sendvelocity","admin_sendvelocity",ACCESS_KICK,"admin_sendvelocity : Turn on sendvelocity ot Off"); return PLUGIN_CONTINUE; }