Fixed vip_status command (#2184)

Fixed different return types for the same function call
Also introduced constants for better function usage.

Fixes #2183
Thanks to @anacondaqq
This commit is contained in:
Lemongrass3110
2017-06-20 19:22:46 +02:00
committed by GitHub
parent 1005b46735
commit d0ca637ddd
19 changed files with 66 additions and 59 deletions

View File

@@ -2465,9 +2465,9 @@ Examples:
Returns various information about a player's VIP status.
Valid types:
1 - VIP status. (1 if VIP, 0 if non-VIP)
2 - VIP expire date. (timestamp string if VIP, 0 if non-VIP)
3 - VIP time remaining. (timestamp string if VIP, 0 if non-VIP)
VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
VIP_STATUS_EXPIRE - VIP expire timestamp if the player is VIP or 0 if not
VIP_STATUS_REMAINING - VIP time remaining in seconds
NOTE: This command is only available if the VIP System is enabled.
@@ -5178,7 +5178,7 @@ Values for <mode> are:
STOR_MODE_PUT : Player can put items in the storage.
Example:
if (vip_status(1)) {
if (vip_status(VIP_STATUS_ACTIVE)) {
mes "I will open your Premium storage.";
mes "Thank you for using our service.";
close2;