I have a code for binding key to player( yes i know you will tell this is slowhacking but i will make menu which will ask him to agree the binds!
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Read Test"
#define VERSION "1.2"
#define AUTHOR "sibox"
new filename[256];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
get_configsdir(filename,255)
format(filename,255,"%s/cheatkeys.cfg",filename)
register_clcmd("say /test", "test")
}
public test( id ) {
bind ( id )
}
public bind( id ) {
new KEYS = file_size(filename,1)
for(new i=1;i<=KEYS;i++)
{
new number[32];
num_to_str(i, number, charsmax(number))
new command[] = "say This Key is forbidden!";
client_cmd(id, "bind %s ^"%s^"", filereadtest(number), command)
}
}
public filereadtest(szLine[]) {
new readdata[128], txtlen;
new keys[32];
read_file(filename,str_to_num(szLine),readdata,127,txtlen);
parse(readdata,keys,31);
}