血多
|
分享:
x0
|
[1.6][模組] 可以幫我設定這個嗎?
想要有獨立的模組,聲音.... 就是模組希望是可以分的.... 希望能幫幫忙,謝謝^^
#include <amxmodx> #include <zombieplague>
#define PLUGIN "进化基因" #define VERSION "1.0" #define AUTHOR "*C"
new const g_item_name2[] = { "【進化為草尼馬】" } const g_item_cost2 = 50
new g_give_nemesis, g_give_survivor, name[32]
public plugin_init() { register_cvar("zp_give_sos_gene",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY) g_give_nemesis = zp_register_extra_item(g_item_name2, g_item_cost2, ZP_TEAM_ZOMBIE) }
public zp_extra_item_selected(id, itemid) if (itemid == g_give_nemesis) { get_user_name(id, name, 31) set_hudmessage(0, 255, 0, -0.05, -0.45, 1, 0.0, 5.0, 1.0, 1.0, -1) show_hudmessage(0, "【 %s 】進化為草尼馬", name) set_task(0.5, "set_nemesis", id) }
public set_nemesis(id) { get_user_name(id, name, 31) server_cmd("amx_show_activity 0") server_cmd("zp_nemesis %s", name) server_cmd("amx_show_activity 2") }
|