Raised This Month: $ Target: $400
 0% 

How do you force people to duck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 05-14-2009 , 11:36   Re: How do you force people to duck
Reply With Quote #1

PHP Code:
/* Plugin generated by Emilioneri */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Force Duck"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_concmd("amx_duck""cmd_duck"ADMIN_SLAY"< name | #userid >")
}

public 
cmd_duck(idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
       return 
PLUGIN_HANDLED
       
    
new Argument[32]
    
    
read_argv(1Argument31)
    
    new 
Target cmd_target(idArgumentCMDTARGET_OBEY_IMMUNITY)
    
    if (
Target)
    {
        
client_cmd(id"+duck")
    }
    return 
PLUGIN_HANDLED

if you want to disable jump on your server:

PHP Code:
/* Plugin generated by Emilioneri */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Disable Jump"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_clcmd("+jump""BlockJump")
}

public 
BlockJump(id)
{
    return 
PLUGIN_HANDLED

__________________

Last edited by Emilioneri; 05-14-2009 at 11:41.
Emilioneri is offline
Send a message via Skype™ to Emilioneri
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 01:30.


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