21.06.2014, 22:10
i want /blockcommands (command) for my admin system, because sometimes player makes /go many times so i want to block his commands for minutes, i searched for it but didn't get it, please help.
new bool:CmdBlocked;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator");
CmdBlocked = ((CmdBlocked) ? false : true);
SendClientMessage(playerid, -1, (CmdBlocked) ? "Command unblocked" : "Command blocked");
if(CmdBlocked) return SendClientMessage(playerid, -1, "Command is currently disabled");
SendClientMessage(playerid, -1, (CmdBlocked) ? "Command unblocked" : "Command blocked");
error 001: expected token: "-string end-", but found "-identifier-"
if(CmdBlocked) SendClientMessage(playerid, -1, "Command blocked");
else SendClientMessage(playerid, -1, "Command unblocked");
SendClientMessage(playerid, -1, ((CmdBlocked) ? "Command blocked" : "Command unblocked"));
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator")
Replace this:
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator"); Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "you are not rcon administrator") |