AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSGO] plugin that run specified commands at round end (https://forums.alliedmods.net/showthread.php?t=239883)

PresidentEvil 05-05-2014 01:31

[CSGO] plugin that run specified commands at round end
 
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

Oshizu 05-05-2014 11:13

Re: [CSGO] plugin that run specified commands at round end
 
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

PresidentEvil 05-08-2014 16:38

Re: [CSGO] plugin that run specified commands at round end
 
bless you


All times are GMT -4. The time now is 04:57.

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