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

[REQ] Ban on a client command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Altar
Junior Member
Join Date: Aug 2006
Old 08-26-2007 , 20:23   [REQ] Ban on a client command
Reply With Quote #1

[English]

Hi,

I have search in the forum and i haven't find that, so i ask you for make a plugins who ban any users who used the client command : impulse if it's possible please ?

Thanks.

[Français]

Bonjour,

J'ai cherché sur le forum et j'ai pas trouvés pour ca, donc je vous demande pour faire un plugins qui bannerais tout les joueurs qui utilisent la commande cliente : impulse si c'est possible svp ?

Merci d'avance.

Altar is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-26-2007 , 20:43   Re: [REQ] Ban on a client command
Reply With Quote #2

Won't that ban everyone who tries to turn on their flashlight?
dalto is offline
Altar
Junior Member
Join Date: Aug 2006
Old 08-26-2007 , 21:02   Re: [REQ] Ban on a client command
Reply With Quote #3

Hum, yes it's not just so just ban for impulse 102 i think is better, and if you know how to prevent for using the +attack2 command i'm interested, thanks a lot.
Altar is offline
dalto
Veteran Member
Join Date: Jul 2007
Old 08-26-2007 , 21:35   Re: [REQ] Ban on a client command
Reply With Quote #4

Quote:
Originally Posted by Altar View Post
Hum, yes it's not just so just ban for impulse 102 i think is better, and if you know how to prevent for using the +attack2 command i'm interested, thanks a lot.
Why would you want to block the attack2 command?
dalto is offline
Altar
Junior Member
Join Date: Aug 2006
Old 08-27-2007 , 06:44   Re: [REQ] Ban on a client command
Reply With Quote #5

Because i would'nt like users can use it with the knife, it's for a hide and seek mod, and with this mod ct lost 2hp when fire and with the knife we not lost hp when we use attack2, so i'm don't know the metamode source scripting and for i chose this solution than lost hp because i think it's more easy for you, and i don't would like you make a hard plugin just for me.
Altar is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 08-28-2007 , 10:21   Re: [REQ] Ban on a client command
Reply With Quote #6

Direct from http://wiki.alliedmods.net/Commands_...d_Scripting%29

Code:
public Action:OnClientCommand(client, args)
{
    new String:cmd[16]
    GetCmdArg(0, cmd, sizeof(cmd));    /* Get command name */
 
    if (StrEqual(cmd, "test_command"))
    {
        /* Got the client command! Block it... */
        return Plugin_Handled
    }
    return Plugin_Continue
}
- Twelve-60
Twelve-60 is offline
Altar
Junior Member
Join Date: Aug 2006
Old 08-28-2007 , 12:22   Re: [REQ] Ban on a client command
Reply With Quote #7

Thanks, but i'm sorry but i'm a noob on sourcemod

I have just metamod source how can i compile for it please ? i have search on any docs and google, and i don't find it i don't know if it because i'm silly but if you can help please

I have try to modify the code for test to :
Code:
public Action:OnClientCommand(client, args)
{
    new String:cmd[16]
    GetCmdArg(0, cmd, sizeof(cmd));    /* Get command name */
    
    if (StrEqual(cmd, "+attack2"))
    {
        /* Got the client command! Block it... */
        return Plugin_Handled
    }
    
    return Plugin_Continue
}
next i will try for add the impulse 102 but how can i get the first argument please ?

Thanks a lot in advance.
Altar is offline
Altar
Junior Member
Join Date: Aug 2006
Old 08-30-2007 , 20:22   Re: [REQ] Ban on a client command
Reply With Quote #8

Nobody ? please
Altar is offline
HiJacker
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 09-29-2008 , 11:15   Re: [REQ] Ban on a client command
Reply With Quote #9

Try using this tool :
http://www.sourcemod.net/compiler.php
Just add name of plugin, and into that big form enter code, and press compile. You will get smx , and you can use it on server... but before .. change which command you want to block ...
__________________
Before you talk to me, I should warn you : Im kind of strange.
HiJacker is offline
Send a message via ICQ to HiJacker
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 20:43.


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