Is there a way if player is admin to disable player command ?
#9

It does not block all the commands. To the command you want to block, just add:
pawn Код:
if( Disabled_Command[ playerid ] ) return SendClientMessage( playerid, -1, "That command is blocked" );
An example would be: let's say you want to block /heal command if you've disabled it for all the players.
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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)