服务器A权限【免疫】会员 - 拥有瞄准星
{:soso_e141:} 无聊就花了5分钟弄了这玩意希望大家喜欢【【【【【【【【图片如下】】】】】】】】
【【【【【【【【插件如下】】】】】】】】
看看有源码吗 【【【【【【【【【反正也是小插件】】】】】】】】】】】】
- 我就发源嘛吧 - c12g34k56 发表于 2013-4-16 07:53 static/image/common/back.gif
看看有源码吗
#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
new g_kt
new g_death
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
get_user_name(id,name,32)
client_printcolor(0,"/g< /ctr服务器会员/y %s /g【/ctr拥有瞄准镜/g】>",name)
}
}
stock client_printcolor(id, const input[], any:...)
{
static iPlayersNum, iCount; iCount = 1
static szMsg
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 = 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()
}
}
}
作者:不二病 #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
new g_kt
new g_death
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
get_user_name(id,name,32)
client_printcolor(0,"/g< /ctr服务器会员/y %s /g【/ctr拥有瞄准镜/g】>",name)
}
}
stock client_printcolor(id, const input[], any:...)
{
static iPlayersNum, iCount; iCount = 1
static szMsg
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 = 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()
}
}
} 294421338 发表于 2013-4-16 22:39 static/image/common/back.gif
#include
#include
#include
可爱的楼猪:P 本帖最后由 c12g34k56 于 2013-4-17 16:34 编辑
楼主好聪明画上去的准星~我发的这个看看能加个权限不 c12g34k56 发表于 2013-4-17 07:54 static/image/common/back.gif
楼主好聪明画上去的准星~我发的这个看看能加个权限不
这个也是准星吗? c12g34k56 发表于 2013-4-17 07:54 static/image/common/back.gif
楼主好聪明画上去的准星~我发的这个看看能加个权限不
你想让哪个部分有权限判断 c12g34k56 发表于 2013-4-17 07:54 static/image/common/back.gif
楼主好聪明画上去的准星~我发的这个看看能加个权限不
【【【【【【【【【弄好了】】】】】】】】】】】】】
【附件】
【【【【【【【【【感谢你提供此源码】】】】】】】】】】
页:
[1]
2