Raised This Month: $ Target: $400
 0% 

client_cmd not working :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leela
Junior Member
Join Date: Jun 2005
Old 06-26-2005 , 05:57   client_cmd not working :(
Reply With Quote #1

Hi,
For some reason I'm unable to get client_cmd's working in my mod. I cut it down to this bare minimum as a test, but again no client_cmds seem to fire, I've also tried console_print and that doesn't work either. server_print() fires ok so I know the mod is working and firing. Any ideas?

Code:
#include <amxmodx> public plugin_init() {     register_plugin("test","0.1","Leela") } public client_putinserver(id) {     client_cmd(id,"echo this is a test")     return PLUGIN_CONTINUE }
Leela is offline
Tyler_durden (gsr)
Junior Member
Join Date: Apr 2005
Old 06-26-2005 , 07:01  
Reply With Quote #2

maybe you should try registering it
Code:
#include <amxmodx> public plugin_init()         {       register_plugin("test","0.1","Leela")               register_clcmd( "clientcommand","client_command") } public client_command(id, level, cid)  {     client_cmd(id,"echo this is a test")     return PLUGIN_CONTINUE }
__________________
IM on xooit.xooit.com
Tyler_durden (gsr) is offline
Send a message via MSN to Tyler_durden (gsr)
Leela
Junior Member
Join Date: Jun 2005
Old 06-26-2005 , 08:10  
Reply With Quote #3

Thanks, but still the same result Other plugins work fine (even without registering it) so I'm a bit puzzled by this not working.
Leela is offline
Basic-Master
Veteran Member
Join Date: Apr 2005
Location: hello pm
Old 06-26-2005 , 09:03  
Reply With Quote #4

this should work:
Code:
#include <amxmodx> public plugin_init() {    register_plugin("test","0.1","Leela") } public client_putinserver(id) {    client_cmd(id,"echo this is a test") }
Basic-Master is offline
Send a message via ICQ to Basic-Master Send a message via MSN to Basic-Master
Leela
Junior Member
Join Date: Jun 2005
Old 06-26-2005 , 12:43  
Reply With Quote #5

I copied and pasted that, compiled it with amxxsc and put it in the plugins dir. Added test.amxx to plugins.ini and restarted the server. Still nothing in the client console.
I tried it on a different hlds and still have the same problem
Leela is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-26-2005 , 14:35  
Reply With Quote #6

amxxsc? try run the compiler.exe or w/e it called.
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
DahVid
Senior Member
Join Date: Jun 2005
Old 06-26-2005 , 14:52  
Reply With Quote #7

Quote:
Originally Posted by WaZZeR++
amxxsc? try run the compiler.exe or w/e it called.
compiler.exe runs amxxsc.
DahVid is offline
mobytoss
Senior Member
Join Date: Jun 2004
Location: On my TS server
Old 06-26-2005 , 17:22  
Reply With Quote #8

Why are you echoing? Ya wont be able to tell when other people see it or not, since it's a client thing :S Make 'em say it or change their name to it or something:

Code:
#include <amxmodx> public plugin_init() {    register_plugin("test","0.1","Leela") } public client_putinserver(id) {    client_cmd(id, "say I R VICTORY!11;name win") }

Also, this function might need a return, but hey, i'm not sure
__________________
"As we know, There are known knowns. There are things we know we know. We also know There are known unknowns. That is to say We know there are some things We do not know. But there are also unknown unknowns, The ones we don't know We don't know."
mobytoss is offline
Leela
Junior Member
Join Date: Jun 2005
Old 06-26-2005 , 17:44  
Reply With Quote #9

I've tried this as well, and also put returns in, no client_cmd seems to fire on the client, nor is there any indication (in the case of a client performing a say) on the server console
Leela is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 06-27-2005 , 04:24  
Reply With Quote #10

You can't use ";" for client_cmd, as it stops the line.
Try using engclient_cmd budy
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
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 00:27.


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