Raised This Month: $51 Target: $400
 12% 

[CS:GO] Sm_Scores


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Markiez
Junior Member
Join Date: Mar 2018
Location: somewhere over the rainb
Plugin ID:
6118
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This is a plugin that let's players get a look at how many rounds in total they've played through out the game. Also sends a message in the chat for whenever a team wins a round (aswell as the scores to see who's leading).
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 05-02-2018 , 12:34   [CS:GO] Sm_Scores
    Reply With Quote #1

    Sm_Scores
    Hi!
    So I was recently searching around for a similar plugin, but couldn't just find anything that satisfied me enough. Sure, there were a lot of good plugins that I could use, however I thought that it isn't that hard to make it yourself, so I did it. And here I am today, still using this plugin on my own servers and it works great! (In my eyes).

    Please, do not let the simplicity of this script get judget, I made it to fill up my needs, also I thought about posting it here if anyone had the similar needs as me . Enjoy the release, didn't correct my grammar or spelling, so my English might be broken I think lol.
    • Get a girl's heart, don't know how tho lol, wish me good luck.
    • Finnish school.
    • Get into another school and finnish education.
    • Become a billionaire.

    "Bill Gates ain't got shit on me"

    Last edited by Markiez; 05-05-2018 at 08:20.
    Markiez is offline
    Drumanid
    Junior Member
    Join Date: Mar 2017
    Location: Russia
    Old 05-05-2018 , 00:03   Re: [CS:GO] Sm_Scores
    Reply With Quote #2

    Help you
    PHP Code:
    #include <cstrike>

    char g_sInfo[128];

    public 
    void OnPluginStart()
    {
        
    RegConsoleCmd("sm_rounds"RoundsCmd);
        
    HookEvent("round_end"RoundEnd);
    }

    public 
    Action RoundsCmd(int iClientint iArgs)
    {
        if(
    iClientPrintToChat(iClient" » You're \x07%d \x01rounds in to the game!"CS_GetTeamScore(CS_TEAM_T) + CS_GetTeamScore(CS_TEAM_CT));
        return 
    Plugin_Handled;
    }

    public 
    void RoundEnd(Event event, const char[] namebool dbc)
    {
        switch(
    event.GetInt("winner"))
        {
            case 
    CS_TEAM_TFormatEx(g_sInfosizeof(g_sInfo), " » \x07Terrorists \x01has won the last round. %d - %d"CS_GetTeamScore(CS_TEAM_T), CS_GetTeamScore(CS_TEAM_CT));
            case 
    CS_TEAM_CTFormatEx(g_sInfosizeof(g_sInfo), " » \x0BCounter-Terrorists \x01has won the last round. %d - %d."CS_GetTeamScore(CS_TEAM_CT), CS_GetTeamScore(CS_TEAM_T));
        }
        
        
    CreateTimer(8.0TimerWinner_TIMER_FLAG_NO_MAPCHANGE);
    }

    public 
    Action TimerWinner(Handle hTimer)
    {
        
    PrintToChatAll(g_sInfo);
        return 
    Plugin_Stop;


    Last edited by Drumanid; 05-05-2018 at 00:06.
    Drumanid 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 00:16.


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