Raised This Month: $ Target: $400
 0% 

[ZP] Give 100 Ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
RiFGanG
Member
Join Date: May 2015
Location: AL-Houceïma, Morroco
Old 06-23-2015 , 07:45   [ZP] Give 100 Ammo
Reply With Quote #1

This Plugin Gives 100 AmmoPacKs A Player .

Commands

rg_giveammo "Name"

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

public plugin_init() {
    
register_plugin("[R#G] Full AmmoPacKs""0.2""BooHLaaL");
    
register_concmd("rg_giveammo""RG_Give_Ammo"ADMIN_IMMUNITY"rg_giveammo < Name > ");
}

public 
RG_Give_Ammo(idlevelcid) {
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED;

    new 
tmp[32];
    
read_argv(1tmp31);
    new 
player cmd_target(idtmp7);
    if(!
is_user_connected(player))
        return 
PLUGIN_HANDLED;

    
zp_set_user_ammo_packs(player100 zp_get_user_ammo_packs(player));
    return 
PLUGIN_HANDLED;


Last edited by RiFGanG; 07-14-2015 at 15:30.
RiFGanG is offline
 


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:19.


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