修改坐标
把这段文字修改到屏幕正中间public eResetHud( id )
g_Killers[ id ] = 0
public eRoundEnd()
set_task( 0.3 , "eRoundEndTask" )
public eRoundEndTask() {
if ( EndRoundTop5 ){
gettop5()
set_hudmessage(0,150,0,-1.0, 0.07, 2, 0.01, 12.0, 0.01, 0.01, 5)
show_hudmessage( 0 ,g_Buffer)
}
if (ShowVictims || ShowAttackers ) {
new players, pnum
get_players( players , pnum, "a")
for(new i = 0; i < pnum; ++i ) {
if ( ShowVictims &&getVictims( players[ i ] )){
set_hudmessage(0,80,220,0.55,0.60,0, 6.0, 12.0, 1.0, 2.0, 4)
show_hudmessage( players[ i ] ,g_Buffer)
}
if ( ShowAttackers && getAttackers( players[ i ] ) ){
set_hudmessage(220,80,0,0.55,0.35,0, 6.0, 12.0, 1.0, 2.0, 3)
show_hudmessage( players[ i ] ,g_Buffer)
}
}
}
if ( EndMostKills || EndTeamScore || EndMostDamage){
new players, pnum, stats,bodyhits, len = 0
get_players( players , pnum )
g_Buffer = 0
if ( EndMostKills ){
new kills = 0, who = 0, hs = 0
for(new i = 0; i < pnum; ++i){
get_user_rstats( players,stats, bodyhits )
if ( stats > kills ){
who = players
kills = stats
hs = stats
}
}
if ( is_user_connected(who) ) {
new name
get_user_name( who, name, 31 )
len += format(g_Buffer , 512 - len ,
"最佳杀手: %s^n杀敌 %d 个 / 爆头%d 个^n", name , kills , hs )
}
}
if ( EndMostDamage ) {
new damage = 0, who = 0, hits = 0
for(new i = 0; i < pnum; ++i){
get_user_rstats( players,stats, bodyhits )
if ( stats > damage ){
who = players
hits = stats
damage = stats
}
}
if ( is_user_connected(who) ) {
new name
get_user_name( who, name, 31 )
len += format(g_Buffer , 512 - len ,
"_________________________________^n最具杀伤力: %s^n击中敌人%d 次/造成 %d 伤害^n", name , hits , damage)
}
}
if ( ShowMoney ){
new who = 0, temp = 0, money = 0
new name
//temp = cs_get_user_money(0)
//client_print(0,print_chat,"a's money: %d",temp)
for(new i = 0; i < pnum; ++i){
money = cs_get_user_money(players)
if ( money > temp ){
who = players
temp = cs_get_user_money(players)
}
}
if ( is_user_connected(who) ) {
//client_print(0,print_chat,"richmen is : %d",who)
get_user_name( who,name,31 )
//client_print(0,print_chat,"money 's name :%s",name)
len += format(g_Buffer , 1024 - len , "_________________________________^n金钱最多的玩家: %s$: %d^n",name, cs_get_user_money(who) )
}
}
if ( EndTeamScore )
format(g_Buffer , 512 - len , "_________________________________^n匪徒%d次胜利-- 警察%d次胜利^n", g_teamScore , g_teamScore )
set_hudmessage(128,128,255,-1.0,0.70,2, 0.01, 5.0, 0.01, 0.01, 3 )
show_hudmessage( 0 , g_Buffer )
}
} set_hudmessage(128,128,255,-1.0,0.50,2, 0.01, 5.0, 0.01, 0.01, 3 )
页:
[1]