AMXX-BG.INFO private_message.inc Raw include

private_message.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _private_message_included
2 #endinput
3 #endif
4 #define _private_message_included
5
6 /**
7 * Returns if chat blocked.
8 *
9 *
10 * @return true/false
11 */
12 native bool:pm_is_chat_blocked();
13
14 /**
15 * Returns if player blocked.
16 *
17 * @param blocker Player who blocked
18 * @param blocked Blocked player
19 *
20 * @return true/false
21 */
22 native bool:pm_is_player_blocked(blocker, blocked);
23
24 /**
25 * Set value for block/unblock chat.
26 *
27 * @param id Player admin
28 * @param value Bool value
29 *
30 * @noreturn
31 */
32 native pm_block_use(bool:value);
33
34 /**
35 * Send a message from player to player.
36 *
37 * @param sender Player sender
38 * @param receiver Player receiver
39 * @param message Message
40 *
41 * @noreturn
42 */
43 native pm_send_message(sender, receiver, message[]);
44
45 /**
46 * Called when sends a message.
47 *
48 * @param sender Player sender
49 * @param receiver Player receiver
50 * @param message Message
51 *
52 * @return PLUGIN_CONTINUE to let send a message
53 * PLUGIN_HANDLED or higher to prevent send a message
54 */
55 forward pm_message_sent(sender, receiver, message[]);
56
57 /**
58 * Called when a player blocks another player.
59 *
60 * @param blocker Player blocker
61 * @param blocked Player blocked
62 * @param block True if blocked, otherwise false
63 *
64 *
65 * @return PLUGIN_CONTINUE to let block/unblock a player
66 * PLUGIN_HANDLED or higher to prevent block/unblock a player
67 */
68 forward pm_player_blocked(blocker, blocked, bool:block);