zv_set_user_flags
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 //function will return false and no action will be taken. You need to set duration for first time. zv_set_user_flags(id, ZV_DURATION_IGNORE, zv_get_user_flags(id)|AT_EXTRA_GRAVITY)
Syntax
Usage
| id | — |
| duration | — |
| flags | — |