PDA

View Full Version : DoD Join/Quit/Switch Messages +More (v2.0)


diamond-optic
07-10-2006, 11:42 PM
DoD Join/Quit/Switch Messages +More
- Version 2.0
- 03.13.2009
- diamond-optic

Information:

- Replaces join & quit messages, team switch msgs, and name change msgs
- Connection message can show the client's country
- Admins can set their own custom country name to display
- Can also hide bot & admin messages
- Bots & admins can also have their own new messages instead
- Set custom roundstart messages for each team

- ** Requires AMXX 1.75 or higher **
CVARs:

dod_jqs_msgs "1" //"0" = use defualt messages
//"1" = use new messages
//"2" = hide messages

dod_jqs_bots "2" //"0" = no difference between bots & normal clients
//"1" = bots use their own new messages
//"2" = hide bot messages

dod_jqs_admins "2" //"0" = no difference between admins & normal clients
//"1" = admins use their own new messages
//"2" = hide admin messages

dod_jqs_join "1" //"0" = defualt join message
//"1" = new join message
//"2" = hide join message

dod_jqs_join_geo "1" //"0" = no geoip country added to custom join msg
//"1" = add geoip country to custom join msg

dod_jqs_quit "1" //"0" = defualt quit message
//"1" = new quit message
//"2" = hide quit message

dod_jqs_teams "1" //"0" = defualt join team messages
//"1" = new join team messages
//"2" = hide join team messages

dod_jqs_spec "1" //"0" = defualt join spec message
//"1" = new join spec message
//"2" = hide join spec message

dod_jqs_name "1" //"0" = defualt name change message
//"1" = new name change message
//"2" = hide name change message

dod_jqs_start_allies "1" //"0" = defualt allies roundstart messages
//"1" = new allies roundstart messages
//"2" = hide allies roundstart messages

dod_jqs_start_brits "1" //"0" = defualt british roundstart messages
//"1" = new british roundstart messages
//"2" = hide british roundstart messages

dod_jqs_start_axis "1" //"0" = defualt axis roundstart messages
//"1" = new axis roundstart messages
//"2" = hide axis roundstart messages
Extra:

- Change the "#define JQS_ADMIN_LEVEL ADMIN_LEVEL_H" line
to change the level used by dod_jqs_admins

- Change the "#define JQS_COUNTRY_LEVEL ADMIN_BAN" line
to change the level used for admin custom countries

- Place the 'dod_joinquitswitch_msgs.txt' file in your
amxmodx/data/lang/ directory. This is the file you
need to edit to use your own messages...

- To hide the team switch death messages use the DoD Team Manager
and enable the 'soft kill' feature

- To use the custom country feature use the following method:
* setinfo custom_country "whatever you want here"
Change Log:

- 05.13.2006 Version 1.0
Initial Release

- 05.26.2006 Version 1.1
Fixed error where it was blocking all msgs
Renamed to DoD Join/Quit/Switch Messages
Added msgs for joining DoD Teams
Immunity to block joining spec msg for admins

- 05.27.2006 Version 1.2
Added CVARs to set each new msg

- 06.01.2006 Version 1.3
Added CVARs to turn on/off each new message

- 06.05.2006 Version 1.4
Added seperate control over bots
Reworked the whole admin/immunity stuff
Condensed allies/axis/british cvars into one 'teams' cvar
Expanded the message control (defualt/new/hide)
Moved all new messages into a language file (byebye on the fly editing)
Removed <engine> (no idea why it was included lol..)

- 06.11.2006 Version 1.4b
Fixed my stupidity of using amxx CVS includes...

- 06.16.2006 Version 1.5
Added new msgs/hiding of name changes

- 07.01.2006 Version 1.6
Fixed a few problems with msg blocks
Added msgs for roundstart text
Removed ENGINE module (requires amxx 1.75+)

- 08.14.2006 Version 1.7
Fixed mistake in language file
Fixed problem with name changes not showing up
Changed some return values

- 09.02.2006 Version 1.8
Changed LANG_SERVER to LANG_PLAYER

- 03.13.2009 Version 2.0
Added option to have connect msg include players country
Fixed some mistakes here and there
Made some variables statics
Code Improvements
Added custom country ability for admins
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.46

