Raised This Month: $ Target: $400
 0% 

register_clcmd?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ashcan
Senior Member
Join Date: May 2008
Old 03-15-2010 , 08:56   register_clcmd?
Reply With Quote #1

Hey
How to do register_clcmd or something like that to command "+use" ?

ofc
register_clcmd("+use", "function")
not working.
help
Ashcan is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-15-2010 , 09:05   Re: register_clcmd?
Reply With Quote #2

http://forums.alliedmods.net/search....archid=5372736
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Ashcan
Senior Member
Join Date: May 2008
Old 03-15-2010 , 09:08   Re: register_clcmd?
Reply With Quote #3

sorry but i dont understand that ?
which topic will be that one i need ?
can u just write me here what i should add to plugin to make it react on +use ?
Ashcan is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-15-2010 , 09:09   Re: register_clcmd?
Reply With Quote #4

Look for yourself.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Ashcan
Senior Member
Join Date: May 2008
Old 03-15-2010 , 09:24   Re: register_clcmd?
Reply With Quote #5

ok i made that but...
how to do that only 1 time for about 10 seconds, this command is executed ?

i have something that...

+use
and
client_cmd(id,"say asd")

and i want only one time that command will be executed and i should wait 10 seconds to execute that one more time...
Ashcan is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-15-2010 , 09:26   Re: register_clcmd?
Reply With Quote #6

search for l4d reload under approved plugins.
there you will find my plugin.change IN_RELOAD to IN_USE

IN_USE = +use !!!!!
IN_RELOAD = +reload
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Ashcan
Senior Member
Join Date: May 2008
Old 03-15-2010 , 09:41   Re: register_clcmd?
Reply With Quote #7

sorry but u are helpless...

how can i block that command more than once every 10 seconds ?
Ashcan is offline
lkh1018
Junior Member
Join Date: Aug 2007
Old 03-15-2010 , 10:29   Re: register_clcmd?
Reply With Quote #8

Quote:
Originally Posted by Ashcan View Post
sorry but u are helpless...

how can i block that command more than once every 10 seconds ?
you mean client can +use once only every 10second?
lkh1018 is offline
Ashcan
Senior Member
Join Date: May 2008
Old 03-15-2010 , 10:43   Re: register_clcmd?
Reply With Quote #9

yep
Ashcan is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-15-2010 , 11:06   Re: register_clcmd?
Reply With Quote #10

Quote:
Originally Posted by Ashcan View Post
sorry but u are helpless...

how can i block that command more than once every 10 seconds ?
sorry but you are BRAINless...

see my first post.

http://forums.alliedmods.net/search....archid=5372736

3. thread :
http://forums.alliedmods.net/showthr...ghlight=in_use
Block use

and how is it about to research for some words like :
countdown
set_task
block time
...

or how you ask i think you can code... how about :
Code:
new bool:player_used_use[33] = false



public FwdUseButton( iEnt, iClient )
{
    if( is_user_alive( iClient ) &&  player_used_use[iClient])
    {
        return HAM_SUPERCEDE;
    }
else
    player_used_use[iClient] = true

set_task(10.0,"reset_players_score",id)
    return HAM_IGNORED;
}  



public reset_players_score(id)
{
player_used_use[id] = false
}
__________________

Last edited by One; 03-15-2010 at 11:10.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 08:39.


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