|
#define FLAG_A 1 //闪光弹
#define FLAG_B 2 //高爆手雷
#define FLAG_C 4 //烟雾弹
#define FLAG_D 8 //C4
#define FLAG_E 16 //手枪
#define FLAG_F 32 //无限闪光弹
#define FLAG_G 64 //无限高爆手雷
#define FLAG_H 128 //无限烟雾弹
#define FLAG_I 256 //无限手枪子弹
#define FLAG_Z 0x2000000 //正常局
new g_RestRoundCounter = 0 //限制局局数计数器(当战斗还没开始时,与真正的局数计数器不一定相等)
new g_RestrictCount = 0 //限制局数
new g_Pistols[11][]={ //购买手枪使用的命令
"usp",
"glock",
"deagle",
"p228",
"fn57",
"km45",
"9x19mm",
"nighthawk",
"228compact",
"elites",
"fiveseven"
}
new g_OtherGuns[32][]={
"m3", //购买霰弹枪使用的命令
"xm1014",
"12gauge",
"autoshotgun",
"mp5", //购买冲锋枪使用的命令
"tmp",
"p90",
"mac10",
"ump45",
"smg",
"mp",
"c90",
"ak47", //购买自动步枪使用的命令
"galil",
"famas",
"sg552",
"m4a1",
"aug",
"scout",
"awp",
"g3sg1",
"sg550",
"cv47",
"defender",
"clarion",
"krieg552",
"bullpup",
"magnum",
"d3au1",
"krieg550",
"m249", //购买轻机枪使用的命令
"shield" //购买战术盾牌使用的命令
}
new iLen = format(g_HintMsg, 255, "注意,本局可用武器:^n刀, ")
if(g_weaponflags[g_RestRoundCounter-1]&FLAG_D)
iLen += format(g_HintMsg[iLen], 255-iLen, "C4, ")
if(g_weaponflags[g_RestRoundCounter-1]&FLAG_F)
iLen += format(g_HintMsg[iLen], 255-iLen, "闪光弹(无限), ")
else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_A)
iLen += format(g_HintMsg[iLen], 255-iLen, "闪光弹, ")
if(g_weaponflags[g_RestRoundCounter-1]&FLAG_G)
iLen += format(g_HintMsg[iLen], 255-iLen, "高爆手雷(无限), ")
else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_B)
iLen += format(g_HintMsg[iLen], 255-iLen, "高爆手雷, ")
if(g_weaponflags[g_RestRoundCounter-1]&FLAG_H)
iLen += format(g_HintMsg[iLen], 255-iLen, "烟雾弹(无限), ")
else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_C)
iLen += format(g_HintMsg[iLen], 255-iLen, "烟雾弹, ")
if(g_weaponflags[g_RestRoundCounter-1]&FLAG_I)
iLen += format(g_HintMsg[iLen], 255-iLen, "手枪(子弹无限), ")
else if(g_weaponflags[g_RestRoundCounter-1]&FLAG_E)
iLen += format(g_HintMsg[iLen], 255-iLen, "手枪, ")
g_HintMsg[strlen(g_HintMsg)-2] = 0 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|