Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
टेक्स्ट शैलियां
दिखावट बदलें
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
9 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
16 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
106 लाइनें
सभी को कॉपी करें
14 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
103 लाइनें
सभी को कॉपी करें
// SourceMod 1.7+
// SourceMod 1.7+
#include <sourcemod>
#include <sourcemod>
#include <clientprefs>
#include <clientprefs>
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
#include <scp>
#pragma semicolon 1
#pragma semicolon 1
#define PLUGIN_VERSION "1.1"
#define PLUGIN_VERSION "1.1"
Handle gH_Cookie = INVALID_HANDLE;
Handle gH_Cookie = INVALID_HANDLE;
public Plugin:myinfo =
public Plugin:myinfo =
{
{
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
name = "
[CS:GO]
Chat color
s
",
name = "
Chat color
menu
",
author = "
shavit
",
author = "
Philip
",
description = "
Provides a menu with the option to change your c
hat color
.
",
description = "
C
hat color
menu in-game!
",
version =
PLUGIN_VERSION
,
version =
"0.1"
,
url = "http://
forums.alliedmods.net/member.php?u=163134
"
url = "http://
steamcommunity.com/id/PhilipTheBoss321/
"
}
}
public void OnPluginStart()
public void OnPluginStart()
{
{
gH_Cookie = RegClientCookie("sm_chatcolors_cookie", "Contains the used chat color", CookieAccess_Protected);
gH_Cookie = RegClientCookie("sm_chatcolors_cookie", "Contains the used chat color", CookieAccess_Protected);
CreateConVar("sm_csgochatcolors_version", PLUGIN_VERSION, "Plugin version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_NOTIFY);
CreateConVar("sm_csgochatcolors_version", PLUGIN_VERSION, "Plugin version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_NOTIFY);
RegAdminCmd("sm_colors", Command_Colors, ADMFLAG_GENERIC, "Pops up the colors menu");
RegAdminCmd("sm_colors", Command_Colors, ADMFLAG_GENERIC, "Pops up the colors menu");
}
}
public Action Command_Colors(int client, int args)
public Action Command_Colors(int client, int args)
{
{
Handle hMenu = CreateMenu(MenuHandler_Colors, MENU_ACTIONS_ALL);
Handle hMenu = CreateMenu(MenuHandler_Colors, MENU_ACTIONS_ALL);
SetMenuTitle(hMenu, "Select a chat color:");
SetMenuTitle(hMenu, "Select a chat color:");
AddMenuItem(hMenu, "none", "Default");
AddMenuItem(hMenu, "none", "Default");
AddMenuItem(hMenu, "\x02", "Strong Red");
AddMenuItem(hMenu, "\x02", "Strong Red");
AddMenuItem(hMenu, "\x03", "Team Color");
AddMenuItem(hMenu, "\x03", "Team Color");
AddMenuItem(hMenu, "\x04", "Green");
AddMenuItem(hMenu, "\x04", "Green");
AddMenuItem(hMenu, "\x05", "Turquoise");
AddMenuItem(hMenu, "\x05", "Turquoise");
AddMenuItem(hMenu, "\x06", "Yellow-Green");
AddMenuItem(hMenu, "\x06", "Yellow-Green");
AddMenuItem(hMenu, "\x07", "Light Red");
AddMenuItem(hMenu, "\x07", "Light Red");
AddMenuItem(hMenu, "\x08", "Gray");
AddMenuItem(hMenu, "\x08", "Gray");
AddMenuItem(hMenu, "\x09", "Light Yellow");
AddMenuItem(hMenu, "\x09", "Light Yellow");
AddMenuItem(hMenu, "\x0A", "Light Blue");
AddMenuItem(hMenu, "\x0A", "Light Blue");
AddMenuItem(hMenu, "\x0C", "Purple");
AddMenuItem(hMenu, "\x0C", "Purple");
AddMenuItem(hMenu, "\x0E", "Pink");
AddMenuItem(hMenu, "\x0E", "Pink");
AddMenuItem(hMenu, "\x10", "Orange");
AddMenuItem(hMenu, "\x10", "Orange");
SetMenuExitButton(hMenu, true);
SetMenuExitButton(hMenu, true);
DisplayMenu(hMenu, client, 20);
DisplayMenu(hMenu, client, 20);
return Plugin_Handled;
return Plugin_Handled;
}
}
public int MenuHandler_Colors(Handle hMenu, MenuAction maAction, int client, int choice)
public int MenuHandler_Colors(Handle hMenu, MenuAction maAction, int client, int choice)
{
{
if(maAction == MenuAction_Select)
if(maAction == MenuAction_Select)
{
{
char sChoice[8];
char sChoice[8];
GetMenuItem(hMenu, choice, sChoice, 8);
GetMenuItem(hMenu, choice, sChoice, 8);
SetClientCookie(client, gH_Cookie, sChoice);
SetClientCookie(client, gH_Cookie, sChoice);
if(StrEqual(sChoice, "none"))
if(StrEqual(sChoice, "none"))
{
{
FormatEx(sChoice, 8, "\x01");
FormatEx(sChoice, 8, "\x01");
}
}
if(StrEqual(sChoice, "\x03"))
if(StrEqual(sChoice, "\x03"))
{
{
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
PrintToChat(client, " \x0
4[Chat
Colors
]\x0
1
You
r chat color will match your
team color.");
PrintToChat(client, " \x0
8[\x01i\x07
Colors
\x08
]\x0
E
You
\x01'\x0Bll now have the
team color.");
}
}
else
else
{
{
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
PrintToChat(client, " \x0
4[Chat
Colors
]\x0
1
You
have
selected %sthis color\x01.", sChoice);
PrintToChat(client, " \x0
8[\x01i\x07
Colors
\x08
]\x0
E
You
\x01'\x0Eve
selected %sthis color\x01.", sChoice);
}
}
}
}
else if(maAction == MenuAction_End)
else if(maAction == MenuAction_End)
{
{
CloseHandle(hMenu);
CloseHandle(hMenu);
}
}
}
}
public Action OnChatMessage(int &client, Handle hRecipients, char[] sName, char[] sMessage)
public Action OnChatMessage(int &client, Handle hRecipients, char[] sName, char[] sMessage)
{
{
if(CheckCommandAccess(client, "sm_colors", ADMFLAG_GENERIC))
if(CheckCommandAccess(client, "sm_colors", ADMFLAG_GENERIC))
{
{
char sCookie[8];
char sCookie[8];
GetClientCookie(client, gH_Cookie, sCookie, 8);
GetClientCookie(client, gH_Cookie, sCookie, 8);
if(StrEqual(sCookie, "") || StrEqual(sCookie, "none"))
if(StrEqual(sCookie, "") || StrEqual(sCookie, "none"))
{
{
return Plugin_Continue;
return Plugin_Continue;
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
Format(sMessage, MAXLENGTH_MESSAGE, "%s%s", sCookie, sMessage);
return Plugin_Changed;
return Plugin_Changed;
}
}
return Plugin_Continue;
return Plugin_Continue;
}
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
// SourceMod 1.7+ #include <sourcemod> #include <clientprefs> #include <scp> #pragma semicolon 1 #define PLUGIN_VERSION "1.1" Handle gH_Cookie = INVALID_HANDLE; public Plugin:myinfo = { name = "[CS:GO] Chat colors", author = "shavit", description = "Provides a menu with the option to change your chat color.", version = PLUGIN_VERSION, url = "http://forums.alliedmods.net/member.php?u=163134" } public void OnPluginStart() { gH_Cookie = RegClientCookie("sm_chatcolors_cookie", "Contains the used chat color", CookieAccess_Protected); CreateConVar("sm_csgochatcolors_version", PLUGIN_VERSION, "Plugin version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_NOTIFY); RegAdminCmd("sm_colors", Command_Colors, ADMFLAG_GENERIC, "Pops up the colors menu"); } public Action Command_Colors(int client, int args) { Handle hMenu = CreateMenu(MenuHandler_Colors, MENU_ACTIONS_ALL); SetMenuTitle(hMenu, "Select a chat color:"); AddMenuItem(hMenu, "none", "Default"); AddMenuItem(hMenu, "\x02", "Strong Red"); AddMenuItem(hMenu, "\x03", "Team Color"); AddMenuItem(hMenu, "\x04", "Green"); AddMenuItem(hMenu, "\x05", "Turquoise"); AddMenuItem(hMenu, "\x06", "Yellow-Green"); AddMenuItem(hMenu, "\x07", "Light Red"); AddMenuItem(hMenu, "\x08", "Gray"); AddMenuItem(hMenu, "\x09", "Light Yellow"); AddMenuItem(hMenu, "\x0A", "Light Blue"); AddMenuItem(hMenu, "\x0C", "Purple"); AddMenuItem(hMenu, "\x0E", "Pink"); AddMenuItem(hMenu, "\x10", "Orange"); SetMenuExitButton(hMenu, true); DisplayMenu(hMenu, client, 20); return Plugin_Handled; } public int MenuHandler_Colors(Handle hMenu, MenuAction maAction, int client, int choice) { if(maAction == MenuAction_Select) { char sChoice[8]; GetMenuItem(hMenu, choice, sChoice, 8); SetClientCookie(client, gH_Cookie, sChoice); if(StrEqual(sChoice, "none")) { FormatEx(sChoice, 8, "\x01"); } if(StrEqual(sChoice, "\x03")) { PrintToChat(client, " \x04[Chat Colors]\x01 Your chat color will match your team color."); } else { PrintToChat(client, " \x04[Chat Colors]\x01 You have selected %sthis color\x01.", sChoice); } } else if(maAction == MenuAction_End) { CloseHandle(hMenu); } } public Action OnChatMessage(int &client, Handle hRecipients, char[] sName, char[] sMessage) { if(CheckCommandAccess(client, "sm_colors", ADMFLAG_GENERIC)) { char sCookie[8]; GetClientCookie(client, gH_Cookie, sCookie, 8); if(StrEqual(sCookie, "") || StrEqual(sCookie, "none")) { return Plugin_Continue; } Format(sMessage, MAXLENGTH_MESSAGE, "%s%s", sCookie, sMessage); return Plugin_Changed; } return Plugin_Continue; }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
// SourceMod 1.7+ #include <sourcemod> #include <clientprefs> #pragma semicolon 1 #define PLUGIN_VERSION "1.1" Handle gH_Cookie = INVALID_HANDLE; public Plugin:myinfo = { name = "Chat color menu", author = "Philip", description = "Chat color menu in-game!", version = "0.1", url = "http://steamcommunity.com/id/PhilipTheBoss321/" } public void OnPluginStart() { gH_Cookie = RegClientCookie("sm_chatcolors_cookie", "Contains the used chat color", CookieAccess_Protected); CreateConVar("sm_csgochatcolors_version", PLUGIN_VERSION, "Plugin version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_NOTIFY); RegAdminCmd("sm_colors", Command_Colors, ADMFLAG_GENERIC, "Pops up the colors menu"); } public Action Command_Colors(int client, int args) { Handle hMenu = CreateMenu(MenuHandler_Colors, MENU_ACTIONS_ALL); SetMenuTitle(hMenu, "Select a chat color:"); AddMenuItem(hMenu, "none", "Default"); AddMenuItem(hMenu, "\x02", "Strong Red"); AddMenuItem(hMenu, "\x03", "Team Color"); AddMenuItem(hMenu, "\x04", "Green"); AddMenuItem(hMenu, "\x05", "Turquoise"); AddMenuItem(hMenu, "\x06", "Yellow-Green"); AddMenuItem(hMenu, "\x07", "Light Red"); AddMenuItem(hMenu, "\x08", "Gray"); AddMenuItem(hMenu, "\x09", "Light Yellow"); AddMenuItem(hMenu, "\x0A", "Light Blue"); AddMenuItem(hMenu, "\x0C", "Purple"); AddMenuItem(hMenu, "\x0E", "Pink"); AddMenuItem(hMenu, "\x10", "Orange"); SetMenuExitButton(hMenu, true); DisplayMenu(hMenu, client, 20); return Plugin_Handled; } public int MenuHandler_Colors(Handle hMenu, MenuAction maAction, int client, int choice) { if(maAction == MenuAction_Select) { char sChoice[8]; GetMenuItem(hMenu, choice, sChoice, 8); SetClientCookie(client, gH_Cookie, sChoice); if(StrEqual(sChoice, "none")) { FormatEx(sChoice, 8, "\x01"); } if(StrEqual(sChoice, "\x03")) { PrintToChat(client, " \x08[\x01i\x07Colors\x08]\x0E You\x01'\x0Bll now have the team color."); } else { PrintToChat(client, " \x08[\x01i\x07Colors\x08]\x0E You\x01'\x0Eve selected %sthis color\x01.", sChoice); } } else if(maAction == MenuAction_End) { CloseHandle(hMenu); } } public Action OnChatMessage(int &client, Handle hRecipients, char[] sName, char[] sMessage) { if(CheckCommandAccess(client, "sm_colors", ADMFLAG_GENERIC)) { char sCookie[8]; GetClientCookie(client, gH_Cookie, sCookie, 8); if(StrEqual(sCookie, "") || StrEqual(sCookie, "none")) { return Plugin_Continue; } return Plugin_Changed; } return Plugin_Continue; }
अंतर खोजें