Raised This Month: $ Target: $400
 0% 

[CSGO] plugin that run specified commands at round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 05-05-2014 , 01:31   [CSGO] plugin that run specified commands at round end
Reply With Quote #1

I was wondering if there was a plugin or if someone could make one that executed predefined console commands at the end of every round

I essentially just want these commands to run at each round end:

sm_gravity @all 800
sm_unmute @all
sm_ungag @all
__________________

Last edited by PresidentEvil; 05-05-2014 at 01:32.
PresidentEvil is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 05-05-2014 , 11:13   Re: [CSGO] plugin that run specified commands at round end
Reply With Quote #2

This should do the job:
PHP Code:
public OnPluginStart()
{
    
HookEvent("round_start"RoundStartEventHookMode_Post)
    
HookEvent("round_end"RoundEndEventHookMode_Post)
}

public 
Action:RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    
ServerCommand("exec round_start.cfg");
}

public 
Action:RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
    
ServerCommand("exec round_end.cfg");

When round starts it will execute config round_start.cfg inside of cfg folder
And when round ends it will execute config round_end.cfg inside of cfg folder
__________________
...

Last edited by Oshizu; 05-05-2014 at 11:14.
Oshizu is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 05-08-2014 , 16:38   Re: [CSGO] plugin that run specified commands at round end
Reply With Quote #3

bless you
__________________
PresidentEvil is offline
Reply


Thread Tools
Display Modes

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 04:58.


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