26.02.2012, 17:24
PHP код:
new bool:BlockCommands;
Block Command:
pawn Code:
if( !strcmp( cmdtext, "/blockcommands", true ) )
{
BlockCommands = true;
SendClientMessage( playerid, -1, "You have blocked commands to all players." );
SendClientMessage( playerid, -1, "Use {C0C0C0}/unblockcommands {FFFFFF}to unblock them." );
return 1;
}
Unblock Command:
pawn Code:
if( !strcmp( cmdtext, "/unblockcommands", true ) )
{
BlockCommands = false;
SendClientMessage( playerid, -1, "You have unblocked commands to all players." );
SendClientMessage( playerid, -1, "Use {C0C0C0}/blockcommands {FFFFFF}to block them." );
return 1;
}
pawn Code:
if( BlockCommands && !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You can't use commands because an Admin disabled them." );
when i disable the commands i can't unblock them to can work again it's giving me this "You can't use commands because an Admin disabled them." when i write /unblockcommands how we can fix it