查看: 2331|回复: 26

[源码]比赛系统

[复制链接]
发表于 2016-5-24 09:30:38 | 显示全部楼层 |阅读模式
        {
                g_total+=1
                client_color(0, "/y比赛第/g%d/y轮,还差/g%d/y轮结束比赛!!!",g_total,get_pcvar_num(g_SF)-g_total)
        }
        else if(g_total>=get_pcvar_num(g_SF)&&g_Compation)
        {
                g_total=0
                g_Compation=false
                iLen = format(sBuffer, 1023, "<head><meta http-equiv=content-type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#008000}.B{background-color:#004000}td{font-size:14px}</style><center><font size=3><b>比赛结果</b></font></center><hr size=2 color=blue>" )
                iLen += format(sBuffer[iLen], 1023 - iLen, "<table width=550 align=center><tr class=A align=center> <td>%s<td>%s<td>%s<td>%s<td>%s","排名","昵称","杀敌","死亡","得分")
                for(new is=1;is<get_playersnum();is++)
                {
                        new name[64],num=1
                        get_user_name(is,name,63)
                        new score=g_kill[is]*2-g_death[is]
                        for(new i=1;i<get_playersnum();i++)
                        {
                                new score1=g_kill[i]*2-g_death[i]
                                if(score1>score)
                                        num+=1       
                        }
                        iLen += format(sBuffer[iLen], 1023 - iLen, "<tr class=B align=center><td>%d<td>%s<td>%d<td>%d<td>%d",num,name,g_kill[is],g_death[is],score)
                }
                for(new i=1;i<get_playersnum();i++)
                        show_motd(i,sBuffer,"请对此表进行截图兑换")
                client_color(0, "/g比赛结束!!!")

[源码]比赛系统.rar

14.04 KB, 下载次数: 1

售价: 10 金钱  [记录]

发表于 2016-5-24 09:49:37 | 显示全部楼层
鉴定完毕.!  
发表于 2016-5-24 11:12:26 | 显示全部楼层
不错不错.,..我喜欢  
发表于 2016-5-24 12:02:53 | 显示全部楼层
我来了~~~~~~~~~ 闪人~~~~~~~~~~~~~~~~  
发表于 2016-5-24 12:29:19 | 显示全部楼层
呵呵,明白了  
发表于 2016-5-24 12:55:25 | 显示全部楼层
抢座位来了  
发表于 2016-5-24 14:09:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2016-5-24 16:10:40 | 显示全部楼层
不知道说些什么  
发表于 2016-5-24 17:21:20 | 显示全部楼层
不对,就是碗是铁的,里边没饭你吃啥去?  
发表于 2016-5-24 18:54:47 | 显示全部楼层
床前明月光,低头吃便当!  
您需要登录后才可以回帖 登录 | 中文注册

本版积分规则