|
发表于 2009-3-22 13:10:00
|
显示全部楼层
来自 中国–天津–天津–红桥区
....
#include <amxmodx>
#include <zombieplague>
#define VERSION "1.0"
new g_buy_survivor
public plugin_init()
{
register_plugin("购买幸存者", VERSION, "Speed")
g_buy_survivor = zp_register_extra_item("我要当幸存者", 20, ZP_TEAM_HUMAN)
}
public zp_extra_item_selected(player, itemid)
{
if (itemid == g_buy_survivor)
{
new name[32]
get_user_name(player, name, 31)
server_cmd("amx_show_activity 0")
server_cmd("zp_survivor %s", name)
server_cmd("amx_show_activity 2")
set_task(1.0, "check", player)
}
}
public check(id)
{
if (!zp_get_user_survivor(id))
{
static ammo
ammo = zp_get_user_ammo_packs(id)
zp_set_user_ammo_packs(id, ammo + 35)
}
else
{
new name[32]
get_user_name(id, name, 31)
set_hudmessage(255, 0, 0, 0.05, 0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "%s 购买了幸存者 !!!", name)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
*/
#include <amxmodx>
#include <zombieplague>
#define VERSION "1.0"
new g_buy_nemesis
public plugin_init()
{
register_plugin("购买复仇者", VERSION, "Speed")
g_buy_nemesis = zp_register_extra_item("我要当复仇者", 20, ZP_TEAM_HUMAN)
}
public zp_extra_item_selected(player, itemid)
{
if (itemid == g_buy_nemesis)
{
new name[32]
get_user_name(player, name, 31)
server_cmd("amx_show_activity 0")
server_cmd("zp_nemesis %s", name)
server_cmd("amx_show_activity 2")
set_task(1.0, "check", player)
}
}
public check(id)
{
if (!zp_get_user_nemesis(id))
{
static ammo
ammo = zp_get_user_ammo_packs(id)
zp_set_user_ammo_packs(id, ammo + 35)
}
else
{
new name[32]
get_user_name(id, name, 31)
set_hudmessage(255, 0, 0, 0.05, 0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "%s 购买了复仇者 !!!", name)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
*/
#include <amxmodx>
#include <zombieplague>
#define VERSION "1.0"
new g_buy_zombie
public plugin_init()
{
register_plugin("购买僵尸王", VERSION, "Speed")
g_buy_zombie = zp_register_extra_item("我要当僵尸王", 15, ZP_TEAM_HUMAN)
}
public zp_extra_item_selected(player, itemid)
{
if (itemid == g_buy_zombie)
{
new name[32]
get_user_name(player, name, 31)
server_cmd("amx_show_activity 0")
server_cmd("zp_zombie %s", name)
server_cmd("amx_show_activity 2")
set_task(1.0, "check", player)
}
}
public check(id)
{
if (!zp_get_user_zombie(id))
{
static ammo
ammo = zp_get_user_ammo_packs(id)
zp_set_user_ammo_packs(id, ammo + 35)
}
else
{
new name[32]
get_user_name(id, name, 31)
set_hudmessage(255, 0, 0, 0.05, 0.45, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "%s 购买了僵尸王 !!!", name)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
*/ |
|