AMXX-BG.INFO amxbans_core.inc Raw include

amxbans_core.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _amxbans_core_included
2 #endinput
3 #endif
4
5 #define _amxbans_core_included
6
7 #pragma reqlib AMXBansCore
8
9 #if !defined AMXMODX_NOAUTOLOAD
10 #pragma loadlib AMXBansCore
11 #endif
12
13 // get amxbans db prefix
14 // standalone native, see forward amxbans_sql_initialized
15 native amxbans_get_db_prefix(output[], len = 32);
16
17 // get admin nick from web
18 native amxbans_get_admin_nick(id, output[], len = 32);
19
20 // returns 1 if admin has to use static bantime
21 // param id: the player id
22 native amxbans_get_static_bantime(id);
23
24 // executed if the db is initialized
25 // value sqlTuble: the db info tuble Handle which you can use to connect, donґt free it!!
26 // value dbPrefix: the db Prefix from amxbans
27 forward amxbans_sql_initialized(Handle:sqlTuple, const dbPrefix[]);
28
29 // executed if a player gets admin
30 // value id: the player id
31 forward amxbans_admin_connect(id);
32
33 // executed if a admin disconnects
34 // value id: the player id
35 forward amxbans_admin_disconnect(id);