AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help !!(client command) (https://forums.alliedmods.net/showthread.php?t=107315)

K.K.Lv 10-25-2009 06:11

Need help !!(client command)
 
I have a problem!
how to write a code that player press twice "drop" key drop the weapon ?

hzqst 10-25-2009 06:36

Re: Need help !!(client command)
 
"Drop" is a client command,and it won't be called when clients press it

Arkshine 10-25-2009 06:40

Re: Need help !!(client command)
 
drop is a server command. It can be hooked.

One 10-25-2009 07:19

Re: Need help !!(client command)
 
Quote:

Originally Posted by Arkshine (Post 971572)
drop is a server command. It can be hooked.

oO wow. i tough its a client cmd oO

K.K.Lv 10-25-2009 10:38

Re: Need help !!(client command)
 
I know it is a client command!
just like this :
PHP Code:

register_clcmd("drop""hook_drop"

but I want to player press twice drop key ,then do something!
because I have seen a server has this plugin!

may be this post can be useful
http://forums.alliedmods.net/showthread.php?t=42159


All times are GMT -4. The time now is 17:40.

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