Raised This Month: $ Target: $400
 0% 

About get_usercmd !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
griefhy
Member
Join Date: Jul 2006
Old 10-30-2007 , 12:35   About get_usercmd !
Reply With Quote #1

How use ? Can illustrate with example?
help me ,thanks !
griefhy is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 10-30-2007 , 13:26   Re: About get_usercmd !
Reply With Quote #2

What are you trying to do? If you explain I might be able to help better. Considering, ive never had to use "get_usercmd" and never seen anyone use it.

Soo with that said, please explain what your trying to do.
Styles is offline
Send a message via AIM to Styles
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 10-30-2007 , 16:32   Re: About get_usercmd !
Reply With Quote #3

get_usercmd - Gets parameters sent from CmdStart.
http://www.amxmodx.org/funcwiki.php?go=func&id=377
i think it means -nomaster or other in the target...
__________________


I hate Spammers....
vl@d is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-31-2007 , 10:09   Re: About get_usercmd !
Reply With Quote #4

Quote:
Originally Posted by vl@d View Post
get_usercmd - Gets parameters sent from CmdStart.
http://www.amxmodx.org/funcwiki.php?go=func&id=377
i think it means -nomaster or other in the target...
No, lol! :/...look at CmdStart from fakemeta...you can hook, buttons...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
griefhy
Member
Join Date: Jul 2006
Old 10-31-2007 , 02:34   Re: About get_usercmd !
Reply With Quote #5

I want forfend "cmd dlfile" when player input "cmd dlfile" in console,if true,disconnect,but i don't know how to use the function,thanks!
griefhy is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-31-2007 , 04:36   Re: About get_usercmd !
Reply With Quote #6

Code:
public plugin_init()    register_clcmd( "cmd dlfile", "dc_user" ); public dc_user(id)    client_cmd( id, "disconnect" );
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
griefhy
Member
Join Date: Jul 2006
Old 10-31-2007 , 06:10   Re: About get_usercmd !
Reply With Quote #7

thanks ,You very humor!
griefhy is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 10-31-2007 , 11:04   Re: About get_usercmd !
Reply With Quote #8

You cannot hook "cmd" command. It's handled client-side.
_Master_ is offline
griefhy
Member
Join Date: Jul 2006
Old 11-01-2007 , 07:30   Re: About get_usercmd !
Reply With Quote #9

thanks #8 !
Now,in the CS1.5 ,if playing de_dust2,but player input
"cmd dlfile de_inferno.bsp" or other largeness map,server is over !
griefhy is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 11-01-2007 , 09:32   Re: About get_usercmd !
Reply With Quote #10

Just to be on the safe side...
"cmd" is issued by a client but is sent to the server. If on a listening server the command arguments became the command that the player who runs the server would execute. On dedicated servers this does not happen because the server is not identified with a player. ( see "cmd name <new_name>" issue somewhere on these forums ).

Amxx has nothing to do with this issue nor can it modify its functionality. It's an engine limitation / bug.
_Master_ is offline
Reply


Thread Tools
Display Modes

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 01:19.


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