Raised This Month: $32 Target: $400
 8% 

[ZR & Normal] - Get winners list


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Plugin ID:
6322
Plugin Version:
2.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Command to print a log list with every alive human from the last round played
    Old 10-31-2018 , 22:52   [ZR & Normal] - Get winners list
    Reply With Quote #1

    Winners list


    Description

    This plugin prints every alive human (if you use the ZombieReloaded version), or every alive player (if you use the normal version) from the last round played in a log file, this is useful for events maybe because you can find everything in there. What round are you playing (number of the round), what map, who typed the command? and a big list with names and steam id from every alive human/player from the last round played.


    CVars

    sm_winners_enable 1/0:
    This will enable/disable the plugin. If you put 0, no admins will be able to write the admin command to print the log file.


    Admin commands

    sm_winners / !winners:
    If an admin use this command (with ADMFLAG_GENERIC as default), it will print the log from every alive humans/players from the last round played. (Only people who have access to the FTP will be able to read the logs - located in addons/sourcemod/logs/events
    WARNING! Use the command after round end, when a new round begins
    -


    Installation

    First, just download the version that you want to install in your server, there're 2 versions of this plugin. The first one is for a normal server or whatever because it'll print a list with every player who survived in the last round played. The second one is for a zombiereloaded server because it'll print a list too but with every alive human from the last round played aswell.
    After you have choose your plugin, just drop every folders/files in addons/sourcemod (DROP AND UPLOAD THE logs/events FOLDERS TOO!!)


    How the log looks?

    It was tested with bots, so you will see 2 bots under this because they have survived in the round 5.


    PHP Code:
    L 10/31/2018 14:18:30: [EventWinners.smx] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mapde_dust2 Round 4 Log printed by nano ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    L 10/31/2018 14:18:30: [EventWinners.smxnano                                     STEAM_0:0:68863967      
    L 10
    /31/2018 14:19:15: [EventWinners.smx] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mapde_dust2 Round 5 Log printed by nano ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    L 10/31/2018 14:19:15: [EventWinners.smxnano                                     STEAM_0:0:68863967      
    L 10
    /31/2018 14:19:15: [EventWinners.smxAdrian                                   BOT                     
    L 10
    /31/2018 14:19:15: [EventWinners.smxMark                                     BOT 


    DOWNLOAD VIA GITHUB

    Main page

    Direct download

    Last edited by NanoC; 12-08-2018 at 16:26.
    NanoC is offline
    Send a message via Skype™ to NanoC
    skyler.b
    AlliedModders Donor
    Join Date: Dec 2017
    Location: israel
    Old 11-01-2018 , 02:10   Re: [ZR & Normal] - [CS:GO/CS:S] Get winners list
    Reply With Quote #2

    nice plugin nano
    __________________
    Taking private requests

    part of the gurney is the end.
    skyler.b is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 11-01-2018 , 09:53   Re: [ZR & Normal] - Get winners list
    Reply With Quote #3

    thanks❤
    NanoC is offline
    Send a message via Skype™ to NanoC
    Papero
    Veteran Member
    Join Date: Aug 2016
    Location: Italy
    Old 11-01-2018 , 10:07   Re: [ZR & Normal] - Get winners list
    Reply With Quote #4

    Instead of Formatting the string like this:
    PHP Code:
    LogToFile(g_sPath"%40N %24s"isPlayerAuth); 
    I would have done something like:
    PHP Code:
    LogToFile(g_sPath"%L"i); 
    See: https://wiki.alliedmods.net/Format_C...mat_Specifiers

    Also as I've stated in the Discord as well you shouldn't use GetTeamScore(2)+GetTeamScore(3) since that wouldn't count the draw rounds, I can suggest to declare a global var that is increased on the round start, and set to 0 on the map start
    __________________
    My Plugins
    SPCode


    Steam: hexer504
    Telegram: Hexah
    Discord: Hexah#6903

    If you like my work you can donate here!

    Last edited by Papero; 11-01-2018 at 10:07.
    Papero is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 11-01-2018 , 10:21   Re: [ZR & Normal] - Get winners list
    Reply With Quote #5

    Quote:
    Originally Posted by Papero View Post
    Also as I've stated in the Discord as well you shouldn't use GetTeamScore(2)+GetTeamScore(3) since that wouldn't count the draw rounds, I can suggest to declare a global var that is increased on the round start, and set to 0 on the map start
    I've edited the whole plugin, that's why it's the 2nd version of it. The logs wont be printed at the end of the round automatically anymore, that's why admins must type !winners to print the log list

    Last edited by NanoC; 11-01-2018 at 10:21.
    NanoC is offline
    Send a message via Skype™ to NanoC
    Papero
    Veteran Member
    Join Date: Aug 2016
    Location: Italy
    Old 11-01-2018 , 10:23   Re: [ZR & Normal] - Get winners list
    Reply With Quote #6

    Quote:
    Originally Posted by NanoC View Post
    I've edited the whole plugin, that's why it's the 2nd version of it. The logs wont be printed at the end of the round automatically anymore, that's why admins must type !winners to print the log list
    In the line 74 you are getting the round count wrongly, in my opinion
    __________________
    My Plugins
    SPCode


    Steam: hexer504
    Telegram: Hexah
    Discord: Hexah#6903

    If you like my work you can donate here!
    Papero is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 12-08-2018 , 16:48   Re: [ZR & Normal] - Get winners list
    Reply With Quote #7

    GitHub repo created. You can now download it from there
    __________________
    NanoC is offline
    Send a message via Skype™ to NanoC
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:10.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode