Thread: [Suggestion / Subplugin Request] [Req] Need ZP Plugin
View Single Post
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-22-2011 , 00:22   Re: [Req] Need ZP Plugin
Reply With Quote #12

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <zombieplague>

#define PLUGIN "People with this flag gain extra 5 ammo"
#define VERSION "0.1"
#define AUTHOR "MuhdZaim"

new cvar_ammo

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
cvar_ammo register_cvar("zp_people_flag_amount""5")
}

public 
client_connect(id)
{
    if ( 
is_user_connected(id) )
    {
        if ( 
get_user_flags(id) && ADMIN_LEVEL_A )
        {
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num cvar_ammo ) )
        }
    }

Nedd STEAM for this

client_connect(id) will only detect player that connected with steam . It have several way for non-steam but I won't support
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline