这个插件需要B权限#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN_NAME "VIPMOney"
#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_B))
{
set_user_health(i,110)
//加血
cs_set_user_armor(i,255,CS_ARMOR_VESTHELM)
//加防护
cs_set_user_money(i,16000)
//加钱
}
}
} #include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Admin"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("ResetHUD", "eResetHUD", "be")
}
public eResetHUD(id)
{
if(get_user_flags(id)&ADMIN_LEVEL_A)
set_user_health(id,200);
}
页:
1
[2]