Untitled diff

Creato Il diff non scade mai
448 rimozioni
608 linee
295 aggiunte
418 linee
#include <sourcemod>

#pragma semicolon 1
#pragma semicolon 1
#pragma newdecls required
#pragma newdecls required
#define PLUGIN_VERSION "1.0.0"
#define PLUGIN_VERSION "1.0.1"
#include <sourcemod>

bool
speedo[MAXPLAYERS]
, velocimeter[MAXPLAYERS];
Handle
SpeedOMeter
, VelociMeter;
int
g_iClientSpeedoColour[MAXPLAYERS]
, g_iClientSpeedoColourCustom[MAXPLAYERS][3]
, g_iClientVelocimeterColour[MAXPLAYERS]
, g_iClientVelocimeterColourCustom[MAXPLAYERS][3];

//SPEEDO:
enum {
SPEEDO_NORMAL
, SPEEDO_BLUE
, SPEEDO_LIGHT
, SPEEDO_DARK
, SPEEDO_GREEN
, SPEEDO_RED
, SPEEDO_CUSTOM
, SPEEDO_RAINBOW
}
//VELOCIMETER:
enum {
VELOCIMETER_NORMAL
, VELOCIMETER_BLUE
, VELOCIMETER_LIGHT
, VELOCIMETER_DARK
, VELOCIMETER_GREEN
, VELOCIMETER_RED
, VELOCIMETER_CUSTOM
, VELOCIMETER_RAINBOW
}


public Plugin myinfo = {
public Plugin myinfo = {
name = "Speedometer",
name = "Speedometer",
author = "CrancK (modified for Tempus)",
author = "CrancK (modified for Tempus)",
description = "Speedometer",
description = "Speedometer",
version = PLUGIN_VERSION,
version = PLUGIN_VERSION,
url = ""
url = ""
};
};


//Description: speedo + velocimeter

//SPEEDO:
bool speedo[MAXPLAYERS];
Handle SpeedOMeter;

int g_iClientSpeedoColour[MAXPLAYERS];
int g_iClientSpeedoColourCustom[MAXPLAYERS][3];

#define SPEEDO_NORMAL 0
#define SPEEDO_BLUE 1
#define SPEEDO_LIGHT 2
#define SPEEDO_DARK 3
#define SPEEDO_GREEN 4
#define SPEEDO_RED 5
#define SPEEDO_CUSTOM 6
#define SPEEDO_RAINBOW 7


//VELOCIMETER:
bool velocimeter[MAXPLAYERS];
Handle VelociMeter;

int g_iClientVelocimeterColour[MAXPLAYERS];
int g_iClientVelocimeterColourCustom[MAXPLAYERS][3];

#define VELOCIMETER_NORMAL 0
#define VELOCIMETER_BLUE 1
#define VELOCIMETER_LIGHT 2
#define VELOCIMETER_DARK 3
#define VELOCIMETER_GREEN 4
#define VELOCIMETER_RED 5
#define VELOCIMETER_CUSTOM 6
#define VELOCIMETER_RAINBOW 7


public void OnPluginStart()
public void OnPluginStart() {
{
CreateConVar("sm_speedo_version", PLUGIN_VERSION, "Speedometer Version", FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
CreateConVar("sm_speedo_version", PLUGIN_VERSION, "Speedometer Version", FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
RegConsoleCmd("sm_speedo", Command_Speedo);
RegConsoleCmd("sm_speedo", Command_Speedo);
RegConsoleCmd("sm_speedoblue", Speedo_Blue);
RegConsoleCmd("sm_speedoblue", Speedo_Blue);
RegConsoleCmd("sm_speedolight", Speedo_Light);
RegConsoleCmd("sm_speedolight", Speedo_Light);
RegConsoleCmd("sm_speedodark", Speedo_Dark);
RegConsoleCmd("sm_speedodark", Speedo_Dark);
RegConsoleCmd("sm_speedogreen", Speedo_Green);
RegConsoleCmd("sm_speedogreen", Speedo_Green);
RegConsoleCmd("sm_speedored", Speedo_Red);
RegConsoleCmd("sm_speedored", Speedo_Red);
RegConsoleCmd("sm_speedocustom", Speedo_Custom);
RegConsoleCmd("sm_speedocustom", Speedo_Custom);
RegConsoleCmd("sm_speedorainbow", Speedo_Rainbow);
RegConsoleCmd("sm_speedorainbow", Speedo_Rainbow);
SpeedOMeter = CreateHudSynchronizer();
SpeedOMeter = CreateHudSynchronizer();