搜索
查看: 1794|回复: 2

求助:帮我改一下SMA

[复制链接]
发表于 2006-9-29 13:51:53 | 显示全部楼层 |阅读模式 来自 中国–辽宁–沈阳
这个插件信息的显示位置在准心的正下方,影响了视线。那位大哥帮我改一下坐标的位置,在靠顶端显示比较好点。我的是CS1。5 AMX1。71
#include <amxmodx>
#include <cstrike>

new g_round

public plugin_init(){
        register_plugin("First Shot","1.0","ahcat")
        register_event("DeathMsg", "hook_death", "a")
        register_logevent("hook_roundstart",2,"0=World triggered","1=Round_Start")
        g_round = 0
}

public hook_death(){
        if (g_round!=0)
                return PLUGIN_HANDLED
        new Killer = read_data(1)
        new Victim = read_data(2)
        if(Killer==Victim)
                return PLUGIN_HANDLED
        cs_set_user_money(Killer,cs_get_user_money (Killer)+16000)
        new p_name[32]
        get_user_name(Killer,p_name,31)
        set_hudmessage(255, 255, 255, -1.0, 0.5, 0, 0.1, 0.1, 0.1, 6.0, 1)
        show_hudmessage(0, "%s 第一局第一个杀人16000",p_name)
        g_round = 1
        return PLUGIN_HANDLED
}

public hook_roundstart(){
        g_round = 0
}
发表于 2006-9-29 18:58:35 | 显示全部楼层 来自 中国–山西–忻州

回复: 求助:帮我改一下SMA

…………………………………………………………………………
回复

使用道具 举报

发表于 2006-9-29 20:52:35 | 显示全部楼层 来自 中国–新疆–乌鲁木齐

回复: 求助:帮我改一下SMA

昏啊这个很好改的把这个
set_hudmessage(255, 255, 255, -1.0, 0.5, 0, 0.1, 0.1, 0.1, 6.0, 1)
改成
set_hudmessage(255, 255, 255, 1.0, 0.5, 0, 0.1, 0.1, 0.1, 6.0, 1)
就可以了在屏幕的右边。
最好把这个也改了
show_hudmessage(0, "%s 第一局第一个杀人16000",p_name)
改成
show_hudmessage(0, "开局杀人:%s^n奖励:16000",p_name)
这样好看点
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表