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

Simple Restart Round


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nightcs
New Member
Join Date: Jan 2015
Location: Sao Paulo - SP
Plugin ID:
4642
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simple plugins to resume very useful starting to mix
    Old 05-20-2015 , 18:03   Simple Restart Round
    Reply With Quote #1

    This plugins and simple and very useful for mix servers to restart the match

    command: !rr

    no need to add any cvar

    To install:
    Click on the "Get Plugin" button below and download the .smx to addons/sourcemod/plugins/
    Click on the "Get Source" button below and download the .sp to addons/sourcemod/scripting/
    Attached Files
    File Type: sp Get Plugin or Get Source (rr.sp - 4472 views - 355 Bytes)
    File Type: smx rr.smx (3.5 KB, 1363 views)

    Last edited by Nightcs; 05-24-2015 at 07:44.
    Nightcs is offline
    SaBaToN
    BANNED
    Join Date: Dec 2013
    Old 05-21-2015 , 06:03   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #2

    #include <sourcemod>

    public Plugin:myinfo =
    {
    name = "[CSGO] Restart Round",
    author = "NiGhT_CSGO & Edited By SaBaToN",
    description = "Restart Round",
    version = "1.0"
    }

    public OnPluginStart()
    {
    RegAdminCmd("sm_rr", Command_rr, ADMFLAG_KICK, "Restarting one Match.")
    }


    public Action:Command_rr(client, args)
    {
    if (args < 1)
    {
    new String:AdminName[64];
    GetClientName(client, AdminName, sizeof(AdminName));
    ServerCommand("mp_restartgame 1");
    PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x041 \x01second", AdminName);
    return Plugin_Handled;
    }

    new String:RRTime[32];
    new String:AdminName[64];
    GetCmdArgString(RRTime, sizeof(RRTime));
    GetClientName(client, AdminName, sizeof(AdminName));
    ServerCommand("mp_restartgame %s", RRTime);
    PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x04%s \x01seconds", AdminName, RRTime);

    return Plugin_Handled;
    }

    Last edited by SaBaToN; 06-09-2015 at 11:57.
    SaBaToN is offline
    Send a message via Skype™ to SaBaToN
    Nightcs
    New Member
    Join Date: Jan 2015
    Location: Sao Paulo - SP
    Old 05-21-2015 , 15:08   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #3

    the plugins your sabaton not worked
    Nightcs is offline
    SaBaToN
    BANNED
    Join Date: Dec 2013
    Old 05-21-2015 , 17:48   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #4

    man i tested this in my server & its work
    SaBaToN is offline
    Send a message via Skype™ to SaBaToN
    shanapu
    Veteran Member
    Join Date: Apr 2015
    Location: .de
    Old 05-21-2015 , 19:50   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #5

    Quote:
    Originally Posted by Nightcs View Post
    the plugins your sabaton not worked
    Quote:
    Originally Posted by SaBaToN View Post
    man i tested this in my server & its work
    have tested it out of curiosity...
    ... is true, doesnt work. Doesnt restart, no timer... just show who did rr whitout sec.

    EDIT: should read the code next time before "testing"
    it doesnt work like Nightcs version (command: !rr)
    BUT
    Work with Command and value! !rr 5 restart in 5sec...
    __________________
    coding & free software

    Last edited by shanapu; 05-21-2015 at 19:58.
    shanapu is offline
    SaBaToN
    BANNED
    Join Date: Dec 2013
    Old 06-02-2015 , 07:49   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #6

    Quote:
    Originally Posted by shanapu View Post
    have tested it out of curiosity...
    ... is true, doesnt work. Doesnt restart, no timer... just show who did rr whitout sec.

    EDIT: should read the code next time before "testing"
    it doesnt work like Nightcs version (command: !rr)
    BUT
    Work with Command and value! !rr 5 restart in 5sec...
    ohhh thx you fixed
    SaBaToN is offline
    Send a message via Skype™ to SaBaToN
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 06-02-2015 , 08:01   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #7

    Quote:
    Originally Posted by SaBaToN View Post
    Code:
    #include <sourcemod>
    
    public Plugin:myinfo = 
    {
    	name = "[CSGO] Restart Round",
    	author = "NiGhT_CSGO & Edited By SaBaToN",
    	description = "Restart Round",
    	version = "1.0"
    }
    
    public OnPluginStart()
    {
    	RegAdminCmd("sm_rr", Command_rr, ADMFLAG_KICK, "Restarting one Match.")
    	RegAdminCmd("sm_rr", RR, ADMFLAG_KICK, "Restarting one Match.")
    }
    
    
    public Action:Command_rr(client, args)
    {
    	new String:RRTime[32];
    	new String:AdminName[64];
    	GetCmdArgString(RRTime, sizeof(RRTime)); 
    	GetClientName(client, AdminName, sizeof(AdminName));		
    	ServerCommand("mp_restartgame %s", RRTime);
    	PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x04%s \x01seconds", AdminName, RRTime);
    	
    	return Plugin_Handled;
    }
    
    public Action:RR(client, args)
    {
    	new String:AdminName[64];
    	GetClientName(client, AdminName, sizeof(AdminName));		
    	ServerCommand("mp_restartgame 1");
    	PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x041 \x01second", AdminName);
    }
    I improved your plugin
    now the plugin print a message who did the rr and the seconds
    now all the admins can do this command and not only root

    sorry for my bad english
    We're using the new SourcePawn syntax already, use it.

    Why do you trash his thread by remaking his plugin? (+your remake didn't even work)

    About your remake - why do you use ServerCommand when mp_restartgame is actually a cvar?
    And, there's a whole native (Yes! A whole native just for this purpose) that shows admin activity.
    Amazing scripting skills you have there buddy, it pretty much proves that you didn't create the plugin we've talked about like.. a month ago(?) and that you banned me from your horrible community for proving it.
    By the way, ADMFLAG_KICK for a cvar change. wow. You literally copy pasted this part out of another plugin, you're supposed to return Plugin_Handled at the second command (which wasn't even necessary..) to prevent a console "unknown command" error, oh wait you've registered two commands under the same function, unnecessary.
    __________________
    retired

    Last edited by shavit; 06-02-2015 at 08:06.
    shavit is offline
    SaBaToN
    BANNED
    Join Date: Dec 2013
    Old 06-09-2015 , 11:47   Re: [CSS/CSGO] Simple Restart Round
    Reply With Quote #8

    Quote:
    Originally Posted by shavit View Post
    We're using the new SourcePawn syntax already, use it.

    Why do you trash his thread by remaking his plugin? (+your remake didn't even work)

    About your remake - why do you use ServerCommand when mp_restartgame is actually a cvar?
    And, there's a whole native (Yes! A whole native just for this purpose) that shows admin activity.
    Amazing scripting skills you have there buddy, it pretty much proves that you didn't create the plugin we've talked about like.. a month ago(?) and that you banned me from your horrible community for proving it.
    By the way, ADMFLAG_KICK for a cvar change. wow. You literally copy pasted this part out of another plugin, you're supposed to return Plugin_Handled at the second command (which wasn't even necessary..) to prevent a console "unknown command" error, oh wait you've registered two commands under the same function, unnecessary.
    I'm very sorry it was not me I account so the person who wrote this code written nonsense let me fix it

    Code:
    #include <sourcemod>
    
    public Plugin:myinfo = 
    {
    	name = "[CSGO] Restart Round",
    	author = "NiGhT_CSGO & Edited By SaBaToN",
    	description = "Restart Round",
    	version = "1.0"
    }
    
    public OnPluginStart()
    {
    	RegAdminCmd("sm_rr", Command_rr, ADMFLAG_KICK, "Restarting one Match.")
    }
    
    
    public Action:Command_rr(client, args)
    {
    	if (args < 1)
    	{
    		new String:AdminName[64];
    		GetClientName(client, AdminName, sizeof(AdminName));	
    		ServerCommand("mp_restartgame 1");
    		PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x041 \x01second", AdminName);
    		return Plugin_Handled;
    	}
    	
    	new String:RRTime[32];
    	new String:AdminName[64];
    	GetCmdArgString(RRTime, sizeof(RRTime)); 
    	GetClientName(client, AdminName, sizeof(AdminName));		
    	ServerCommand("mp_restartgame %s", RRTime);
    	PrintToChatAll("\x01[\x05SM\x01] \x04%s \x01proceed restart game in \x04%s \x01seconds", AdminName, RRTime);
    	
    	return Plugin_Handled;
    }
    SaBaToN is offline
    Send a message via Skype™ to SaBaToN
    thekuzu
    Junior Member
    Join Date: Aug 2016
    Old 09-09-2016 , 17:47   Re: Simple Restart Round
    Reply With Quote #9

    plugin.sp(33) : error 030: compound statement not closed at the end of file (started at line 19)

    1 Error.
    thekuzu 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 07:01.


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