diamond-optic
08-15-2006, 01:32 AM
Version 1.7

Fixed mistake in language file (redownload it)
Fixed problem with name changes not showing up
Changed some return values

diamond-optic
09-17-2006, 10:39 PM
update to v1.8
- 09.02.2006 Version 1.8
Changed LANG_SERVER to LANG_PLAYER

johnnyskid
10-26-2006, 09:06 AM
Hey man,

I love this plugin!!!!!

Wilson [29th ID]
10-27-2006, 04:36 PM
Hah, I've been using this for months, and I just realised you made it diamond. gj.

{DwP} 325th ABN
10-15-2007, 09:54 PM
someone shed some light for me, the plugin works great but i cant get the admin level right. i want to change it to b so all my admin will have it. but its not working do i have to recompile after changing it or what am i missing. this is what is in my sma



#include <amxmodx>
#include <amxmisc>
#include <dodx>

//////////////////////////////////////////////////////////////////////////////////
#define JQS_ADMIN_LEVEL ADMIN_LEVEL_b //admin level used by dod_jqs_admins "b"
//////////////////////////////////////////////////////////////////////////////////

Tony Almeida
10-15-2007, 10:20 PM
I believe you have to recompile each sma after changing anything. I've made that mistake in the past.

{DwP} 325th ABN
10-15-2007, 10:52 PM
well i have recompiled and thats the problem when i do i come up with the error is why i need help. ive tryed just ADMIN_b to with errors again


Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/php4j7zPw.sma(230) : error 017: undefined symbol "ADMIN_LEVEL_b"
/home/groups/amxmodx/tmp3/php4j7zPw.sma(293) : error 017: undefined symbol "ADMIN_LEVEL_b"
/home/groups/amxmodx/tmp3/php4j7zPw.sma(303) : error 017: undefined symbol "ADMIN_LEVEL_b"
/home/groups/amxmodx/tmp3/php4j7zPw.sma(316) : error 017: undefined symbol "ADMIN_LEVEL_b"

diamond-optic
10-16-2007, 12:29 AM
constants are case sensitive!!

ADMIN_LEVEL_B

NOT: ADMIN_LEVEL_b

...and yes when you make changes to the source code you have to recompile it :)

*ps*

also you do realize that ADMIN_LEVEL_B is the "n" access flag.. not the "b" flag for reserved slots right?

{DwP} 325th ABN
10-16-2007, 02:02 AM
thanks diamond but still even when i use the u which everyone has it still compiles with error. what am i doing wrong



Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpkPQ6hK.sma(230) : error 017: undefined symbol "ADMIN_LEVEL_u"
/home/groups/amxmodx/tmp3/phpkPQ6hK.sma(293) : error 017: undefined symbol "ADMIN_LEVEL_u"
/home/groups/amxmodx/tmp3/phpkPQ6hK.sma(303) : error 017: undefined symbol "ADMIN_LEVEL_u"

Garion
10-16-2007, 08:21 PM
As Diamond said above. It's case sensitive. Plus ADMIN_LEVEL_U does not exist.

This should help you out below:(Taken from a post in one of the forums, I think Tatsu or Wilson posted it I could be wrong tho)


Access flags - description - AMXX program setting
a - immunity - ADMIN_IMMUNITY
b - reservation - ADMIN_RESERVATION
c - amx_kick - ADMIN_KICK
d - amx_ban and amx_unban - ADMIN_BAN
e - amx_slay and amx_slap - ADMIN_SLAY
f - amx_map - ADMIN_MAP
g - amx_cvar command - ADMIN_CVAR
h - amx_cfg command - ADMIN_CFG
i - amx_chat and other chat commands - ADMIN_CHAT
j - amx_vote and other vote commands - ADMIN_VOTE
k - access to sv_password cvar - ADMIN_PASSWORD
l - access to amx_rcon command and rcon_password cvar - ADMIN_RCON
m - custom level A - ADMIN_LEVEL_A
n - custom level B - ADMIN_LEVEL_B
o - custom level C - ADMIN_LEVEL_C
p - custom level D - ADMIN_LEVEL_D
q - custom level E - ADMIN_LEVEL_E
r - custom level F - ADMIN_LEVEL_F
s - custom level G - ADMIN_LEVEL_G
t - custom level H - ADMIN_LEVEL_H
u - menu access - ADMIN_MENU
y - NOT LISTED IN users.ini - ADMIN_ADMIN
z - user (no admin) - ADMIN_USER

