Jump to content

/start function [Where is it in?]


Jack_Miller

Recommended Posts

Posted

Hi Guys.

I don't use ACL on my Server, so everyone can start, restart and stop resources...that sucks..

Yesterday i finished a scipt exactly like the normal /start, /stop and /restart.

removeCommandHandler don't work on it.

So where is the normal /start function in? I searched in the standard resources but didn't find it...

  • Discord Moderators
Posted

start, stop, restart, refresh etc. are native built in MTA commands.

They cannot be disabled.

I'd advise you to do the following:

onClientResourceStart and onResourceStart, cancelEvent() unless a dynamic parameter on the certain resource is true (do for stop too)

I would only advise you to fix your ACL.

I am not sure how your server will react if one decides to spam one of the above

Posted

Why not use the ACL on your server? Just disable start/stop/restart etc for everyone, it's a couple of lines of XML.

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