AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   GHW Connect Messages (https://forums.alliedmods.net/showthread.php?t=63507)

IneedHelp 11-24-2007 01:53

Re: GHW Connect Messages
 
NICE PLUGIN GHW ! Gj:)

nukey451 11-24-2007 16:59

Re: GHW Connect Messages
 
WoW :up: This Plugin must every Server have :)

Test it CounterStrike 1.6 ..... OWNED ! :P

Tramp 11-25-2007 06:50

Re: GHW Connect Messages
 
I found bug.

When cm_flags is set to "4"
Text isn't coloured.

dangerix 11-25-2007 06:59

Re: GHW Connect Messages
 
It's not a bug, your usage is wrong. The flags are additive. If you want to use SHOW_COLOR, SHOW_CONNECT and SHOW_DISCONNECT, it's cm_flags 7.

Tramp 11-26-2007 10:56

Re: GHW Connect Messages
 
Quote:

Originally Posted by dangerix (Post 556560)
It's not a bug, your usage is wrong. The flags are additive. If you want to use SHOW_COLOR, SHOW_CONNECT and SHOW_DISCONNECT, it's cm_flags 7.

So it should be written in instruction ?

GHW_Chronic 11-26-2007 10:58

Re: GHW Connect Messages
 
Quote:

Originally Posted by GHW_Chronic (Post 555912)
  • cm_flags - Flags for Customizing (Add the numbers up)
    • 1 - SHOW_COLOR (green)
    • 2 - SHOW_CONNECT
    • 4 - SHOW_DISCONNECT
    • 8 - PLAY_SOUND_CONNECT
    • 16 - PLAY_SOUND_DISCONNECT
    • Default: 31 (All)

it is

Simon Logic 11-26-2007 12:03

Re: GHW Connect Messages
 
I think SHOW_COLOR is redundant because you can freely put color codes (so, worth to make contants like %green, %red, %blue etc) into format string. But you need a new cvar which defines default color also.

PS. Is it properly to define cvars within plugin_precache() ?

PSS. LAN ip is 10.0.0.0/8 & 172.[16-31].0.0/16 also.

PSSS. Also you forgot to handle "127.0.0.1" ip (compare with "127." is enough) because when you're connecting to dedicated server from the same ip you get "127.0.0.1" ip instead of "loopback" (at least on win32 platform)

GHW_Chronic 11-26-2007 14:47

Re: GHW Connect Messages
 
Quote:

Originally Posted by Simon Logic (Post 557080)
PS. Is it properly to define cvars within plugin_precache() ?

if you don't register CVARs used in plugin_precache in plugin_precache they are not set yet (because plugin_precache is called before plugin_init). So thus one the first map the first time the plugin is loaded / every server reset (unless CVARs are defined in amxx.cfg) the sounds wouldn't work.

As for the rest I give you a nice: ¡maybe!

purple nurple 11-30-2007 18:09

Re: GHW Connect Messages
 
Could you make a option for it to tell how many times the player has been in the server? and maybe if there name has changed show there old name. just a suggestion but you could use nvault for counting the number of times a player has been in the server.

rumbeto 12-11-2007 18:03

Re: GHW Connect Messages
 
I think I'm stupid.
I put the following in server.cfg :
cm_connect_string "[AMXX] %name has connected (%ip)"
cm_disconnect_string "[AMXX] %name has disconnected (%ip)"
but it still shows the default ones.

Where am I wrong?
Thanks.


All times are GMT -4. The time now is 16:19.

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