Jump to content

command disable


Desaster

Recommended Posts

hello so I wanted to ask you how to disable all commands if anyone is not logged in :P pls don't tell me that I must add it in every script I made before :D

guiSetInputMode("no_binds_when_editing") 

That function disables binds when writing in a textbox, not commands.

The right way to do it is to use

[url=https://wiki.multitheftauto.com/wiki/OnPlayerCommand]https://wiki.multitheftauto.com/wiki/OnPlayerCommand[/url] 

and cancel the event if source (the player that is trying to use a command) is not logged in.

Link to comment

That function disables binds when writing in a textbox, not commands.

The right way to do it is to use

[url=https://wiki.multitheftauto.com/wiki/OnPlayerCommand]https://wiki.multitheftauto.com/wiki/OnPlayerCommand[/url] 

and cancel the event if source (the player that is trying to use a command) is not logged in.

yup that's it :D so thnx :D it worked

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