求高手帮忙修改一下 不够钱,就打人闪光惩罚
求去掉赔偿金钱,闪到计数,禁止再购买等等。。。只想闪到掉血而已,謝了 求发下原来的源码 http://www.dt-club.net/forum.php?mod=viewthread&tid=43123&highlight=%E4%B8%8D%E5%A4%9F%E9%92%B1 http://www.dt-club.net/forum.php?mod=viewthread&tid=43123&highlight=%E4%B8%8D%E5%A4%9F%E9%92%B1 重新写了一个。没测试,你试试。#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "k1nader"
new Float:g_FlashbangExplodeTime;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_SetModel, "fw_SetModel", 1);
RegisterHam(Ham_Think, "grenade", "HamGrenadeThink", 0);
register_message(get_user_msgid("ScreenFade"), "MsgScreenFade");
}
public fw_SetModel(Ent, model[])
{
if (strlen(model) > 8 && (model == 'w' && model == '_' && model == 'f'))
{
new Float:dmgtime;
pev(Ent, pev_dmgtime, dmgtime);
if(dmgtime > 0.0)
{
new id = pev(Ent, pev_owner);
if (is_user_connected(id))
{
set_pev(Ent, pev_iuser3, CSW_FLASHBANG);
set_pev(Ent, pev_bInDuck, 1);
g_FlashbangExplodeTime = 0.0;
}
}
}
}
public HamGrenadeThink(Ent)
{
if(pev_valid(Ent) && pev(Ent, pev_iuser3) == CSW_FLASHBANG && pev(Ent, pev_bInDuck))
{
new Float:dmgtime;
pev(Ent, pev_dmgtime, dmgtime);
if(dmgtime <= get_gametime())
{
new id = pev(Ent, pev_owner);
if (is_user_connected(id))
g_FlashbangExplodeTime = get_gametime();
}
}
}
public MsgScreenFade(msgid, msgdest, id)
{
if(get_msg_arg_int(4) == 255 && get_msg_arg_int(5) == 255 && get_msg_arg_int(6) == 255)
{
if (is_user_alive(id))
{
static Sender;
Sender = 0;
static Float: fGameTime;
fGameTime = get_gametime();
for (new i = 1; i <= get_maxplayers(); i++)
{
if (g_FlashbangExplodeTime == fGameTime)
{
Sender = i;
break;
}
}
if (is_user_connected(Sender))
{
if (get_user_team(Sender) == get_user_team(id) && id != Sender)
{
new msg, name;
get_user_name(Sender, name, charsmax(name));
format(msg, charsmax(msg), "^3%s ^1闪到了你^4 揍他!", name);
client_color(id, id, msg);
user_slap(Sender, 8, 1);
}
}
}
}
}
public client_color(playerid, colorid, msg[])
{
message_begin(playerid ? MSG_ONE : MSG_ALL, get_user_msgid("SayText"), _, playerid)
write_byte(colorid)
write_string(msg)
message_end()
} sakulekingz 发表于 2014-12-9 15:55
重新写了一个。没测试,你试试。
#include
#include
先謝了,试试看 试了,編不了..不過謝了 ricky2008 发表于 2014-12-9 20:42
试了,編不了..不過謝了
编译不了? sakulekingz 发表于 2014-12-10 09:35
编译不了?
嗯,,编译不了.. ricky2008 发表于 2014-12-10 18:03
嗯,,编译不了..
不是吧,你给个编译不了的提示。
我可以编译的
页:
[1]
2