Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is there a way to see if a server is a VIP server?

Asked by 9 years ago

There is a VIP server thing now, and you pay 200 R$(As of April 2015), to get a server where only a few people can join you. I had some ideas that might work in later updates:

if game.VIPServer == true then
    print("VIP Server!")
else
    print("Regular Server!")
end

game:GetService("Players").PlayerAdded:connect(function(player)
    if game:GetService("Players"):IsVIPServerOwner(player) then
        print(player.Name.." is the owner of this VIP server!")
    end
end)

print(game.VIPExpireDate) --String Value, can only be read from.
print(game.DaysBeforeVIPExpire) --NumberValue, can only be read from

It would print something like:

[1/15/15]January 15, 2015

5



Is this a good idea to add? Or is there a way to see if it's a vip server and if there is a way to find who bought the server and when/what date is expires at.

0
You could use the loaded function to link the current game to the first player who joined as they should be the fist in the game? User#5423 17 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

The only thing I can find in the API is game.VIPServerId, which has the cryptic description, "A string that could identify the current server as a VIP server." I have no idea if it is a currently functioning feature, though you could test it if you have Robux to spare.

"Is this a good idea to add?" For knowing when the server will expire: I don't think it would be a bad addition, but I don't see how much use there would be for it. An alternative (which, at best, would be just an estimate), would be to store when the VIP server was first active in a Datastore (this would require that game.VIPServerId gives you a meaningful value, of course), and then compare that value to the current date, giving you an estimate of how long the server has existed, and thus how long until the server will be renewed or expired.

I've seen a suggestion that knowing the owner of the VIP server would allow scripts to grant extra permissions to that player, which seems like a good idea to me.

0
I already know how to do this, well accept anyway, since this helps. EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question