Raised This Month: $ Target: $400
 0% 

[REQ] Small plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 05-26-2017 , 02:27   Re: [REQ] Small plugin.
Reply With Quote #9

PHP Code:
#include <amxmodx> 
#include <zombieplague> 

#define VIP ADMIN_LEVEL_H    //change to you own vip flag

#define PLUGIN "Give ammo packs" 
#define VERSION "1.0.0" 
#define AUTHOR "some random guy" 


new g_max_ammo_packs 

public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
     
    
g_max_ammo_packs register_cvar("zp_ammo_packs_for_vip""999999999"



public 
client_connect(id) {
    if(
get_user_flags(id) & VIP)
        
zp_set_user_ammo_packs(idget_pcvar_num(g_max_ammo_packs))


Last edited by DjSoftero; 05-26-2017 at 02:29. Reason: misstype
DjSoftero 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 23:17.


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