Raised This Month: $ Target: $400
 0% 

[REQ] Small plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 05-25-2017 , 12:45   Re: [REQ] Small plugin.
Reply With Quote #1

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

#define PLUGIN "Give ammo packs" 
#define VERSION "1.0.2" 
#define AUTHOR "Fry!+sempz" 

#if ADMIN_RESERVATION & ADMIN_MENU
#endif 

new g_max_ammo_packs 

public plugin_init()  

    
register_plugin(PLUGINVERSIONAUTHOR
     
    
g_max_ammo_packs register_cvar("howmanyammopacksfriend""999999999"
     
    
register_forward(FM_PlayerPreThink"vip_admin_ammo_packs"


public 
vip_admin_ammo_packs(id

    for (
id 1id <= 32id++) 
    { 
        new 
g_ammo_packs zp_get_user_ammo_packs(id
        if(
zv_get_user_flags(id))
        {
            if (
g_ammo_packs == get_pcvar_num(g_max_ammo_packs)) 
            { 
                
zp_set_user_ammo_packs(idg_ammo_packs 0
            }
        }
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

Added VIP :p

Quote:
PS - I hope that the code is a joke.
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
Reply


Thread Tools
Display Modes

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