22.06.2014, 00:13
i just want to help
place it somewhere in your script (on the top under the #include <a_samp>)
inside of the /blockcommands
and inside the command that you want to block when it's blocked
place it somewhere in your script (on the top under the #include <a_samp>)
pawn Код:
new bool:CmdBlocked;
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator");
CmdBlocked = ((CmdBlocked) ? false : true);
SendClientMessage(playerid, -1, (CmdBlocked) ? "Command unblocked" : "Command blocked");
pawn Код:
if(CmdBlocked) return SendClientMessage(playerid, -1, "Command is currently disabled");