Scooby Posted March 2, 2012 Share Posted March 2, 2012 does anyone know if its possible to disable the /reconnect command ? or if its not possible, can anyone think of a way to detect when a player types it, so i can take the relative action when they rejoin. ive tried onClientConsole but it seems it doesnt show for /reconect. Link to comment
Castillo Posted March 2, 2012 Share Posted March 2, 2012 I doubt if it's possible, I tried onPlayerCommand and nothing, I guess MTA native commands doesn't trigger this event. Link to comment
Scooby Posted March 2, 2012 Author Share Posted March 2, 2012 Yeah ive tried the obvious, i thought maybe someone like u might know of some other way tho basically, i have a dm server, but it seems just lately people are getting touchy about dying and gaining that 1 extra death, so they bind /reconnect to a key so that when theyre on low health, they press it to reconnect and no life is lost... they can then respawn again.... and play on. Link to comment
Castillo Posted March 2, 2012 Share Posted March 2, 2012 You could use onPlayerQuit and make a timer to see if player joins after some seconds. Link to comment
Scooby Posted March 2, 2012 Author Share Posted March 2, 2012 yeah but quite often people crash.. although i guess /reconnect will be a little faster for most. thx for the idea.. i'll have a play around with the times. Edit: Once again, thanks for the idea, ive managed to get something together and it seems to be working perfectly. good job Link to comment
-RoCk-Alex Posted March 8, 2012 Share Posted March 8, 2012 yeah but quite often people crash..although i guess /reconnect will be a little faster for most. thx for the idea.. i'll have a play around with the times. Edit: Once again, thanks for the idea, ive managed to get something together and it seems to be working perfectly. good job IF THIS TOPIC IS NOT CLOSED THEN YOU CAN USE THIS COMMAND TO DISABLE ANY COMMAND addEventHandler("onPlayerSpawn", root, function () removeCommandHandler("reconnect") end) Link to comment
JR10 Posted March 8, 2012 Share Posted March 8, 2012 Stop using caps, and: Edit: Once again, thanks for the idea, ive managed to get something togetherand it seems to be working perfectly. good job Link to comment
Castillo Posted March 8, 2012 Share Posted March 8, 2012 yeah but quite often people crash..although i guess /reconnect will be a little faster for most. thx for the idea.. i'll have a play around with the times. Edit: Once again, thanks for the idea, ive managed to get something together and it seems to be working perfectly. good job IF THIS TOPIC IS NOT CLOSED THEN YOU CAN USE THIS COMMAND TO DISABLE ANY COMMAND addEventHandler("onPlayerSpawn", root, function () removeCommandHandler("reconnect") end) No, you can't remove native MTA commands, the same way you can't detect them when you use the command(s). 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