NextGenRP Posted April 26, 2012 Share Posted April 26, 2012 If a player types /logout and the script kicks the player for logging out will it still trigger the onPlayerQuit event because the player was kicked and didn't quit? Also is there any way to remove the /logout command all together? Link to comment
Castillo Posted April 26, 2012 Share Posted April 26, 2012 Yes, it triggers when the player get's kicked as well. You can restrict the command on the ACL, so they'll not be able to use it. Or you can use this small script to cancel the command: addEventHandler ( "onPlayerCommand", root, function ( cmd ) if ( cmd == "logout" ) then cancelEvent ( ) end end ) Link to comment
NextGenRP Posted April 26, 2012 Author Share Posted April 26, 2012 Thanks Solidsnake14 works perfect 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