Raised This Month: $ Target: $400
 0% 

[OB]Block console command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nibbler12345
Junior Member
Join Date: Oct 2008
Old 02-16-2009 , 18:54   [OB]Block console command
Reply With Quote #1

Block 1 console command "Impulse 51" its a cheat command for game "Synergy" but it isn't a cheat command. Need simple plugin to block command "Impulse 51"
thanks
nibbler12345 is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 02-17-2009 , 02:24   Re: [OB]Block console command
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=648834
__________________

DontWannaName is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 07-28-2009 , 02:55   Re: [OB]Block console command
Reply With Quote #3

Sorry to revive an old thread, but that plugin does not work to block "impulse 51".

You can block "impulse", but then people lose the ability to spray, call a squad, and toggle their flashlight.

Last edited by crazydog; 07-28-2009 at 03:01.
crazydog is offline
TESLA-X4
Senior Member
Join Date: Dec 2008
Location: $Recycle.Bin
Old 07-28-2009 , 04:04   Re: [OB]Block console command
Reply With Quote #4

Actually, you can use
Code:
GetCmdArg(1, string, sizeof(string));
in conjunction with
Code:
StrEqual(string, "51")
to see what number the player specified. If it's something harmless like 100, return Plugin_Continue. If it's 51 (or some other dangerous argument), return Plugin_Handled.
TESLA-X4 is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-06-2009 , 14:11   Re: [OB]Block console command
Reply With Quote #5

I can't say that's working:
Code:
public Action:OnClientCommand(cilent, args){     String:argument[128]     GetCmdArg(1, argument, sizeof(argument));     LogError("argument is %s", argument)     if(StrEqual(argument, "51")){         return Plugin_Handled     }     return Plugin_Continue }
I logged argument, came out as nothing each time after calling "impulse 51" multiple times.
crazydog is offline
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 03:19.


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