ichat.inc
Original include source with line numbers.
| 1 | #if defined _ichat_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _ichat_included |
| 5 | |
| 6 | #define iChatIsUserVip( %1 ) iChatVipAction( %1, 0 ) |
| 7 | #define iChatSetUserVip( %1 ) iChatVipAction( %1, 1 ) |
| 8 | #define iChatRemoveUserVip( %1 ) iChatVipAction( %1, 2 ) |
| 9 | |
| 10 | /** |
| 11 | * Send data to iChat main plugin |
| 12 | * You can change the maximum number of datas. Deafult is 2 (0, 1). If more or less, it will be 0. |
| 13 | * An exemble would be: iChatSendCustomData( id, 0, "Custom" ); |
| 14 | * You can't format, you have to use formatex before. |
| 15 | * |
| 16 | * @param iIndex Index of the player wich the data will be send. |
| 17 | * @param iTagNum Custom tag index. |
| 18 | * @param szData[ ] The data to be send. |
| 19 | */ |
| 20 | native iChatSendCustomData( iIndex, iTagNum, szData[ ] ); |
| 21 | |
| 22 | /** |
| 23 | * Check, set, or remove a VIP. |
| 24 | * You have to reset all by yourself (at putinserver etc...). |
| 25 | * It's not saved at map change. |
| 26 | * |
| 27 | * @param iIndex Index of the player. |
| 28 | * @param iAction Action on the native: |
| 29 | * - 0: return if iIndex is VIP. |
| 30 | * - 1: set iIndex VIP. |
| 31 | * - 2: remove iIndex from VIPs. |
| 32 | * @return iIndex's VIP status once the action done. |
| 33 | */ |
| 34 | native iChatVipAction( iIndex, iAction ); |
| 35 | |