Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- public Plugin:myinfo =
- {
- name = "rehn's Simple Server Cmds",
- author = "rehn",
- description = "Simple chat commands for my csgo server",
- version = "1.0",
- url = "www.mheese.com"
- }
- public OnPluginStart()
- {
- RegConsoleCmd("sm_pause", PauseRound);
- RegConsoleCmd("sm_unpause", UnpauseRound);
- RegAdminCmd("sm_rr", RestartGame, ADMFLAG_GENERIC);
- RegAdminCmd("sm_prac", ExecPrac, ADMFLAG_GENERIC);
- RegAdminCmd("sm_5on5", Exec5on5, ADMFLAG_GENERIC);
- RegAdminCmd("sm_botdm", ExecBotdm, ADMFLAG_GENERIC);
- RegAdminCmd("sm_lo3", LiveOn3, ADMFLAG_GENERIC);
- RegAdminCmd("sm_knife", KnifeRound, ADMFLAG_GENERIC);
- }
- public Action:PauseRound(client, args)
- {
- ServerCommand("mp_pause_match");
- ServerCommand("say Match will be paused at freezetime");
- }
- public Action:UnpauseRound(client, args)
- {
- ServerCommand("mp_unpause_match");
- ServerCommand("say Match is unpaused");
- }
- public Action:RestartGame(client, args)
- {
- ServerCommand("mp_restartgame 1");
- ServerCommand("say Restarting...");
- }
- public Action:ExecPrac(client, args)
- {
- ServerCommand("exec train.cfg");
- }
- public Action:Exec5on5(client, args)
- {
- ServerCommand("exec esl5on5.cfg");
- ServerCommand("say Type !lo3 when ready")
- }
- public Action:ExecBotdm(client, args)
- {
- ServerCommand("exec botdm.cfg");
- }
- public Action:LiveOn3(client, args)
- {
- ServerCommand("mp_unpause_match");
- ServerCommand("mp_restartgame 1");
- CreateTimer(1.0, Lo32);
- }
- public Action:Lo32(Handle timer)
- {
- ServerCommand("mp_restartgame 1");
- CreateTimer(1.0, Lo33);
- }
- public Action:Lo33(Handle timer)
- {
- ServerCommand("mp_restartgame 3");
- CreateTimer(3.5, Lo3T);
- }
- public Action:Lo3T(Handle timer)
- {
- ServerCommand("say --[Live]----")
- ServerCommand("say ---[Live]---")
- ServerCommand("say ----[Live]--")
- ServerCommand("say -----[Live]-")
- ServerCommand("say ------[Live]")
- ServerCommand("say -------[Live")
- ServerCommand("say --------[Liv")
- ServerCommand("say ---------[Li")
- ServerCommand("say ----------[L")
- ServerCommand("say -----------[")
- ServerCommand("say ]-----------")
- ServerCommand("say e]----------")
- ServerCommand("say ve]---------")
- ServerCommand("say ive]--------")
- ServerCommand("say Live]-------")
- ServerCommand("say [Live]------")
- ServerCommand("say -[Live]-----")
- ServerCommand("say --[Live]----")
- ServerCommand("say ---[Live]---")
- }
- public Action:KnifeRound(client, args)
- {
- ServerCommand("exec knife.cfg")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement