Scripting Help
#3

i just want to help

place it somewhere in your script (on the top under the #include <a_samp>)
pawn Код:
new bool:CmdBlocked;
inside of the /blockcommands
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");
and inside the command that you want to block when it's blocked
pawn Код:
if(CmdBlocked) return SendClientMessage(playerid, -1, "Command is currently disabled");
Reply


Messages In This Thread
Scripting Help - by kirostar - 21.06.2014, 22:10
Re: Scripting Help - by kirostar - 21.06.2014, 23:53
Re: Scripting Help - by AiRaLoKa - 22.06.2014, 00:13
Re: Scripting Help - by kirostar - 22.06.2014, 00:34
Re: Scripting Help - by AiRaLoKa - 22.06.2014, 00:43
Re: Scripting Help - by Bek_Loking - 22.06.2014, 00:57
Re: Scripting Help - by AiRaLoKa - 22.06.2014, 01:05
Re: Scripting Help - by kirostar - 22.06.2014, 01:08
Re: Scripting Help - by AiRaLoKa - 22.06.2014, 01:10
Re: Scripting Help - by Raza2013 - 22.06.2014, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)