reapi_reunion.inc
Original include source with line numbers.
| 1 | #if defined _reapi_reunion_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _reapi_reunion_included |
| 5 | |
| 6 | enum client_auth_type |
| 7 | { |
| 8 | CA_TYPE_NONE = 0, |
| 9 | CA_TYPE_DPROTO, |
| 10 | CA_TYPE_STEAM, |
| 11 | CA_TYPE_STEAMEMU, |
| 12 | CA_TYPE_REVEMU, |
| 13 | CA_TYPE_OLDREVEMU, |
| 14 | CA_TYPE_HLTV, |
| 15 | CA_TYPE_SC2009, |
| 16 | CA_TYPE_AVSMP, |
| 17 | CA_TYPE_SXEI, |
| 18 | CA_TYPE_REVEMU2013, |
| 19 | CA_TYPE_SSE3, |
| 20 | }; |
| 21 | |
| 22 | #define is_user_steam(%0) (REU_GetAuthtype(%0) == CA_TYPE_STEAM) |
| 23 | |
| 24 | /* |
| 25 | * Gets client protocol. |
| 26 | * |
| 27 | * @param index Client index |
| 28 | * |
| 29 | * @return Client protocol |
| 30 | */ |
| 31 | native REU_GetProtocol(const index); |
| 32 | |
| 33 | /* |
| 34 | * Gets client auth type. |
| 35 | * |
| 36 | * @param index Client index |
| 37 | * |
| 38 | * @return Client auth type |
| 39 | */ |
| 40 | native client_auth_type:REU_GetAuthtype(const index); |
| 41 | |
| 42 | /* |
| 43 | * Get client authkey |
| 44 | * |
| 45 | * @param index Client index |
| 46 | * @param index Buffer to copy the authkey |
| 47 | * @param index Maximum buffer size |
| 48 | * |
| 49 | * @return Number of cells copied to buffer |
| 50 | * |
| 51 | */ |
| 52 | native REU_GetAuthKey(const index, dest[], maxlen); |
| 53 | |
| 54 | /* |
| 55 | * Check if the client is running RevEmu with limited user rights. |
| 56 | * |
| 57 | * @param index Client index |
| 58 | * |
| 59 | * @return 1/0 |
| 60 | */ |
| 61 | native bool:REU_IsRevemuWithoutAdminRights(const index); |
| 62 | |