搜索
查看: 5263|回复: 16

[AMXX 带源码] 服务器A权限【免疫】会员 - 拥有瞄准星

[复制链接]
发表于 2013-4-15 22:12:50 | 显示全部楼层 |阅读模式 来自 贵州贵阳
{:soso_e141:} 无聊就花了5分钟弄了这玩意希望大家喜欢


【【【【【【【【图片如下】】】】】】】】



【【【【【【【【插件如下】】】】】】】】

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2013-4-16 07:53:10 | 显示全部楼层 来自 山东青岛
看看有源码吗
回复

使用道具 举报

 楼主| 发表于 2013-4-16 22:36:18 | 显示全部楼层 来自 贵州贵阳
【【【【【【【【【反正也是小插件】】】】】】】】】】】】
                  -            我就发源嘛吧             -
回复

使用道具 举报

 楼主| 发表于 2013-4-16 22:38:18 | 显示全部楼层 来自 贵州贵阳
c12g34k56 发表于 2013-4-16 07:53
看看有源码吗

#include <amxmodx>
#include <amxmisc>
#include <messages>


public plugin_init()
{
        register_event("ResetHUD", "MiaoZhunXing2", "be")
        register_event("ResetHUD", "MiaoZhunXing", "be")
}

public MiaoZhunXing(id)
{
        set_task(0.5,"miaozhunxing1",id,"",0,"be")
}

public miaozhunxing1(id)
{
        if(get_user_flags(id) & ADMIN_IMMUNITY)
        {
                new g_kct[33]
                new g_kt[33]
                new g_death[33]
                set_hudmessage(135, 206, 235,-1.0,0.45,0,5.0,0.5,0.1,0.5,9)
                show_hudmessage(id,"-----^n[|+|]^n-----")
                set_task(0.8,"miaozhunxing2",id,"",0,"1")
        }
}

public MiaoZhunXing2(id)
{
        if(get_user_flags(id) & ADMIN_IMMUNITY)
        {
                new name[33]
                get_user_name(id,name[id],32)
                client_printcolor(0,"/g< /ctr服务器会员/y %s /g【/ctr拥有瞄准镜/g】>",name[id])
        }
}

stock client_printcolor(id, const input[], any:...)
{
        static iPlayersNum[32], iCount; iCount = 1
        static szMsg[191]
       
        vformat(szMsg, charsmax(szMsg), input, 3)
       
        replace_all(szMsg, 190, "/g", "^4") // green txt
        replace_all(szMsg, 190, "/y", "^1") // orange txt
        replace_all(szMsg, 190, "/ctr", "^3") // team txt
        replace_all(szMsg, 190, "/w", "^0") // team txt
       
        if(id) iPlayersNum[0] = id
        else get_players(iPlayersNum, iCount, "ch")
       
        for (new i = 0; i < iCount; i++)
        {
                if (is_user_connected(iPlayersNum))
                {
                        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayersNum)
                        write_byte(iPlayersNum)
                        write_string(szMsg)
                        message_end()
                }
        }
}


                                                      作者:不二病
回复

使用道具 举报

 楼主| 发表于 2013-4-16 22:39:44 | 显示全部楼层 来自 贵州贵阳
#include <amxmodx>
#include <amxmisc>
#include <messages>


public plugin_init()
{
        register_event("ResetHUD", "MiaoZhunXing2", "be")
        register_event("ResetHUD", "MiaoZhunXing", "be")
}

public MiaoZhunXing(id)
{
        set_task(0.5,"miaozhunxing1",id,"",0,"be")
}

public miaozhunxing1(id)
{
        if(get_user_flags(id) & ADMIN_IMMUNITY)
        {
                new g_kct[33]
                new g_kt[33]
                new g_death[33]
                set_hudmessage(135, 206, 235,-1.0,0.45,0,5.0,0.5,0.1,0.5,9)
                show_hudmessage(id,"-----^n[|+|]^n-----")
                set_task(0.8,"miaozhunxing2",id,"",0,"1")
        }
}

public MiaoZhunXing2(id)
{
        if(get_user_flags(id) & ADMIN_IMMUNITY)
        {
                new name[33]
                get_user_name(id,name[id],32)
                client_printcolor(0,"/g< /ctr服务器会员/y %s /g【/ctr拥有瞄准镜/g】>",name[id])
        }
}

stock client_printcolor(id, const input[], any:...)
{
        static iPlayersNum[32], iCount; iCount = 1
        static szMsg[191]
       
        vformat(szMsg, charsmax(szMsg), input, 3)
       
        replace_all(szMsg, 190, "/g", "^4") // green txt
        replace_all(szMsg, 190, "/y", "^1") // orange txt
        replace_all(szMsg, 190, "/ctr", "^3") // team txt
        replace_all(szMsg, 190, "/w", "^0") // team txt
       
        if(id) iPlayersNum[0] = id
        else get_players(iPlayersNum, iCount, "ch")
       
        for (new i = 0; i < iCount; i++)
        {
                if (is_user_connected(iPlayersNum[i]))
                {
                        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayersNum[i])
                        write_byte(iPlayersNum[i])
                        write_string(szMsg)
                        message_end()
                }
        }
}
回复

使用道具 举报

发表于 2013-4-17 07:46:41 | 显示全部楼层 来自 山东青岛
294421338 发表于 2013-4-16 22:39
#include
#include
#include

可爱的楼猪:P
回复

使用道具 举报

发表于 2013-4-17 07:54:52 | 显示全部楼层 来自 山东青岛
本帖最后由 c12g34k56 于 2013-4-17 16:34 编辑

楼主好聪明  画上去的准星~  我发的这个看看能加个权限不

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2013-4-17 18:48:23 | 显示全部楼层 来自 贵州贵阳
c12g34k56 发表于 2013-4-17 07:54
楼主好聪明  画上去的准星~  我发的这个看看能加个权限不

这个也是准星吗?
回复

使用道具 举报

 楼主| 发表于 2013-4-17 18:50:17 | 显示全部楼层 来自 贵州贵阳
c12g34k56 发表于 2013-4-17 07:54
楼主好聪明  画上去的准星~  我发的这个看看能加个权限不

你想让哪个部分有权限判断
回复

使用道具 举报

 楼主| 发表于 2013-4-17 19:06:35 | 显示全部楼层 来自 贵州贵阳
c12g34k56 发表于 2013-4-17 07:54
楼主好聪明  画上去的准星~  我发的这个看看能加个权限不

【【【【【【【【【弄好了】】】】】】】】】】】】】


【附件】

【【【【【【【【【感谢你提供此源码】】】】】】】】】】

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

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

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