Command structure for admin... Would this work and be efficient?
#1

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.

pawn Код:
if(IsPlayerAdmin(playerid))
{
   dcmd(gmx,3,cmdtext);
   dcmd(giveallweapon,13,cmdtext);
}
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?

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)