Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
7 年前
差異永不過期
清除
匯出
分享
解釋
12 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
81 行
全部複製
12 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
81 行
全部複製
#include <amxmodx>
#include <amxmodx>
#include <engine>
#include <engine>
#include <zombieplague>
#include <zombieplague>
複製
已複製
複製
已複製
#define PLUGIN "[
FR
] Team win score"
#define PLUGIN "[
ZP
] Team win score"
#define VERSION "
0.1
"
#define VERSION "
1.3
"
#define AUTHOR "
puNx
"
#define AUTHOR "
Ryokin
"
new g_zombiescore, g_humanscore, g_NoOneWin, g_hudcolor,g_hudposition , g_hudmsg
new g_zombiescore, g_humanscore, g_NoOneWin, g_hudcolor,g_hudposition , g_hudmsg
public plugin_init()
public plugin_init()
{
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_plugin(PLUGIN, VERSION, AUTHOR)
register_think("msg","ForwardThink")
register_think("msg","ForwardThink")
register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w")
register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w")
複製
已複製
複製
已複製
g_NoOneWin = register_cvar( "
Furien
_winnoone_score", "1")
g_NoOneWin = register_cvar( "
zp
_winnoone_score", "1")
g_hudcolor = register_cvar( "
Furien
_teamscore_hudcolor", "255 25 0")
g_hudcolor = register_cvar( "
zp
_teamscore_hudcolor", "255 25 0")
g_hudposition = register_cvar( "
Furien
_teamscore_hudposition", "-1.0 0.02")
g_hudposition = register_cvar( "
zp
_teamscore_hudposition", "-1.0 0.02")
g_hudmsg = CreateHudSyncObj()
g_hudmsg = CreateHudSyncObj()
new iEnt = create_entity("info_target")
new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, "msg")
entity_set_string(iEnt, EV_SZ_classname, "msg")
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}
}
public zp_round_ended(team)
public zp_round_ended(team)
{
{
switch(team)
switch(team)
{
{
複製
已複製
複製
已複製
case WIN_
FURIEN
: g_
furienscore
++
case WIN_
ZOMBIES
: g_
zombiescore
++
複製
已複製
複製
已複製
case WIN_HUMANS: g_
furie
nscore ++
case WIN_HUMANS: g_
huma
nscore ++
case WIN_NO_ONE:
case WIN_NO_ONE:
if (get_pcvar_num(g_NoOneWin))
if (get_pcvar_num(g_NoOneWin))
g_humanscore ++
g_humanscore ++
}
}
}
}
public ForwardThink(iEnt)
public ForwardThink(iEnt)
{
{
show_hud()
show_hud()
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0)
}
}
public show_hud()
public show_hud()
{
{
static hud_red,hud_green,hud_blue, Float:hud_x, Float:hud_y
static hud_red,hud_green,hud_blue, Float:hud_x, Float:hud_y
hudmsgcolor(hud_red,hud_green,hud_blue)
hudmsgcolor(hud_red,hud_green,hud_blue)
hudmsgpos(hud_x,hud_y)
hudmsgpos(hud_x,hud_y)
set_hudmessage(hud_red, hud_green, hud_blue, hud_x, hud_y, _, _, 4.0, _, _, 4)
set_hudmessage(hud_red, hud_green, hud_blue, hud_x, hud_y, _, _, 4.0, _, _, 4)
複製
已複製
複製
已複製
ShowSyncHudMsg(0, g_hudmsg, "[
Furien
] - [Human]^n[%s%d] -- [%s%d]",g_
furienscore
>= 10 ? "" : "0",g_
furienscore
,g_humanscore >= 10 ? "" : "0", g_humanscore )
ShowSyncHudMsg(0, g_hudmsg, "[
Zombie
] - [Human]^n[%s%d] -- [%s%d]",g_
zombiescore
>= 10 ? "" : "0",g_
zombiescore
,g_humanscore >= 10 ? "" : "0", g_humanscore )
}
}
public RestartRound()
public RestartRound()
{
{
g_zombiescore = 0
g_zombiescore = 0
g_humanscore = 0
g_humanscore = 0
}
}
public hudmsgcolor(&hud_red,&hud_green,&hud_blue)
public hudmsgcolor(&hud_red,&hud_green,&hud_blue)
{
{
new color[16], red[4], green[4], blue[4]
new color[16], red[4], green[4], blue[4]
get_pcvar_string(g_hudcolor, color, 15)
get_pcvar_string(g_hudcolor, color, 15)
parse(color, red, 3, green, 3, blue, 3)
parse(color, red, 3, green, 3, blue, 3)
hud_red = str_to_num(red)
hud_red = str_to_num(red)
hud_green = str_to_num(green)
hud_green = str_to_num(green)
hud_blue = str_to_num(blue)
hud_blue = str_to_num(blue)
}
}
public hudmsgpos(&Float:hud_x,&Float:hud_y)
public hudmsgpos(&Float:hud_x,&Float:hud_y)
{
{
new Position[19], PositionX[6], PositionY[6]
new Position[19], PositionX[6], PositionY[6]
get_pcvar_string(g_hudposition, Position, 18)
get_pcvar_string(g_hudposition, Position, 18)
parse(Position, PositionX, 6, PositionY, 6)
parse(Position, PositionX, 6, PositionY, 6)
hud_x = str_to_float(PositionX)
hud_x = str_to_float(PositionX)
hud_y = str_to_float(PositionY)
hud_y = str_to_float(PositionY)
}
}
已保存差異
原始文本
開啟檔案
#include <amxmodx> #include <engine> #include <zombieplague> #define PLUGIN "[FR] Team win score" #define VERSION "0.1" #define AUTHOR "puNx" new g_zombiescore, g_humanscore, g_NoOneWin, g_hudcolor,g_hudposition , g_hudmsg public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_think("msg","ForwardThink") register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w") g_NoOneWin = register_cvar( "Furien_winnoone_score", "1") g_hudcolor = register_cvar( "Furien_teamscore_hudcolor", "255 25 0") g_hudposition = register_cvar( "Furien_teamscore_hudposition", "-1.0 0.02") g_hudmsg = CreateHudSyncObj() new iEnt = create_entity("info_target") entity_set_string(iEnt, EV_SZ_classname, "msg") entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0) } public zp_round_ended(team) { switch(team) { case WIN_FURIEN: g_furienscore ++ case WIN_HUMANS: g_furienscore ++ case WIN_NO_ONE: if (get_pcvar_num(g_NoOneWin)) g_humanscore ++ } } public ForwardThink(iEnt) { show_hud() entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0) } public show_hud() { static hud_red,hud_green,hud_blue, Float:hud_x, Float:hud_y hudmsgcolor(hud_red,hud_green,hud_blue) hudmsgpos(hud_x,hud_y) set_hudmessage(hud_red, hud_green, hud_blue, hud_x, hud_y, _, _, 4.0, _, _, 4) ShowSyncHudMsg(0, g_hudmsg, "[Furien] - [Human]^n[%s%d] -- [%s%d]",g_furienscore >= 10 ? "" : "0",g_furienscore,g_humanscore >= 10 ? "" : "0", g_humanscore ) } public RestartRound() { g_zombiescore = 0 g_humanscore = 0 } public hudmsgcolor(&hud_red,&hud_green,&hud_blue) { new color[16], red[4], green[4], blue[4] get_pcvar_string(g_hudcolor, color, 15) parse(color, red, 3, green, 3, blue, 3) hud_red = str_to_num(red) hud_green = str_to_num(green) hud_blue = str_to_num(blue) } public hudmsgpos(&Float:hud_x,&Float:hud_y) { new Position[19], PositionX[6], PositionY[6] get_pcvar_string(g_hudposition, Position, 18) parse(Position, PositionX, 6, PositionY, 6) hud_x = str_to_float(PositionX) hud_y = str_to_float(PositionY) }
更改後文本
開啟檔案
#include <amxmodx> #include <engine> #include <zombieplague> #define PLUGIN "[ZP] Team win score" #define VERSION "1.3" #define AUTHOR "Ryokin" new g_zombiescore, g_humanscore, g_NoOneWin, g_hudcolor,g_hudposition , g_hudmsg public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_think("msg","ForwardThink") register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w") g_NoOneWin = register_cvar( "zp_winnoone_score", "1") g_hudcolor = register_cvar( "zp_teamscore_hudcolor", "255 25 0") g_hudposition = register_cvar( "zp_teamscore_hudposition", "-1.0 0.02") g_hudmsg = CreateHudSyncObj() new iEnt = create_entity("info_target") entity_set_string(iEnt, EV_SZ_classname, "msg") entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0) } public zp_round_ended(team) { switch(team) { case WIN_ZOMBIES: g_zombiescore ++ case WIN_HUMANS: g_humanscore ++ case WIN_NO_ONE: if (get_pcvar_num(g_NoOneWin)) g_humanscore ++ } } public ForwardThink(iEnt) { show_hud() entity_set_float(iEnt, EV_FL_nextthink, get_gametime() + 2.0) } public show_hud() { static hud_red,hud_green,hud_blue, Float:hud_x, Float:hud_y hudmsgcolor(hud_red,hud_green,hud_blue) hudmsgpos(hud_x,hud_y) set_hudmessage(hud_red, hud_green, hud_blue, hud_x, hud_y, _, _, 4.0, _, _, 4) ShowSyncHudMsg(0, g_hudmsg, "[Zombie] - [Human]^n[%s%d] -- [%s%d]",g_zombiescore >= 10 ? "" : "0",g_zombiescore,g_humanscore >= 10 ? "" : "0", g_humanscore ) } public RestartRound() { g_zombiescore = 0 g_humanscore = 0 } public hudmsgcolor(&hud_red,&hud_green,&hud_blue) { new color[16], red[4], green[4], blue[4] get_pcvar_string(g_hudcolor, color, 15) parse(color, red, 3, green, 3, blue, 3) hud_red = str_to_num(red) hud_green = str_to_num(green) hud_blue = str_to_num(blue) } public hudmsgpos(&Float:hud_x,&Float:hud_y) { new Position[19], PositionX[6], PositionY[6] get_pcvar_string(g_hudposition, Position, 18) parse(Position, PositionX, 6, PositionY, 6) hud_x = str_to_float(PositionX) hud_y = str_to_float(PositionY) }
尋找差異