-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMWorkShop.inc
54 lines (48 loc) · 2.06 KB
/
MWorkShop.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Include File generated by Pawn Studio */
#if defined _MWORKSHOP_INC
#endinput
#endif
#define _MWORKSHOP_INC
#include <sourcemod>
#include <tf2>
#include <tf2_stocks>
/*--------------------------------------------------------------------------------
/ Globals
/-------------------------------------------------------------------------------*/
#define PLUGIN_VERSION "0.0.2"
const INFO_MAXLEN = 2; //For places where info isn't used
const SPAWN_NAME_MAXLEN = 33;
const MENUITEM_NAME_MAXLEN = 40;
const MAP_MAXLEN = 100;
const PATH_MAXLEN = 10000;
const ISTRING_MAXLEN = 5; //0-9999
/*--------------------------------------------------------------------------------
/ Handles
/-------------------------------------------------------------------------------*/
new Handle:mws_l1_startuberlevel = INVALID_HANDLE;
/*--------------------------------------------------------------------------------
/ Plugin
/-------------------------------------------------------------------------------*/
public Plugin:myinfo =
{
name = "Mano's Workshop",
author = "Lord Max & Antithasys & Manos",
description = "Competative WorkShop with InstantUber.",
version = PLUGIN_VERSION,
url = "http://www.alliedmods.net"
}
public OnPluginStart()
{
CreateConVar("mws_version", PLUGIN_VERSION, "Mano's WorkShop", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD);
mws_l1_startuberlevel = CreateConVar("mws_l1_startuberlevel", "1.0", "Lab 1: Uber level to give medics on spawn", _, true, 0.0, true, 1.0);
RegAdminCmd("mws_menu", Command_mws_menu, ADMFLAG_GENERIC, "MWS Menu for Admins");
RegAdminCmd("mws_spawn_save", Command_mws_spawn_save, ADMFLAG_GENERIC, "Save Custom Spawns");
AutoExecConfig(true, "MWorkShop");
}
/*--------------------------------------------------------------------------------
/ Helper Functions
/-------------------------------------------------------------------------------*/
stock LoadMainMenu(const client);
stock SetWinner(winningteam, victory);
stock RestartRound();
stock MWSSetState(const bool:new_state);