Thread: Admin NoBuy
View Single Post
amxnewbie
Junior Member
Join Date: Sep 2007
Old 11-07-2007 , 04:00   Re: Admin NoBuy
Reply With Quote #8

May I know in which case this happens? I'm thinking whether I need this section because it seems quite inefficient.
Code:
#if !defined NO_STEAM
public client_command(id){  //from AssKicr
 if (BuyBlock[id]) {
  new arg[13]
  if (read_argv(0, arg, 12) > 11) /* Longest buy command has 11 chars so if command is longer then don't care */ 
   return PLUGIN_CONTINUE 
  new a = 0 
  do {
   if (equal(g_Aliases[a], arg) || equal(g_Aliases2[a], arg)) { 
    return PLUGIN_HANDLED 
   }
  } while(++a < MAXMENUPOS)
 }
 
 return PLUGIN_CONTINUE 
} 
#endif
amxnewbie is offline