How to disable client commands?
#1

I would like to disable / dl command.

How is it possible?

The solution would be, if only RCON admin could use the command!
Reply
#2

Why would you want to disable it?
Reply
#3

Not sure if it works, but it's worth a try.

pawn Code:
CMD:dl(playerid, params[]) // Command
{ // Opening bracket
    return 0; // Returning 0, so disabling SAMP Option (This is at most occasions, not sure if it is at this one)
} // Closing bracket
Reply
#4

Quote:
Originally Posted by kooltuO
View Post
Not sure if it works, but it's worth a try.

pawn Code:
CMD:dl(playerid, params[]) // Command
{ // Opening bracket
    return 0; // Returning 0, so disabling SAMP Option (This is at most occasions, not sure if it is at this one)
} // Closing bracket
You can also just do the following if you don't like alot of lines:

pawn Code:
CMD:dl(playerid, params[]) return 0;
Reply
#5

OnPlayerCommandText function you did not call me.
/ dl command client running!
Reply
#6

You don't need to call that function with zCMD. You place zCMD commands OUTSIDE callbacks.
Reply
#7

No, you cannot disable it. Those commands are client sided and won't even be passed to the server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)