Raised This Month: $ Target: $400
 0% 

Messages don't print in the console


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
stream
Junior Member
Join Date: Nov 2011
Location: Poland
Old 11-26-2011 , 15:39   Messages don't print in the console
#1

Hello!
Why are messages write by the plugin aren't printed in the console?
Code:
#include <amxmodx>
#define PLUGIN "Wymuszanie ustawien sieciowych"
#define VERSION "1.0"
#define AUTHOR "stream"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_authorized(id)
{
client_cmd(id, "rate 25000")
client_cmd(id, "cl_updaterate 101")
client_cmd(id, "cl_cmdrate 101")
client_cmd(id, "cl_cmdbackup 2")

client_print(id, print_console, "----------------------------------------------------------------------------------")
client_print(id, print_console, "Zmieniono wartosci: rate 25000, cl_updaterate 101, cl_cmdrate 101, cl_cmdbackup 2!")
client_print(id, print_console, "----------------------------------------------------------------------------------")
}
Sorry for my very bad English language

edit:
Code:
client_cmd(id, "echo ----------------------------------------------------------------------------------")
client_cmd(id, "echo Zmieniono wartosci: rate 25000, cl_updaterate 101, cl_cmdrate 101, cl_cmdbackup 2!")
client_cmd(id, "echo ----------------------------------------------------------------------------------")
It's works, but why the first version doesn't work?

Last edited by stream; 11-26-2011 at 15:49.
stream is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-26-2011 , 16:31   Re: Messages don't print in the console
#2

Changing client settings is not allowed here. Also, you don't need to set rates for players as you can do that in server.cfg with sv_minupdaterate/sv_maxupdaterate and sv_minrate/sv_maxrate.
__________________
fysiks is offline
stream
Junior Member
Join Date: Nov 2011
Location: Poland
Old 11-26-2011 , 17:08   Re: Messages don't print in the console
#3

A lot of servers, practicing force rate and I want to know why the first version doesn't print messages in console.
stream is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-26-2011 , 17:18   Re: Messages don't print in the console
#4

If you have a Slowhack-Code in your plugin, it won't work.

Simple.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 11-26-2011 , 17:32   Re: Messages don't print in the console
#5

client_print only works after clients are putinserver
client_authorized is in client_connect
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
stream
Junior Member
Join Date: Nov 2011
Location: Poland
Old 11-27-2011 , 17:50   Re: Messages don't print in the console
#6

Guys, how to control the rate players using client_infochanged? Player changes the rate to 20000 (25000 is enforced), client_infochanged detects this and changes to 25000 again.

Please give an example.

Thanks and sorry for my very bad English language .

Last edited by stream; 11-27-2011 at 17:52.
stream is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 11-28-2011 , 00:54   Re: Messages don't print in the console
#7

You shouldn't and you don't need to, just use server cvars:
sv_maxrate
sv_minrate
mp_maxupdaterate
mp_minupdaterate
__________________

Last edited by Hunter-Digital; 11-28-2011 at 00:54.
Hunter-Digital is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-28-2011 , 01:20   Re: Messages don't print in the console
#8

jim_yang gave your answer about print problem.

Your other problem is about slowhacking problem and it is not allowed there, locked.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-28-2011 at 01:20.
ConnorMcLeod is offline
Closed Thread



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 08:31.


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