Jump to content

disable reconnect


Scooby

Recommended Posts

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

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

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. :D

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
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. :D

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
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. :D

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...