Jump to content

Disable or hook native commands ?


Pallanas

Recommended Posts

Posted

Hi

Is it possible to disable or hook on native commands like /login, /logout, /reconnect, etc ?

https://forum.multitheftauto.com/viewtopic.php?f ... ve#p311610

https://forum.multitheftauto.com/viewtopic.php?f ... ve#p416603

According to those no, but has something changed ?

Edit : Here is where the functions are defined in the source code, I guess a dev could add a check and a config option. I guess I should write a ticket on the mantis. https://code.google.com/p/mtasa-blue/so ... s.cpp#1018

Posted
use cancelEvent in onPlayerCommand event

Didn't try the exact thing, but I'm pretty sure it won't work

It works, I tried it.

Posted

You can disable server commands like login/logout etc. through onPlayerCommand but you can't disable client commands, such as connect, reconnect etc. it makes sense since they are in the client itself.

Lua Scripter

?ucet=miki_cz

Owner of mshost.cz MTA portal.

Posted
use cancelEvent in onPlayerCommand event

Didn't try the exact thing, but I'm pretty sure it won't work

It works, I tried it.

Well that's good to know then, thanks !

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