03.09.2013, 15:16
It does not block all the commands. To the command you want to block, just add:
An example would be: let's say you want to block /heal command if you've disabled it for all the players.
pawn Код:
if( Disabled_Command[ playerid ] ) return SendClientMessage( playerid, -1, "That command is blocked" );
pawn Код:
// On some commands you want to disable (an example):
CMD:heal( playerid, params[ ] )
{
if( Disabled_Command[ playerid ] ) return SendClientMessage( playerid, -1, "That command is blocked" );
SetPlayerHealth( playerid, 100.0 );
return 1;
}