14.08.2009, 09:43
Im thinking instead of putting else or deny messages in each command for admins, to do this instead...
Example below will be for rcon admin only, but you should be able to get the idea of what i mean using it for other admins too.
Im just wondering if by defining my admin commands like this under OnPlayerCommandText, would it work? would it be any more or less efficient than writing a deny or else in each command. And are there any possible drawbacks from using it this way?
Example below will be for rcon admin only, but you should be able to get the idea of what i mean using it for other admins too.
pawn Код:
if(IsPlayerAdmin(playerid))
{
dcmd(gmx,3,cmdtext);
dcmd(giveallweapon,13,cmdtext);
}