|
发表于 2006-8-16 18:02:07
|
显示全部楼层
来自 中国–云南–西双版纳傣族自治州–景洪市
回复: 【发布】[AMXX]连续杀人奖励插件
if ( KillSeries && enemykill ){
new killsm[32][3],killss[32][3],killnm[32],killns[32],temp1,temp2
get_time("%M", killsm[killerId], 2)
killnm[killerId] = strtonum(killsm[killerId])
get_time("%S", killss[killerId], 2)
killns[killerId] = strtonum(killss[killerId])
g_killtime[killerId] = 60 * killnm[killerId] + killns[killerId]
if ( g_killnum[killerId] == 0 )
g_tempkilltime[killerId] = g_killtime[killerId]
++g_killnum[killerId]
temp1 = g_killtime[killerId] - g_tempkilltime[killerId]
temp2 = 2 * g_killnum[killerId] - 1
if ( g_killnum[killerId] > 1 ){
if ( temp1 <= temp2 ){
new name[32]
get_user_name( killerId , name , 31 )
set_hudmessage( 255, 128, 255, 0.02, 0.8, 0, 6.0, 10.0, 0.1, 0.2, 3)
if ( KillSeriesReward ){
new tempmoney = 1000 * (g_killnum[killerId] -1)
g_killreward[killerId] += tempmoney
show_hudmessage(0,"%s killed %d enemys in %d Sec.^nAnd will get all reward %d on roundend",name,g_killnum[killerId],temp2, g_killreward[killerId] )
}else{
show_hudmessage(0,"%s killed %d enemys in %d Sec.",name,g_killnum[killerId],temp2)
}
}else{
g_killnum[killerId] = 1
g_tempkilltime[killerId] = g_killtime[killerId]
}
}
}
} |
|