{DwP} 325th ABN
10-16-2007, 10:55 PM
well what a bisket head i am now i see the light must have been to many coors. thanks for hanging in there with a knucklehead.

i guess this threw me off LEVEL_H
instead of MENU oh well tis why we have these wonderful forums

Dr.G
02-21-2009, 03:35 PM
shouldnt line 206 be:
else if(equali(value, "#game_roundstart_axis1") || equali(value, "#game_roundstart_axis2"))

and not

else if(equali(value, "#game_roundstart_axis1") || equali(value, "#game_roundstart_allie2"))


??

diamond-optic
02-21-2009, 06:42 PM
yeah... i fixed it a long time ago, but of course i never posted the latest version hahaha

Dr.G
02-21-2009, 06:51 PM
hahaha ok :D i only saw it cuz i was blocking those messages myself, and i was actully done logging them all and everything was like it should be. then it crossed my mind FUCK d-o already made this, so i went thru the code and saw it :D pretty funny no one ever complained about it cuz it would do a double print on a round start i belive lol

diamond-optic
03-13-2009, 08:02 PM
...this plugin has become a bit sloppy and somewhat of a mess.. and im pretty sure theres some things that could be done better in it as well as a few things i dont think i documented in the change log and description etc...

but i just wanna get it posted and not worry about it anymore lol



update to v2.0

- 03.13.2009 Version 2.0
Added option to have connect msg include players country
Fixed some mistakes here and there
Made some variables statics
Code Improvements
Added custom country ability for admins

MOSdod
03-07-2010, 09:43 AM
I got it working.
BUT it says this ML_NOTFOUND: START_AXIS2_MSG

what seems to be the problem?

Vet
03-07-2010, 10:44 AM
It means you don't have the dictionary file (dod_joinquitswitch_msgs.txt) properly installed.

MOSdod
03-08-2010, 12:47 PM
It means you don't have the dictionary file (dod_joinquitswitch_msgs.txt) properly installed.


Ok, I tried looking for this text file and I couldn't find it. can you tell me where to get this file and how to fix it?

thank you

noddy
03-08-2010, 01:52 PM
it's right next to the source that you downloaded on the first page of this thread.

http://www.dodplugins.net/forums/attachment.php?attachmentid=72&d=1236981634

MOSdod
05-31-2010, 09:09 PM
works great. But when I set the:
setinfo custom_country "Israel"
it doesn't show ther country for me, maybe cause i'm admin?
here is the cvars i have in amxx.cfg
dod_jqs_msgs 1
dod_jqs_bots 2
dod_jqs_admins 1
dod_jqs_join 1
dod_jqs_join_geo 1
dod_jqs_quit 1
dod_jqs_teams 1
dod_jqs_spec 1
dod_jqs_name 1
dod_jqs_start_allies 1
dod_jqs_start_brits 1
dod_jqs_start_axis 1
setinfo custom_country "Israel"


=====================================





Also is there a way I can add a sound when a player comes and leaves? like the one in GHW_connect.amxx ?

thanx

diamond-optic
06-01-2010, 01:34 PM
works great. But when I set the:
setinfo custom_country "Israel"
it doesn't show ther country for me, maybe cause i'm admin?
here is the cvars i have in amxx.cfg
dod_jqs_msgs 1
dod_jqs_bots 2
dod_jqs_admins 1
dod_jqs_join 1
dod_jqs_join_geo 1
dod_jqs_quit 1
dod_jqs_teams 1
dod_jqs_spec 1
dod_jqs_name 1
dod_jqs_start_allies 1
dod_jqs_start_brits 1
dod_jqs_start_axis 1
setinfo custom_country "Israel"

setinfo is a client command, it doesnt go in the amxx.cfg..





Also is there a way I can add a sound when a player comes and leaves? like the one in GHW_connect.amxx ?

thanx

not via this plugin you cant

ziku
08-21-2010, 10:24 AM
Can u add dod_capture_area event for disable server messages when someone reach the target?