vip.inc
Original include source with line numbers.
| 1 | #if defined _vip_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _vip_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib vip |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib vip |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library vip |
| 13 | #endif |
| 14 | |
| 15 | /** |
| 16 | * Checks whether a player is VIP or not |
| 17 | * |
| 18 | * @param id - Unique index of player |
| 19 | * |
| 20 | * @return True if VIP, false otherwise |
| 21 | * |
| 22 | * @note This could return false in client_connect(), client_authorized(), client_putinserver(), and client_disconnect(). |
| 23 | * Use the vip_authorized(), vip_putinserver() and vip_disconnect() forwards instead. |
| 24 | */ |
| 25 | native is_user_vip(id); |
| 26 | |
| 27 | /** |
| 28 | * Called when a VIP player authorizes |
| 29 | * |
| 30 | * @param id - Unique index of player |
| 31 | * |
| 32 | * @return Return values are ignored |
| 33 | */ |
| 34 | forward vip_authorized(id); |
| 35 | |
| 36 | /** |
| 37 | * Called when a VIP player joins the server |
| 38 | * |
| 39 | * @param id - Unique index of player |
| 40 | * |
| 41 | * @return Return values are ignored |
| 42 | */ |
| 43 | forward vip_putinserver(id); |
| 44 | |
| 45 | /** |
| 46 | * Called when a VIP player disconnects |
| 47 | * |
| 48 | * @param id - Unique index of player |
| 49 | * |
| 50 | * @return Return values are ignored |
| 51 | */ |
| 52 | forward vip_disconnect(id); |
| 53 | /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE |
| 54 | *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } |
| 55 | */ |
| 56 | |