How to disable client commands? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (
https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: How to disable client commands? (
/showthread.php?tid=496369)
How to disable client commands? -
d711728 - 21.02.2014
I would like to disable / dl command.
How is it possible?
The solution would be, if only RCON admin could use the command!
Re: How to disable client commands? -
Dignity - 21.02.2014
Why would you want to disable it?
Re: How to disable client commands? -
kooltuO - 21.02.2014
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
Re: How to disable client commands? -
Dignity - 21.02.2014
Quote:
Originally Posted by kooltuO
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;
Re: How to disable client commands? -
d711728 - 21.02.2014
OnPlayerCommandText function you did not call me.
/ dl command client running!
Re: How to disable client commands? -
Dignity - 21.02.2014
You don't need to call that function with zCMD. You place zCMD commands OUTSIDE callbacks.
Re: How to disable client commands? -
Jochemd - 21.02.2014
No, you cannot disable it.
Those commands are client sided and won't even be passed to the server.