Scooby Posted March 2, 2012 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. [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
Castillo Posted March 2, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Scooby Posted March 2, 2012 Author 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. [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
Castillo Posted March 2, 2012 Posted March 2, 2012 You could use onPlayerQuit and make a timer to see if player joins after some seconds. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Scooby Posted March 2, 2012 Author 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 [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
-RoCk-Alex Posted March 8, 2012 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)
JR10 Posted March 8, 2012 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 Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Castillo Posted March 8, 2012 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). San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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