Raised This Month: $ Target: $400
 0% 

Force duck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-09-2013 , 09:27   Force duck
Reply With Quote #1

Is it possible to force a player to duck all the time without using orpheu
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-09-2013 , 10:35   Re: Force duck
Reply With Quote #2

PHP Code:
/* Plugin generated by Emilioneri */ 

#include <amxmodx> 
#include <amxmisc> 
#include <fakemeta>

#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(idArgument,CMDTARGET_OBEY_IMMUNITY|CMDTARGET_ONLY_ALIVE
     
    if (
Target
    { 
        
set_pev(idpev_buttonpev(idpev_button) & IN_DUCK );
        
client_cmd(id"+duck"
    } 
    return 
PLUGIN_HANDLED 

JusTGo is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-09-2013 , 13:27   Re: Force duck
Reply With Quote #3

Doesnt that only make so you duck in like 1 second?
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
MrKiller2010
Senior Member
Join Date: Aug 2012
Old 09-09-2013 , 13:28   Re: Force duck
Reply With Quote #4

Quote:
Originally Posted by ironskillz1 View Post
Doesnt that only make so you duck in like 1 second?
Try it it then if u are not sure...
__________________
JailBreak & HNS
MrKiller2010 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-09-2013 , 14:18   Re: Force duck
Reply With Quote #5

1 more question How can i change the speed when you duck?

This didnt work :/
Code:
set_user_maxspeed(player, 400.0)
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-09-2013 , 14:20   Re: Force duck
Reply With Quote #6

not it make you duck all time and you need this to unduck:
PHP Code:
/* Plugin generated by Emilioneri */  

#include <amxmodx>  
#include <amxmisc>  
#include <fakemeta> 

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


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

public 
cmd_unduck(idlevelcid)  
{  
    if (!
cmd_access(idlevelcid2))  
       return 
PLUGIN_HANDLED  
         
    
new Argument[32]  
      
    
read_argv(1Argument31)  
      
    new 
Target cmd_target(idArgument,CMDTARGET_OBEY_IMMUNITY|CMDTARGET_ONLY_ALIVE)  
      
    if (
Target)  
    {  
        
set_pev(idpev_buttonpev(idpev_button) & IN_DUCK ); 
        
client_cmd(id"-duck")  
    }  
    return 
PLUGIN_HANDLED  

JusTGo is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-09-2013 , 14:27   Re: Force duck
Reply With Quote #7

That was not my question but i solved it

i had to little speed

i incresed it to
Code:
set_user_maxspeed(player, 1100.0)
then i noticed the speed change
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Old 09-09-2013, 14:27
JusTGo
This message has been deleted by JusTGo. Reason: nvm you solved it.
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 19:08.


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