Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [Req] Need ZP Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yOou Know Me
BANNED
Join Date: Oct 2009
Old 12-18-2011 , 12:46   [Req] Need ZP Plugin
Reply With Quote #1

Hi guys i need plugin for ZP. Admin with flag "m" gets +5 additional ammo each round.
yOou Know Me is offline
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 12-18-2011 , 12:51   Re: [Req] Need ZP Plugin
Reply With Quote #2

zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id)+get_cvar_num("vip_ free_ammo_ct"));
client_print(id, print_chat, "%L", LANG_PLAYER, "HUMAN_FREE_AMMO", get_cvar_num("vip_free_ammo_ct"))
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-18-2011 , 12:53   Re: [Req] Need ZP Plugin
Reply With Quote #3

what flags is that ?
ADMIN_* ??
__________________
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
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 12-18-2011 , 12:55   Re: [Req] Need ZP Plugin
Reply With Quote #4

Quote:
Originally Posted by JoKeR LauGh View Post
what flags is that ?
ADMIN_* ??
u can make
#define ADMINACCESS ADMIN_LEVEL_M or whatever but there are more lines...i cant tell him everything...
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-18-2011 , 12:59   Re: [Req] Need ZP Plugin
Reply With Quote #5

ADMIN_LEVEL_M is not existed ?
__________________
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
dfwu.dark
Senior Member
Join Date: Mar 2011
Location: In dreams...
Old 12-18-2011 , 13:03   Re: [Req] Need ZP Plugin
Reply With Quote #6

Quote:
Originally Posted by JoKeR LauGh View Post
ADMIN_LEVEL_M is not existed ?
I just took an example....i dont remember all flags in users.ini ....so make it A or anything else :p
__________________
[url]http://hw-movie.blogspot.com[/url]
Watch Latest Movies Online For Free !...
dfwu.dark is offline
Send a message via Skype™ to dfwu.dark
yOou Know Me
BANNED
Join Date: Oct 2009
Old 12-18-2011 , 16:14   Re: [Req] Need ZP Plugin
Reply With Quote #7

#define ADMIN_LEVEL_A // "m" additional flag "in users.ini"

Last edited by yOou Know Me; 12-18-2011 at 16:14.
yOou Know Me is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-18-2011 , 23:48   Re: [Req] Need ZP Plugin
Reply With Quote #8

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

#include <amxmodx>
#include <zombieplague>

#define PLUGIN "FLAG M Ability"
#define VERSION "0.1"
#define AUTHOR "MuhdZaim"

new cvar_ammo

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
cvar_ammo register_cvar("zp_flag_a_ammo""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_numcvar_ammo ) )
        }
    }

__________________
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.

Last edited by JoKeR LauGh; 12-18-2011 at 23:52.
JoKeR LauGh is offline
yOou Know Me
BANNED
Join Date: Oct 2009
Old 12-19-2011 , 13:28   Re: [Req] Need ZP Plugin
Reply With Quote #9

The plugin is running but it gives me nothing..
yOou Know Me is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-19-2011 , 18:35   Re: [Req] Need ZP Plugin
Reply With Quote #10

wait . I've missed something .

EDIT : try this one

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

#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN "AmmoPack on this flags"
#define VERSION "0.1"
#define AUTHOR "MuhdZaim"

#define FLAGS ADMIN_LEVEL_A

new cvar_ammo

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""Fw_Spawn"1)
    
    
cvar_ammo register_cvar("zp_extra_ap""5")
}

public 
Fw_Spawn(id
{
    if ( 
is_user_alive(id) ) 
    {
        if ( 
get_user_flags(id) && FLAGS 
        {
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num cvar_ammo ) )
        }
    }

__________________
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.

Last edited by JoKeR LauGh; 12-19-2011 at 18:50.
JoKeR LauGh is offline
Reply



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 00:28.


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