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

Knife Round - Pro Public


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Plugin ID:
8401
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-05-2023 , 12:17   Knife Round - Pro Public
    Reply With Quote #1

    After the warmup, a round of knife rounds is played. The winning team is voted on which team they will start with by CT - T voting. After the voting is over, the players are transferred to the selected team and the game is restarted.
    Attached Files
    File Type: smx Knife_Round.smx (6.1 KB, 108 views)
    File Type: sp Get Plugin or Get Source (Knife_Round.sp - 218 views - 7.5 KB)
    __________________
    Swolly is offline
    r14170
    Veteran Member
    Join Date: Dec 2009
    Old 03-05-2023 , 20:20   Re: Knife Round - Pro Public
    Reply With Quote #2

    Hey!

    Very nice plugin, Ive been searching for something similar.

    Is there a way to make the winning team start as Terrorist always?

    Thanks!
    r14170 is offline
    foxsay
    AlliedModders Donor
    Join Date: Sep 2013
    Old 03-18-2023 , 08:38   Re: Knife Round - Pro Public
    Reply With Quote #3

    please add translation support / spam same msg at the start like for 5 times and add a color also this plugin assigns team for GOTV please exclude that
    __________________
    poggers

    Last edited by foxsay; 03-18-2023 at 10:57.
    foxsay is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 03-18-2023 , 16:14   Knife Round 1.1.0
    Reply With Quote #4

    Changes 1.1.0:
    • The code is entirely in the new syntax.
    • Fixed a memory leak due to the menu.
    • Added support for translating messages and menus.
    • Fixed plugin operation on not cs_* and not de_* maps (including maps from the Workshop).
    • Fixed disarming (mostly needed fixing for grenades).
    • Minor code optimization.
    PHP Code:
    //// Knife_Round 1.0.0.sp
    //
    // Code size:         8392 bytes
    // Data size:         3240 bytes
    // Stack/heap size:      16740 bytes
    // Total requirements:   28372 bytes
    //
    // Compilation Time: 0,3 sec
    // ----------------------------------------

    //// csgo_knife_round 1.1.0.sp
    //
    // Code size:         8524 bytes
    // Data size:         2984 bytes
    // Stack/heap size:      16724 bytes
    // Total requirements:   28232 bytes
    //
    // Compilation Time: 0,22 sec
    // ---------------------------------------- 
    Attached Files
    File Type: txt csgo_knife_round.phrases.txt (1.2 KB, 54 views)
    File Type: sp Get Plugin or Get Source (csgo_knife_round 1.1.0.sp - 103 views - 4.9 KB)
    __________________

    Last edited by Grey83; 03-19-2023 at 00:02. Reason: fixed translation of voting options
    Grey83 is offline
    foxsay
    AlliedModders Donor
    Join Date: Sep 2013
    Old 03-18-2023 , 17:03   Re: Knife Round 1.1.0
    Reply With Quote #5

    Quote:
    Originally Posted by Grey83 View Post
    Changes 1.1.0:
    • The code is entirely in the new syntax.
    • Fixed a memory leak due to the menu.
    • Added support for translating messages and menus.
    • Fixed plugin operation on not cs_* and not de_* maps (including maps from the Workshop).
    • Fixed disarming (mostly needed fixing for grenades).
    • Minor code optimization.
    PHP Code:
    //// Knife_Round 1.0.0.sp
    //
    // Code size:         8392 bytes
    // Data size:         3240 bytes
    // Stack/heap size:      16740 bytes
    // Total requirements:   28372 bytes
    //
    // Compilation Time: 0,3 sec
    // ----------------------------------------

    //// csgo_knife_round 1.1.0.sp
    //
    // Code size:         8524 bytes
    // Data size:         2984 bytes
    // Stack/heap size:      16724 bytes
    // Total requirements:   28232 bytes
    //
    // Compilation Time: 0,22 sec
    // ---------------------------------------- 
    Thank you again! For optimizing a new plugin release here on am forums: ). I added Latvian translations:
    HTML Code:
    "Phrases"
    {
    	"RoundStart_Hint"
    	{
    		"en"	"The knife round has begun. The winners determine their team!"
    		"lv"	"Nažu raunds ir sācies! Uzvarētāji varēs izvēlēties komandu kurā spēlēt!"
    		"ru"	"Ножевой раунд начался. Победители определяют свою команду!"
    	}
    	"RoundStart_Chat"
    	{
    		"en"	"The knife round has begun. The winners determine their team!"
    		"lv"	"Nažu raunds ir sācies! Uzvarētāji varēs izvēlēties komandu kurā spēlēt!"
    		"ru"	"Ножевой раунд начался. Победители определяют свою команду!"
    	}
    
    	"RoundEnd_Hint"
    	{
    		"en"	"The winners choose the team!"
    		"lv"	"Uzvarētāji tagad izvēlēsies komandu kurā spēlēt!"
    		"ru"	"Победители выбирают команду!"
    	}
    	"RoundEnd_Chat"
    	{
    		"en"	"The winners choose the team!"
    		"lv"	"Uzvarētāji tagad izvēlēsies komandu kurā spēlēt!"
    		"ru"	"Победители выбирают команду!"
    	}
    
    	"VoteMenu_Title"
    	{
    		"en"	"! CHOOSE THE TEAM YOU WANT TO START !"
    		"lv"	"! IZVĒLIES KOMANDU KURĀ VĒLIES SPĒLĒT !"
    		"ru"	"Голосуй за какую команду хочешь играть"
    	}
    	"VoteMenu_CT"
    	{
    		"en"	"Counter-Terrorists"
    		"lv"	"Counter-Terrorists"
    		"ru"	"Спецназ"
    	}
    	"VoteMenu_T"
    	{
    		"en"	"Terrorists"
    		"lv"	"Terrorists"
    		"ru"	"Террористы"
    	}
    
    	"TeamChoosed"
    	{
    		"#format" "{1:t}"
    		"en"	"The winning team chose to play on the {1} team."
    		"lv"	"Uzvarētāju komanda izvēlējās spēlēt komandā {1}."
    		"ru"	"Победители выбрали играть за команду: {1}."
    	}
    }

    btw there is this error:

    L 03/19/2023 - 00:09:53: [SM] Call stack trace:
    L 03/19/2023 - 00:09:53: [SM] [0] FormatEx
    L 03/19/2023 - 00:09:53: [SM] [1] Line 126, /home/forums/content/files/2/5/6/7/1/3/199982.attach::Menu_Vote
    L 03/19/2023 - 00:09:53: [SM] [3] VoteMenu
    L 03/19/2023 - 00:09:53: [SM] [4] Line 105, /home/forums/content/files/2/5/6/7/1/3/199982.attach::CS_OnTerminateRound
    L 03/19/2023 - 00:09:53: [SM] Exception reported: Translation failed: invalid client index 8202 (arg 6)
    L 03/19/2023 - 00:09:53: [SM] Blaming: regularmapsonly/csgo_knife_round 1.1.0.smx
    __________________
    poggers

    Last edited by foxsay; 03-18-2023 at 18:21.
    foxsay is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 03-19-2023 , 00:04   Re: Knife Round - Pro Public
    Reply With Quote #6

    foxsay, line 126 needs fixing:
    FormatEx(buffer, sizeof(buffer), "%T%s", param2 ? "VoteMenu_T" : "VoteMenu_CT", param2 ? "\n " : "");
    ==>
    FormatEx(buffer, sizeof(buffer), "%T%s", param2 ? "VoteMenu_T" : "VoteMenu_CT", param1, param2 ? "\n " : "");

    Re-uploaded the source file in my previous post.
    __________________

    Last edited by Grey83; 03-19-2023 at 00:05.
    Grey83 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 08:06.


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