zv_get_user_flags

Returns having player VIP flags. If @return > 0 - player is VIP. @id - player id

Syntax

native zv_get_user_flags(id) #define ZV_DURATION_IGNORE -1 #define ZV_DURATION_PERMANENT 0 #define ZV_DURATION_TILL_DISCONNECT ~'t' #define ZV_DURATION_TILL_MAP ~('t'|'m') /** * Set VIP flags for player. * @id - player id, 0 - all players * @duration - time (in seconds), how long player will have VIP. * Can be used ZV_DURATION_ constants. * @flags - flags, what attributes VIP player will have. * All AT_ constants, or use AT_ALL for all attributes. * If you want to just give a VIP status without any abbilities, use AT_NONE flag. * Because VIP can't exist without any flags set, having only this dummy flag, player can * remain in VIP status on the system. * @return - [true - VIP created/updated succesfully, * false - used ZV_DURATION_IGNORE for player, that doesn't have VIP * or player is not connected to server] * * NOTE: if id = 0, always returns true. * Examples: * If you want to set a new VIP: * //player will get VIP privilegies for 2 days and only multijump and armor abbilities * zv_set_user_flags(id, 60*60*24*2, AT_MULTIJUMP|AT_ARMOR) * //player will get VIP all VIP privilegies for 30 days (1 month) * zv_set_user_flags(id, 60*60*24*30, AT_ALL) * Update existing: * //update current user flags (adde extra gravity). Privilegie duration remains the same. * //NOTE: if zv_set_user_flags(id, ZV_DURATION_IGNORE... will be called on player, that don't have privilegies

Usage

id

Return

- vip flags (return 0 if player not connected)

Defined in zm_vip.inc at line 38 . This documentation was automatically generated from source.