_Marco_ Posted March 15, 2021 Share Posted March 15, 2021 Hello, how can I specify an IP in chatbox? Link to comment
SpecT Posted March 15, 2021 Share Posted March 15, 2021 Hey, What exactly do you mean ? To get player's IP you need to use the function getPlayerIP. Check the documentation for syntax and an example. Link to comment
_Marco_ Posted March 15, 2021 Author Share Posted March 15, 2021 I want the admins to be alerted if the player send ip to chats Link to comment
SpecT Posted March 15, 2021 Share Posted March 15, 2021 Oh, now I get it. Use the event onPlayerChat. To check whether the message contains an IP address in it use this: string.match(message,"%d+%.%d+%.%d+%.%d+") It will return true if an IP address is presented and false if not. Link to comment
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