AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_cmd over MSG_ONE_UNRELIABLE (https://forums.alliedmods.net/showthread.php?t=54421)

naeo 04-25-2007 01:56

client_cmd over MSG_ONE_UNRELIABLE
 
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..)

VEN 04-25-2007 04:15

Re: client_cmd over MSG_ONE_UNRELIABLE
 
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.

naeo 04-25-2007 19:24

Re: client_cmd over MSG_ONE_UNRELIABLE
 
Tried that. did'nt fit my needs.

Thanks anyway.


All times are GMT -4. The time now is 06:41.

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