AMXX-BG.INFO czerotutor.inc Raw include

czerotutor.inc

Original include source with line numbers.

Back Download .inc
1 /* AMX Mod X functions
2 *
3 * by Dark Style
4 *
5 * This file is provided as is (no warranties).
6 */
7
8 #if defined _czerotutor_included
9 #endinput
10 #endif
11 #define _czerotutor_included
12
13 enum
14 {
15 NONE = 0,
16 RED,
17 BLUE,
18 YELLOW,
19 GREEN
20 }
21
22 /**
23 * Create a tutor
24 *
25 * @param id Player index.
26 * @param color Color of the text.
27 * @param sound Sound to play when display tutor.
28 * @param time Time to the tutor still alive.
29 * @param input Text to display in tutor.
30 * @return 1 on success, 0 otherwise.
31 */
32 native create_user_cztutor(id, color = GREEN, sound[] = "", Float:time = 0.0, const input[] = "");
33
34
35 /**
36 * Remove player tutor.
37 *
38 * @param id Player index.
39 * @return 1 on success, 0 otherwise.
40 */
41 native remove_user_cztutor(id);
42
43
44 /**
45 * Check if a tutor is displaying to this player.
46 *
47 * @param id Player index.
48 * @return Color of player tutor (If not exists will return NONE).
49 */
50 native is_user_cztutor(id);
51