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

[CS:GO/CSS] AbNeR ResetScore *UPDATED V1.5.1* 01/08/2023


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AbNeR_CSS
Senior Member
Join Date: Jun 2010
Location: São Paulo - Brazil
Plugin ID:
3464
Plugin Version:
1.5.1
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
    66 
    Plugin Description:
    A new plugin for reset your score with new features.
    Old 01-11-2013 , 05:27   [CS:GO/CSS] AbNeR ResetScore *UPDATED V1.5.1* 01/08/2023
    Reply With Quote #1

    Plugin to reset your score in CSS/CS:GO with many funny features.

    Cvars

    Edit this in abner_resetscore.cfg that will
    automatically created in [cfg/sourcemod/] after the first run, if you have installed an older version delete your abner_resetscore.cfg and reload the plugin or change the map.

    sm_resetscore 1/0 - Enable or disable the plugin
    sm_resetscore_public 1/0 - Enable or disable public messages when player reset.
    sm_resetscore_savescores 1/0 - Save scores when players retry.
    sm_resetscore_cost "amount" - If you want charge money by reset, 0 to disable.

    Player Commands

    !rs or !resetscore:
    Reset your score (/rs and /resetscore works too).

    Admin Fun Commands


    sm_setscore <name or #userid> <Kills> <Deaths><Stars>: Set a custom score to a player (CSS)
    sm_setscore <name or #userid> <Kills> <Deaths><Assists><Stars><Points>: S
    et a custom score to a player (CSGO)
    sm_resetplayer
    <name or #userid>: Resetscore of a player.
    sm_setpoints<name or #userid><points>: Set a custom number of points to a player. (CSGO)
    sm_setstars
    <name or #userid><stars>: Set a custom number of MVP stars to a player.
    sm_setassists<name or #userid><assists>: Set a custom number of assists to a player (CS:GO).

    Old releases stats:
    AbNeR_ResetScore_V1.4 -
    (5183 views)
    AbNeR_ResetScore_v1.5 - (1364 views)
    AbNeR_ResetScore_v1.5.zip (15086 views)

    Source Code / Support / Suggestions
    Direct Download
    __________________
    It's faster to find me in GitHub, open an Issue: https://github.com/abnerfs?utf8=%E2%...age=sourcepawn

    Last edited by AbNeR_CSS; 01-08-2023 at 16:16. Reason: *UPDATED V1.5.1* 01/08/2023
    AbNeR_CSS is offline
    krispx
    Senior Member
    Join Date: Jul 2010
    Old 01-11-2013 , 05:32   Re: [CS:GO/CSS] AbNeR ResetScore
    Reply With Quote #2

    Hi, this plugins reset MVP and assists for csgo ?
    krispx is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-11-2013 , 05:46   Re: [CS:GO/CSS] AbNeR ResetScore
    Reply With Quote #3

    Looks useful.

    Your indentation, though, is...well...all over the place. Dunno how else to describe it.
    PHP Code:
    public Action:CommandResetScore(idargs)
    {                        
                    
    decl String:theFolder[40];
                    
    GetGameFolderName(theFoldersizeof(theFolder)); 
    That's a lot of spacing you've got, there.
    PHP Code:
    new target FindTarget(clientarg1);
        if (
    target == -1)
        {
              
    PrintToChat(client"\x01[ResetScore] Invalid Player."); 
                  return 
    Plugin_Handled;
        }

            if (!
    IsClientInGame(target))
            {
                  
    PrintToChat(client"\x01[ResetScore] Invalid Player.");   
                  return 
    Plugin_Handled;
            } 
    A few indentation inconsistencies there.

    If you're using Notepad++, hit TextFX in the menu bar -> TextFX Edit -> Reindent C++ code, and it'll all be neatened up for you.

    Also, in the CommandResetPlayer command, you ought to steal a ProcessTargetString snippet from another plugin (like fire.sp in funcommands, for instance) and use that instead of FindTarget. That way you can also avoid using GetClientName, and instead use a target_name variable which it fills out. Also, ShowActivity2 instead of PrintToChatAll is preferred, especially for servers with admin names hidden or activity messages disabled.

    One "gameplay"-related thing I'd like to point out: if players can just die without getting any kills, then reset their deaths (from 0:1 to 0:0) isn't that...bad?
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    AbNeR_CSS
    Senior Member
    Join Date: Jun 2010
    Location: São Paulo - Brazil
    Old 01-11-2013 , 06:22   Re: [CS:GO/CSS] AbNeR ResetScore
    Reply With Quote #4

    Quote:
    Originally Posted by krispx View Post
    Hi, this plugins reset MVP and assists for csgo ?
    No, i will try to make this

    Quote:
    Originally Posted by MasterOfTheXP View Post
    Looks useful.

    Your indentation, though, is...well...all over the place. Dunno how else to describe it.
    PHP Code:
    public Action:CommandResetScore(idargs)
    {                        
                    
    decl String:theFolder[40];
                    
    GetGameFolderName(theFoldersizeof(theFolder)); 
    That's a lot of spacing you've got, there.
    PHP Code:
    new target FindTarget(clientarg1);
        if (
    target == -1)
        {
              
    PrintToChat(client"\x01[ResetScore] Invalid Player."); 
                  return 
    Plugin_Handled;
        }

            if (!
    IsClientInGame(target))
            {
                  
    PrintToChat(client"\x01[ResetScore] Invalid Player.");   
                  return 
    Plugin_Handled;
            } 
    A few indentation inconsistencies there.

    If you're using Notepad++, hit TextFX in the menu bar -> TextFX Edit -> Reindent C++ code, and it'll all be neatened up for you.

    Also, in the CommandResetPlayer command, you ought to steal a ProcessTargetString snippet from another plugin (like fire.sp in funcommands, for instance) and use that instead of FindTarget. That way you can also avoid using GetClientName, and instead use a target_name variable which it fills out. Also, ShowActivity2 instead of PrintToChatAll is preferred, especially for servers with admin names hidden or activity messages disabled.

    One "gameplay"-related thing I'd like to point out: if players can just die without getting any kills, then reset their deaths (from 0:1 to 0:0) isn't that...bad?
    I didn´t make the plugin in the notepad++, i made in the normal notepad, tks for the tips, I'll rearrange the structure of the plugin and release a version 1.1
    AbNeR_CSS is offline
    AbNeR_CSS
    Senior Member
    Join Date: Jun 2010
    Location: São Paulo - Brazil
    Old 01-11-2013 , 10:26   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #5

    Code:
    Updated V1.1
    -Added sm_setstars command
    -Added sm_setassists command (Only for CS:GO)
    -ResetScore now resets MVP Stars (CSS/CS:GO) and Assists (CS:GO)
    AbNeR_CSS is offline
    away000
    Veteran Member
    Join Date: Sep 2010
    Old 01-11-2013 , 17:01   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #6

    Can u make it to save scores too? with a cvar to set for permanent save, map save or disable?
    __________________
    away000 is offline
    PsyGaming
    SourceMod Donor
    Join Date: Sep 2012
    Location: Germany
    Old 01-15-2013 , 20:15   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #7

    Hi,

    look at the screenshot please. The user "Hunterstick" had the best scores at CT and reseted his score, but he is then not at the bottom of the CTs. Can you fix this? Otherwise the complete scoreboard is weird, because he should be moved to the bottom of the CT list.

    __________________
    http://www.psy-gaming.de

    Psy-Gaming.de - CS:GO Server Community
    We have more than +30 Publicserver running!


    PsyGaming is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 01-22-2013 , 04:10   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #8

    For CS:GO, if you're using SourceMod 1.5.0-hg3706 or above, cstrike.inc has CS_SetClientContributionScore, which can reset that last Score column to 0.
    __________________
    Sheepdude is offline
    away000
    Veteran Member
    Join Date: Sep 2010
    Old 01-22-2013 , 08:40   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #9

    Quote:
    Originally Posted by away000 View Post
    Can u make it to save scores too? with a cvar to set for permanent save, map save or disable?
    Can u make these things?
    __________________
    away000 is offline
    AbNeR_CSS
    Senior Member
    Join Date: Jun 2010
    Location: São Paulo - Brazil
    Old 01-26-2013 , 05:13   Re: [CS:GO/CSS] AbNeR ResetScore *Updated V1.1*
    Reply With Quote #10

    Quote:
    Originally Posted by PsyGaming View Post
    Hi,

    look at the screenshot please. The user "Hunterstick" had the best scores at CT and reseted his score, but he is then not at the bottom of the CTs. Can you fix this? Otherwise the complete scoreboard is weird, because he should be moved to the bottom of the CT list.

    Tkx for the bug report i will update do V1.2 soon

    Quote:
    Originally Posted by Sheepdude View Post
    For CS:GO, if you're using SourceMod 1.5.0-hg3706 or above, cstrike.inc has CS_SetClientContributionScore, which can reset that last Score column to 0.
    Tkx for the help i will update do V1.2 soon
    AbNeR_CSS is offline
    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 22:30.


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