Raised This Month: $51 Target: $400
 12% 

[REQ] Small plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 01-17-2016 , 09:02   [REQ] Small plugin.
Reply With Quote #1

hey all.
i need a plugin for vip and admins, witch it gives the vips and admin 999999999 ammo pack.
please help and ty.
P.S : ONly ADMINS AND VIPS.
__________________
shame on you if you flashed me once, shame on me if you flashed me twice.
Mostafa abukhalaf is offline
Old 02-01-2016, 15:59
Mostafa abukhalaf
This message has been deleted by Mostafa abukhalaf.
JoaoVieira
Senior Member
Join Date: May 2013
Location: Portugal
Old 02-01-2016 , 17:11   Re: [REQ] Small plugin.
Reply With Quote #2

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

#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 (
g_ammo_packs == get_pcvar_num(g_max_ammo_packs))
        {
            
zp_set_user_ammo_packs(idg_ammo_packs 0)
        }        
    }


NOT TESTED
Attached Files
File Type: inc zombieplague.inc (11.2 KB, 103 views)

Last edited by JoaoVieira; 02-01-2016 at 17:15.
JoaoVieira is offline
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 05-25-2017 , 10:21   Re: [REQ] Small plugin.
Reply With Quote #3

Alright thx man gotta try it now.
__________________
shame on you if you flashed me once, shame on me if you flashed me twice.
Mostafa abukhalaf is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-25-2017 , 10:26   Re: [REQ] Small plugin.
Reply With Quote #4

Quote:
Originally Posted by Mostafa abukhalaf View Post
Alright thx man gotta try it now.
Don't rush it. We can wait another year.

PS - I hope that the code is a joke.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 #5

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
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-25-2017 , 13:28   Re: [REQ] Small plugin.
Reply With Quote #6

I still hope it's a joke. Using client_prethink for this - LOL! Even using a loop in there, double lol.

PHP Code:
#if ADMIN_RESERVATION & ADMIN_MENU
#endif 
WTF
__________________

Last edited by OciXCrom; 05-25-2017 at 13:29.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 05-25-2017 , 16:54   Re: [REQ] Small plugin.
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
Don't rush it. We can wait another year.

PS - I hope that the code is a joke.
Will u stop being rude ? I was busy with school/other stuff so I left the forum for one year and even more, and left the whole game then I wanted to come back plz understand its not yhat complicated...
__________________
shame on you if you flashed me once, shame on me if you flashed me twice.
Mostafa abukhalaf is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 05-26-2017 , 02:27   Re: [REQ] Small plugin.
Reply With Quote #8

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
Old 05-26-2017, 16:55
Mostafa abukhalaf
This message has been deleted by Mostafa abukhalaf.
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 05-26-2017 , 16:58   Re: [REQ] Small plugin.
Reply With Quote #9

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
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2017 , 17:47   Re: [REQ] Small plugin.
Reply With Quote #10

You can't test it yourself?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 15:09.


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