Raised This Month: $12 Target: $400
 3% 

Help about using ";" in register_clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 01-23-2006 , 04:12   Help about using ";" in register_clcmd
Reply With Quote #1

How can I capture a ";" in register_clcmd ( yeah, anti-script stuff... ).

For example :

Code:
register_clcmd("jump;buy","Block")

As you all know, ";" in C++ marks ending of line.

But how in the world in Small you can do something like I want?

Thanks.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 01-23-2006 , 06:55  
Reply With Quote #2

I don't think you can. That would all be filtered out client-side before the server gets it. you could however use the forward client_command() and check the intervals between commands and see if it is less than 1 second.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-23-2006 , 10:26  
Reply With Quote #3

@LynX:
Change the subject of your thread to be more descriptive or else this thread may be trashed.
Brad is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-23-2006 , 12:00  
Reply With Quote #4

A. The lanugga ie PAWN.
B. You can't do it like that; the client splits commands on ";" delimiters.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
LynX
Veteran Member
Join Date: Oct 2004
Old 01-23-2006 , 16:38  
Reply With Quote #5

So I must check if two buttons are pressed in interval less then 0.5 seconds, or player is scripting?
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-23-2006 , 18:03  
Reply With Quote #6

I don't think it's possible to catch it.

You can try using client_command and then reading it, but I don't think you can.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
LynX
Veteran Member
Join Date: Oct 2004
Old 01-27-2006 , 19:17  
Reply With Quote #7

Does anybody have idea ?

I did this in PreThink :

Code:
    if(get_user_button(id) & IN_FORWARD )     {         if ( scriptCheck[id] !=0 && get_user_button(id) & IN_FORWARD )         {             client_cmd(id, "-forward")             client_cmd(id, "-moveleft")             client_cmd(id, "-moveright")             client_cmd(id, "-backward")             client_cmd(id, "-duck")             client_cmd(id, "-jump")         }         else         {             scriptCheck[id] = 1             set_task(0.1,"releaseCheck",id)         }     }
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-27-2006 , 21:20  
Reply With Quote #8

What are you trying to do..?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 01-28-2006 , 04:13  
Reply With Quote #9

It's seems like he trying to make player immobile.
While it wouldn't work good enough since client_cmd commands executes on client side so it ping-dependent.
VEN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-28-2006 , 21:37  
Reply With Quote #10

You could always do entity_set_int(id,EV_INT_button,0)

or something.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 10:35.


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