Raised This Month: $ Target: $400
 0% 

[HELP] VIP M249 + HE + Flash Bombs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-09-2021 , 10:09   Re: [HELP] VIP M249 + HE + Flash Bombs
Reply With Quote #2

Use this instead, no need to use ReAPI:
PHP Code:
#include <zombie_escape>
 
public plugin_init()
{
    
register_plugin("GIVE M249 & HE & FLASH BOMBS FOR VIPS""1.0""Null")
}
 
public 
ze_user_humanized(id)
{
    
// Not Admin? Exit the function...
    
if (!get_user_flags(id) & ADMIN_LEVEL_H)
        return
   
    
set_task(0.1"Give_M249"id)
}
 
public 
Give_M249(id)
{
    
// Give M249
    
give_item(id"weapon_m249")
    
cs_set_user_bpammo(idCSW_M249200)
   
    
// Give x2 Fire Nades
    
give_item(id"weapon_hegrenade")
    
cs_set_user_bpammo(idCSW_HEGRENADE2)
   
    
// Give x2 Frost Nades
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG2

ReAPI: https://dev-cs.ru/resources/73/
__________________

Last edited by nG_getwreck; 04-09-2021 at 10:27. Reason: Replaced "~" with "!"
nG_getwreck is offline
 



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 19:55.


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