AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I have one problem here! (https://forums.alliedmods.net/showthread.php?t=146886)

sibox 01-02-2011 13:55

I have one problem here!
 
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!
But i can't make the bind function working look..
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); }


All times are GMT -4. The time now is 02:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.