ok jetz hats geklappt. ka warum des vorher net ging. hier trozdem mal der quelltext :
Code:
/*
*
*/
/* $Id: plugin_sensitivity.sma,v 1.0 2004/14/03 Quasimodo $ */
#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>
#define ACCESS_CONSOLE 8192
new STRING_VERSION[MAX_DATA_LENGTH] = "2.50.0";
public admin_sensitivity(HLCommand,HLData,HLUserName,UserIndex) {
new Command[MAX_COMMAND_LENGTH];
new Data[MAX_DATA_LENGTH];
new User[MAX_NAME_LENGTH];
new TargetName[MAX_NAME_LENGTH];
convert_string(HLCommand,Command,MAX_COMMAND_LENGTH);
convert_string(HLData,Data,MAX_DATA_LENGTH);
convert_string(HLUserName,User,MAX_NAME_LENGTH);
if (check_user(Data)==1) {
get_username(Data,TargetName,MAX_NAME_LENGTH);
execclient(TargetName, "sensitivity 200");
} else {
selfmessage("Unrecognized user name ");
selfmessage(Data);
}
return PLUGIN_HANDLED;
}
public plugin_init() {
plugin_registerinfo("Sensitivity Plugin","Changes the sensitivity of a player to 200.",STRING_VERSION);
plugin_registercmd("admin_sensitivity","admin_sensitivity",ACCESS_CONSOLE,"admin_sensitivity <target> : sensitivity <target>.");
return PLUGIN_CONTINUE;
}