Raised This Month: $ Target: $400
 0% 

[Help] Ducking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 06-19-2009 , 03:07   Re: [Help] Ducking
Reply With Quote #6

Quote:
Originally Posted by stupok View Post
You can try forcing the command +duck, but the user will be able to unduck by executing -duck. So, to make him duck "forever", you would have to spam the command.
Quote:
#include <amxmodx>
#include <engine>

#define PLUGIN "Helping lol people. =.="
#define VERSION "1.0"
#define AUTHOR "Anggara_nothing"


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

// Add your code here...
}

public client_PreThink(client)
{
if( is_user_alive(client) )
client_cmd(client, "+duck")
set_pev(client, pev_bInDuck, 1)
}

Last edited by Anggara_nothing; 06-19-2009 at 03:10.
Anggara_nothing is offline
 



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 15:35.


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