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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user