Varkis Posted July 23, 2021 Posted July 23, 2021 How to prohibit logging in to the server from a custom client?
!#NssoR_) Posted July 23, 2021 Posted July 23, 2021 https://wiki.multitheftauto.com/wiki/OnPlayerConnect
Hydra Posted July 23, 2021 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
Varkis Posted July 28, 2021 Author Posted July 28, 2021 Well, how do I find out which client the player uses?
Hydra Posted July 28, 2021 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
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