|
发表于 2008-7-26 05:15:00
|
显示全部楼层
来自 中国–江西–南昌
回复: set_user_armor问题c
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN_NAME "ADMIN_HP/ARMOR"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Admin"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_logevent("logevent_round_start", 2, "1=Round_Start")
}
public logevent_round_start()
{
new i
for(i=1;i<=32;i++)
{
if (is_user_alive(i) && (get_user_flags(i)&ADMIN_LEVEL_A))
{
set_user_health(i,120)
cs_set_user_armor(i,200,CS_ARMOR_VESTHELM)
}
}
} |
|