|
发表于 2009-5-12 11:22:52
|
显示全部楼层
来自 中国–安徽–合肥
什么啊??1.5的???
public event_death()
{
if (gBonusMode && gRoundStart) {
new iKiller = read_data(1)
new iVictim = read_data(2)
new sMsg[MAX_TEXT_LENGTH]
new sName[MAX_NAME_LENGTH]
get_user_name(iKiller,sName,MAX_NAME_LENGTH)
if ((iKiller != iVictim) && (gBonusCount < sizeof gBonusIndex) && (get_user_team(iKiller) != get_user_team(iVictim))) {
gBonusCount++
set_user_money(iKiller,get_user_money(iKiller)+gBonusIndex[gBonusCount-1])
if (gBonusCount == 1) {
format(sMsg,MAX_TEXT_LENGTH,"%s 第1个杀人! 奖励$%i ",sName,gBonusIndex[gBonusCount-1])
format(_tmpStr, 255, "%s 第1个杀人!获得$%i奖励",sName,gBonusIndex[gBonusCount-1])
set_hudmessage(0,255,0,-1.58,0.18,0,6.0,6.0,0.5,0.5,158)
_showChatGreenMsg(iKiller, _tmpStr)
}
else if (gBonusCount == 2) {
format(sMsg,MAX_TEXT_LENGTH,"%s 第2个杀人! 奖励$%i ",sName,gBonusIndex[gBonusCount-1])
format(_tmpStr, 255, "%s 第2个杀人!获得$%i奖励",sName,gBonusIndex[gBonusCount-1])
set_hudmessage(255, 0, 255,-1.58,0.26,0,6.0,6.0,0.5,0.5,157)
_showChatGreenMsg(iKiller, _tmpStr)
}
else if (gBonusCount == 3) {
format(sMsg,MAX_TEXT_LENGTH,"%s 第3个杀人! 奖励$%i ",sName,gBonusIndex[gBonusCount-1])
format(_tmpStr, 255, "%s 第3个杀人!获得$%i奖励",sName,gBonusIndex[gBonusCount-1])
set_hudmessage(255, 242, 0,-1.58,0.34,0,6.0,6.0,0.5,0.5,156)
_showChatGreenMsg(iKiller, _tmpStr)
}
else {
format(sMsg,MAX_TEXT_LENGTH,"%s 第%i个杀人! 奖励$%i ",sName,gBonusCount,gBonusIndex[gBonusCount-1])
format(_tmpStr, 255, "%s 第%i个杀人!获得$%i奖励",sName,gBonusCount,gBonusIndex[gBonusCount-1])
set_hudmessage(0,100,255,-1.58,0.42,0,6.0,6.0,0.5,0.5,150)
_showChatGreenMsg(iKiller, _tmpStr)
}
//display_msg(sMsg,200,200,200)
show_hudmessage(0,sMsg)
}
}
return PLUGIN_CONTINUE
}
public event_round_end() {
gRoundStart = false
gBonusCount = 0
}
public round_start() { //增加行
gRoundStart = true //增加行
} //增加行
//public display_msg(msg[],r,g,b)
//{
//set_hudmessage(r,g,b,-1.0,0.40,0,6.0,6.0,0.5,0.15,2)
//set_hudmessage(random_num(0,255),random_num(0,255),random_num(0,255),-1.0,0.80,2,0.3,6.0,0.03,2.0,153)
//show_hudmessage(0,msg)
//}
// 显示(Green)颜色的聊天信息
public _showChatGreenMsg(id, msg[256]) {
format(msg, 255, "^x01^x04%s^x01", msg)
new g_msgSayText = get_user_msgid("SayText")
message_begin(MSG_ALL,g_msgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
} |
|