Raised This Month: $ Target: $400
 0% 

Solved merge tasks (?)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-11-2021 , 12:16   Re: merge tasks (?)
Reply With Quote #2

untested

PHP Code:
#include <amxmodx>
#include <fun>
#include <csx>

new g_wid;

public 
plugin_init()
    
register_plugin("infinite_grenades""latest""kww")

public 
grenade_throw(idgidwid) {
    
g_wid wid;
    
set_task(0.1"giveGrenade"id);
}

public 
giveGrenade(id)
{
    switch(
g_wid)
    {
        case 
CSW_HEGRENADEgive_item(id"weapon_hegrenade");
        case 
CSW_FLASHBANGgive_item(id"weapon_flashbang");
        case 
CSW_SMOKEGRENADEgive_item(id"weapon_smokegrenade");
    }

__________________

Last edited by Napoleon_be; 06-11-2021 at 12:16.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode