Solved Player list with counter

Discussion in 'Plugin Requests' started by Fablitos, Jul 22, 2016.

  1. Hello world
    The plugin could display the number of players, not the players list
     
  2. I already have a custom plugin with this in. I've extracted the chat command "/pcount" into a 'mini plugin' for you but it's not worth releasing as an oxide plugin.
     
    Last edited by a moderator: Feb 19, 2017
  3. Thank you so much, you help me greatly
     
  4. No problem mate.
    Oh I forgot to mention that I have permissions in that script so you'll need to set the permissions as follows:
    • /grant user <player> PlayerCount.use grant permission to player
    • /grant group <group> PlayerCount.use grant permission to group
     
  5. I had actually seen the permission, I deleted the plugin, for more facilitated.

    I wondered, why not put your plugin directly in public download?
    [DOUBLEPOST=1469186343][/DOUBLEPOST]I changed the command "pcount" for "nombre" for my French server, and remove the permission (as said above) here is the code:
     
    Last edited by a moderator: Feb 19, 2017
  6. Looks good. You can also get rid of:
    Code:
    string Msg(string msg, string SteamId = null) => lang.GetMessage(msg, this, SteamId);
    As for my plugin not being released publicly it's simply because it has no single focus but instead is a mixture of commands that I find useful but don't exist in other plugins. I also have a web service set up, which the plugin posts data to and that wont work out of the box for anyone else. I'd have to make some of the functionality more dynamic to make it public
     
  7. I have erase
    Code:
    string Msg(string msg, string SteamId = null) => lang.GetMessage(msg, this, SteamId);
    
    Thanks for all