|
发表于 2009-2-1 12:01:02
|
显示全部楼层
|阅读模式
来自 中国–黑龙江–齐齐哈尔
把这段文字修改到屏幕正中间
- public eResetHud( id )
- g_Killers[ id ][0] = 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[32], 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[32], pnum, stats[8],bodyhits[8], len = 0
- get_players( players , pnum )
- g_Buffer[0] = 0
- if ( EndMostKills ){
- new kills = 0, who = 0, hs = 0
- for(new i = 0; i < pnum; ++i){
- get_user_rstats( players[i],stats, bodyhits )
- if ( stats[0] > kills ){
- who = players[i]
- kills = stats[0]
- hs = stats[2]
- }
- }
- if ( is_user_connected(who) ) {
- new name[32]
- get_user_name( who, name, 31 )
- len += format(g_Buffer[len] , 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[i],stats, bodyhits )
- if ( stats[6] > damage ){
- who = players[i]
- hits = stats[5]
- damage = stats[6]
- }
- }
- if ( is_user_connected(who) ) {
- new name[32]
- get_user_name( who, name, 31 )
- len += format(g_Buffer[len] , 512 - len ,
- "_________________________________^n最具杀伤力: %s^n击中敌人%d 次/造成 %d 伤害^n", name , hits , damage)
- }
- }
- if ( ShowMoney ){
- new who = 0, temp = 0, money = 0
- new name[32]
- //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[i])
- if ( money > temp ){
- who = players[i]
- temp = cs_get_user_money(players[i])
- }
- }
- 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[len] , 1024 - len , "_________________________________^n金钱最多的玩家: %s $: %d^n",name, cs_get_user_money(who) )
- }
- }
- if ( EndTeamScore )
- format(g_Buffer[len] , 512 - len , "_________________________________^n匪徒%d次胜利-- 警察%d次胜利^n", g_teamScore[0] , g_teamScore[1] )
- set_hudmessage(128,128,255,-1.0,0.70,2, 0.01, 5.0, 0.01, 0.01, 3 )
- show_hudmessage( 0 , g_Buffer )
- }
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|