Raised This Month: $ Target: $400
 0% 

I have one problem here!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sibox
Member
Join Date: Apr 2009
Location: Bulgaria
Old 01-02-2011 , 13:55   I have one problem here!
Reply With Quote #1

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); }
sibox is offline
Send a message via Skype™ to sibox
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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