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