AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [OB]Block console command (https://forums.alliedmods.net/showthread.php?t=85829)

nibbler12345 02-16-2009 18:54

[OB]Block console command
 
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

DontWannaName 02-17-2009 02:24

Re: [OB]Block console command
 
http://forums.alliedmods.net/showthread.php?p=648834

crazydog 07-28-2009 02:55

Re: [OB]Block console command
 
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.

TESLA-X4 07-28-2009 04:04

Re: [OB]Block console command
 
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.

crazydog 08-06-2009 14:11

Re: [OB]Block console command
 
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.


All times are GMT -4. The time now is 03:19.

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