图 1.
【插件资讯】插件来源:网路资源转载提供会员参考
使用指令:自行修改编译及参考
http://bbs.mychat.tw/re...id=811130安装路径:自行修改编译及参考
http://bbs.mychat.tw/re...id=811130【插件介绍】复制程式
public plugin_init()
{
register_plugin(0, "1.0.0", "KinSprite");
register_cvar("amx_unlimitgrenade", "1", 0, 0.00);
return 0;
}
public grenade_throw(plIndex, greIndex, wpnID)
{
if (get_cvar_num("amx_unlimitgrenade"))
{
new param[2];
param[0] = plIndex;
param[1] = wpnID;
new var1 = Heap_4;
var1[0] = 340;
set_task(0.20, "give_grenade", plIndex + 13265, param, 2, var1, 0);
return 0;
}
return 0;
}
public give_grenade(param[2])
{
new plIndex = param[0];
new wpnID = param[1];
if (!is_user_alive(plIndex))
{
return 0;
}
if (wpnID == 4)
{
give_item(plIndex, "weapon_hegrenade");
}
else
{
if (wpnID == 9)
{
give_item(plIndex, "weapon_smokegrenade");
}
give_item(plIndex, "weapon_flashbang");
}
return 0;
}