Raised This Month: $ Target: $400
 0% 

[REQ] Small plugin.


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

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 #2

You can't test it yourself?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mostafa abukhalaf
Member
Join Date: Dec 2015
Location: Jordan
Old 05-26-2017 , 20:36   Re: [REQ] Small plugin.
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
You can't test it yourself?
I can my man friend, I can.
__________________
shame on you if you flashed me once, shame on me if you flashed me twice.
Mostafa abukhalaf 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 23:17.


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