How to lock ALL commands? +Rep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to lock ALL commands? +Rep (
/showthread.php?tid=576121)
How to lock ALL commands? +Rep -
Rodri99 - 01.06.2015
From lot weeks i am searching how to lock all commands so:
Onplayercommandtext{
HERE THE FUNCTION TO LOCK ALL, I ALWAYS GET INVALID FUNCTION OR DECLARATION IF I PUT:
if(AFK[playerid]==1){
Sendclient...
return 1;
}
How to lock all Onplayercommandtext public basing in an IF( function?
Thanks to all repliers,
Rodri.
Re: How to lock ALL commands? +Rep -
Phyzic - 01.06.2015
create a function.
Which will send client message, And if pAFK = 1, Return 0.
Re: How to lock ALL commands? +Rep -
Stanford - 01.06.2015
Under OnPlayerCommandText (at the top) --> add a condition and make it return a message or whatever!