Raised This Month: $ Target: $400
 0% 

[REQ] Small plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 05-26-2017 , 16:58   Re: [REQ] Small plugin.
Reply With Quote #11

Quote:
Originally Posted by DjSoftero View Post
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))

Tested or no ?
__________________
shame on you if you flashed me once, shame on me if you flashed me twice.
Mostafa abukhalaf 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