Raised This Month: $ Target: $400
 0% 

client_cmd over MSG_ONE_UNRELIABLE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naeo
Member
Join Date: Apr 2006
Old 04-25-2007 , 01:56   client_cmd over MSG_ONE_UNRELIABLE
Reply With Quote #1

Well.. I need some help

My server keeps dropping people(svc_bad).
I know the reason is because of a client_cmd()...

So, After talking to BAIL and sawce on irc i learned that i could possibly make an alternative client_cmd() using the MSG_ONE_UNRELIABLE channel...

This is what i tried..:

Code:
format(buf,sizeof(buf)-1,"cl_updaterate %d;rate %d^n",RCF_DEAD_UPR,RCF_DEAD_RATE) message_begin(MSG_ONE_UNRELIABLE,9,{0,0,0},id) write_string(buf) message_end()

I was told to use SVC_STUFFTEXT (Wich is 9).. However.. It does not execute in the client console..

I really hope someone can help with this.. The svc_bad is driving me(and the players) crazy.

+karma for any useful advice :-)


edit:
If this is not possible in pawn, please tell me if it's possible to write a module to do it.. As i'm willing to create a module just for that(even though i never made on before..)

Last edited by naeo; 04-25-2007 at 01:58. Reason: i'm tired and forget things
naeo is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-25-2007 , 04:15   Re: client_cmd over MSG_ONE_UNRELIABLE
Reply With Quote #2

I don't think you can do that. There is no message that would allow to send/execute client commands. Furthermore cl_updaterate and rate is a client wrappers for UserInfo buffer keys/values so you can do set_user_info(id, "rate", "...") that will set rate value directly on server side.
VEN is offline
naeo
Member
Join Date: Apr 2006
Old 04-25-2007 , 19:24   Re: client_cmd over MSG_ONE_UNRELIABLE
Reply With Quote #3

Tried that. did'nt fit my needs.

Thanks anyway.
naeo is offline
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 06:41.


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