AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   register_clcmd? (https://forums.alliedmods.net/showthread.php?t=121398)

Ashcan 03-15-2010 08:56

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

ofc
register_clcmd("+use", "function")
not working.
help :)

One 03-15-2010 09:05

Re: register_clcmd?
 
http://forums.alliedmods.net/search....archid=5372736

Ashcan 03-15-2010 09:08

Re: register_clcmd?
 
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 ?

Exolent[jNr] 03-15-2010 09:09

Re: register_clcmd?
 
Look for yourself.

Ashcan 03-15-2010 09:24

Re: register_clcmd?
 
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...

One 03-15-2010 09:26

Re: register_clcmd?
 
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

Ashcan 03-15-2010 09:41

Re: register_clcmd?
 
sorry but u are helpless...

how can i block that command more than once every 10 seconds ?

lkh1018 03-15-2010 10:29

Re: register_clcmd?
 
Quote:

Originally Posted by Ashcan (Post 1117991)
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?

Ashcan 03-15-2010 10:43

Re: register_clcmd?
 
yep

One 03-15-2010 11:06

Re: register_clcmd?
 
Quote:

Originally Posted by Ashcan (Post 1117991)
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
:arrow:
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
}



All times are GMT -4. The time now is 08:39.

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