hier. idee von cavey, verbesserung von mir
Code:
/*
* Caveys test plugin
*/
#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>
#include <plugin>
new STRING_VERSION[MAX_DATA_LENGTH] = "2.50.50";
public plugin_command(HLCommand,HLData,HLUserName,UserIndex) {
new Command[MAX_TEXT_LENGTH];
new UserName[MAX_NAME_LENGTH];
new Data[MAX_DATA_LENGTH];
new Access;
convert_string(HLData,Data,MAX_DATA_LENGTH);
if(Data[0] == '^"'){
convert_string(HLCommand,Command,MAX_TEXT_LENGTH);
if(plugin_checkcommand(Command,Access) > 0) {
convert_string(HLUserName,UserName,MAX_DATA_LENGTH);
if(access(Access,UserName) != 0) {
strstripquotes(Data);
plugin_exec(Command,Data);
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_CONTINUE;
}
public plugin_init() {
plugin_registerinfo("Cavey's Messagemode Fix","A quick and dirty fix for ^"'s in messagemode by Caveman.",STRING_VERSION);
return PLUGIN_CONTINUE;
}
muss GANZ oben in der plugin.ini stehen. das sollte alle probleme mit messagemode commands fixen