Bernardo da Silva Posted August 12, 2020 Posted August 12, 2020 Hello! I have a question! I want to make a protection for my script with IP Protection, where the script only work when the IP of hosting is authorized for me, that's me the script's owner. Someone to do this?
Bernardo da Silva Posted August 13, 2020 Author Posted August 13, 2020 2 minutes ago, iPrestege said: You can use GetPlayerIP or GetPlayerSerial. But I will like to get the IP of the host, where the server is hosted.
iPrestege Posted August 13, 2020 Posted August 13, 2020 2 minutes ago, Bernardo da Silva said: But I will like to get the IP of the host, where the server is hosted. GetServerConfigSetting
Bernardo da Silva Posted August 13, 2020 Author Posted August 13, 2020 11 hours ago, iPrestege said: GetServerConfigSetting And only me, can change the IP in the string?
SpecT Posted August 13, 2020 Posted August 13, 2020 (edited) @iPrestege is suggesting a function to get the server IP from the server configuration and compare it with the IP you want to authorize. This way the script won't work on other servers (if this is what you meant). Here is an example: if (getServerConfigSetting("serverip") == "Your.Server.IP.Here") then ... end Edited August 13, 2020 by SpecT 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now