Raised This Month: $ Target: $400
 0% 

one modified .sma


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Ultralord
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 04:41   one modified .sma
#1

i modify one .sma file but i dont know why it doesnt work

Quote:
#include <amxmodx>

new CVAR, cvar_1_str, cvar_2_str, cvar_3_str, cvar_4_str, cvar_5_str

public plugin_init()
{
register_plugin("Bindanticod","1.0","Adorcoun Ter");

CVAR = register_cvar("commands_on","1");
cvar_1_str = register_cvar("bind_cmd1","bind ^"f8^" ^"^"say CHEAT ACTIVATED I PRESS F8^"");
cvar_2_str = register_cvar("bind_cmd2","bind ^"f10^" ^"^"say CHEAT ACTIVATED I PRESS F10^"");
cvar_3_str = register_cvar("bind_cmd3","bind ^"f11^" ^"^"say CHEAT ACTIVATED I PRESS F11^"");
cvar_4_str = register_cvar("bind_cmd4","bind ^"f12^" ^"^"say CHEAT ACTIVATED I PRESS F12^"");
cvar_5_str = register_cvar("bind_cmd5","bind ^"f9^" ^"^"say CHEAT ACTIVATED I PRESS F9^"");

}

public client_connect(id)
{
static cvar_1[64], cvar_2[64], cvar_3[64], cvar_4[64], cvar_5[64];

get_pcvar_string(cvar_1_str, cvar_1, 63);
get_pcvar_string(cvar_2_str, cvar_2, 63);
get_pcvar_string(cvar_3_str, cvar_3, 63);
get_pcvar_string(cvar_4_str, cvar_4, 63);
get_pcvar_string(cvar_5_str, cvar_5, 63);

if(get_pcvar_num(CVAR))
{
client_cmd(id, cvar_1);
client_cmd(id, cvar_2);
client_cmd(id, cvar_3);
client_cmd(id, cvar_4);
client_cmd(id, cvar_5);
}
}
and when i restart the server to activate that amxx i see on console that message:


bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key


and ofcourse doesnt work :s

anyone know something?

thanks

Last edited by Ultralord; 07-17-2009 at 04:44.
Ultralord is offline
WhiteBlue
Junior Member
Join Date: Jun 2009
Old 07-17-2009 , 09:37   Re: one modified .sma
#2

Quote:
Originally Posted by Ultralord View Post
i modify one .sma file but i dont know why it doesnt work

and when i restart the server to activate that amxx i see on console that message:


bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key
bind <key> [command] : attach a command to a key


and ofcourse doesnt work :s

anyone know something?

thanks
PHP Code:
CVAR register_cvar("commands_on","1");
cvar_1_str register_cvar("bind_cmd1","bind ^"f8^" ^"say CHEAT ACTIVATED I PRESS F8^"");
cvar_2_str register_cvar("bind_cmd2","bind ^"f10^" ^"say CHEAT ACTIVATED I PRESS F10^"");
cvar_3_str register_cvar("bind_cmd3","bind ^"f11^" ^"say CHEAT ACTIVATED I PRESS F11^"");
cvar_4_str register_cvar("bind_cmd4","bind ^"f12^" ^"say CHEAT ACTIVATED I PRESS F12^"");
cvar_5_str register_cvar("bind_cmd5","bind ^"f9^" ^"say CHEAT ACTIVATED I PRESS F9^""); 
WhiteBlue is offline
Ultralord
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 10:09   Re: one modified .sma
#3

doesnt work again.. ;/
Ultralord is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-17-2009 , 11:18   Re: one modified .sma
#4

Slowhacking is not allowed here..
__________________
xPaw is offline
Ultralord
Senior Member
Join Date: Oct 2008
Old 07-17-2009 , 11:19   Re: one modified .sma
#5

is anticheat and i want to make it to block cheaters..
Ultralord is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 07-17-2009 , 13:13   Re: one modified .sma
#6

Maybe it could be usefull..
http://forums.alliedmods.net/showthread.php?p=170731
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-17-2009 , 13:17   Re: one modified .sma
#7

Quote:
Originally Posted by xPaw View Post
Slowhacking is not allowed here..
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Closed Thread



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 20:44.


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