Egor_Varaksa Posted July 23, 2021 Share Posted July 23, 2021 How to prohibit logging in to the server from a custom client? Link to comment
!#NssoR_) Posted July 23, 2021 Share Posted July 23, 2021 https://wiki.multitheftauto.com/wiki/OnPlayerConnect Link to comment
Hydra Posted July 23, 2021 Share Posted July 23, 2021 function playerConnect(playerNick, playerIP, playerUsername, playerSerial, playerVersionNumber) if playerSerial == "serial here" then cancelEvent(true,"your message.") else end end addEventHandler ("onPlayerConnect", getRootElement(), playerConnect) Edited from wiki Link to comment
Egor_Varaksa Posted July 28, 2021 Author Share Posted July 28, 2021 Well, how do I find out which client the player uses? Link to comment
Hydra Posted July 28, 2021 Share Posted July 28, 2021 (edited) 10 minutes ago, Egor_Varaksa said: Well, how do I find out which client the player uses? https://wiki.multitheftauto.com/wiki/GetVersion You can check if the version is ,,Custom" and do the thing you want to make. Edited July 28, 2021 by Hydra 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