
   /*
   ** AMX Plugin
   **
   ** number_of_players, v0.1
   ** Created 22/09/2003
   ** By ELiM
   **
   ** Allows the Admin to print the current amount of users on the server
   ** to everyone at the center of the screen
   */
   #include <amxmod>
   #include <amxmisc>
   public number_of_players(id,level,cid){
      if (!cmd_access(id,level,cid,1))
         return PLUGIN_HANDLED

      new players[32], inum
      get_players(players,inum)

      if (inum==0){
         console_print(id,"No players are playing on this server")
      }
      if (inum==1) {
         client_print(0,print_center,"1   Player   is   playing  on  this
   server")
      }
      if (inum > 1) {
         client_print(0,print_center,"%i  Players  are  playing  on  this
   server",inum)
      }

      return PLUGIN_HANDLED
   }
   public plugin_init() {
      register_plugin("Number of Players","0.1","ELiM")
      register_clcmd("amx_numofplayers","number_of_players",ADMIN_VOTE,"
   : Prints the number of players on the server to everyone")
      return PLUGIN_CONTINUE
   }
