Revert "General: Here we go once again :3"

This reverts commit d1395ffd42.
This commit is contained in:
BotoX 2018-08-07 21:39:57 +02:00
parent 6a76916b36
commit 26aea3da35

View File

@ -57,15 +57,15 @@ public void OnPluginStart()
g_Regex_RGB = CompileRegex("^(([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\\s+){2}([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$");
g_Regex_HEX = CompileRegex("^(#?)([A-Fa-f0-9]{6})$");
RegAdminCmd("sm_glowcolors", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_glowcolors <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolours", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_glowcolours <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolor", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_glowcolor <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolour", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_glowcolour <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colors", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_colors <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colours", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_colours <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_color", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_color <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colour", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_colour <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glow", Command_GlowColors, ADMFLAG_CUSTOM2, "Change your players glowcolor. sm_glow <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolors", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_glowcolors <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolours", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_glowcolours <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolor", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_glowcolor <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glowcolour", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_glowcolour <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colors", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_colors <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colours", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_colours <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_color", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_color <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_colour", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_colour <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_glow", Command_GlowColors, ADMFLAG_CUSTOM1, "Change your players glowcolor. sm_glow <RRGGBB HEX | 0-255 0-255 0-255 RGB CODE>");
RegAdminCmd("sm_rainbow", Command_Rainbow, ADMFLAG_CUSTOM1, "Enable rainbow glowcolors. sm_rainbow [frequency]");
@ -172,7 +172,7 @@ public void OnClientPostAdminCheck(int client)
void ReadClientCookies(int client)
{
char sCookie[16];
if(CheckCommandAccess(client, "sm_glowcolors", ADMFLAG_CUSTOM2))
if(CheckCommandAccess(client, "sm_glowcolors", ADMFLAG_CUSTOM1))
GetClientCookie(client, g_hClientCookie, sCookie, sizeof(sCookie));
if(StrEqual(sCookie, ""))
@ -187,7 +187,7 @@ void ReadClientCookies(int client)
public void OnClientDisconnect(int client)
{
if(CheckCommandAccess(client, "sm_glowcolors", ADMFLAG_CUSTOM2))
if(CheckCommandAccess(client, "sm_glowcolors", ADMFLAG_CUSTOM1))
{
if(g_aGlowColor[client][0] == 255 &&
g_aGlowColor[client][1] == 255 &&