added #define DISPLAY_MSG
This commit is contained in:
parent
9f1bb9345c
commit
e42aef8714
@ -34,6 +34,7 @@
|
||||
|
||||
#include <amxmodx>
|
||||
|
||||
#define DISPLAY_MSG // Comment to disable message on join
|
||||
#define HELPAMOUNT 10 // Number of commands per page
|
||||
|
||||
public plugin_init() {
|
||||
@ -42,8 +43,11 @@ public plugin_init() {
|
||||
register_concmd("amx_help","cmdHelp",0,"<page> [nr of cmds (only for server)] - displays this help")
|
||||
}
|
||||
|
||||
public client_putinserver(id)
|
||||
setHelp(id)
|
||||
#if defined DISPLAY_MSG
|
||||
public client_putinserver(id) {
|
||||
set_task(15.0,"dispInfo",id)
|
||||
}
|
||||
#endif
|
||||
|
||||
public cmdHelp(id,level,cid) {
|
||||
new arg1[8], flags = get_user_flags(id)
|
||||
@ -82,6 +86,7 @@ public cmdHelp(id,level,cid) {
|
||||
return PLUGIN_HANDLED
|
||||
}
|
||||
|
||||
#if defined DISPLAY_MSG
|
||||
public dispInfo(id) {
|
||||
client_print(id,print_chat,"%L",id,"TYPE_HELP")
|
||||
new nextmap[32]
|
||||
@ -94,6 +99,4 @@ public dispInfo(id) {
|
||||
}
|
||||
client_print(id,print_chat,"%L",id,"TIME_INFO_2",nextmap)
|
||||
}
|
||||
|
||||
setHelp(id)
|
||||
set_task(15.0,"dispInfo",id)
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user