無限手榴彈插件!(有圖)

Home Home
引用 | 編輯 龍心
2017-10-19 20:26
樓主
推文 x0

圖 1.


【插件資訊】

插件來源:網路資源轉載提供會員參考
使用指令:自行修改編譯及參考http://bbs.mychat.tw/reads.php?tid=811130
安裝路徑:自行修改編譯及參考http://bbs.mychat.tw/reads.php?tid=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;
}



獻花 x0