Raised This Month: $ Target: $400
 0% 

Subplugin Submission Zombie Plague - Give Full Ammo Packs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-08-2009 , 22:24   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #1

Quote:
Originally Posted by joropito View Post
This plugin gives you the ability to multiply by 100 the ammo packs of a user.

Use the command: zp_fullammo USER
Indent it:
PHP Code:
public zpFullAmmo(id,level,cid
{
    if (
cmd_access(id,level,cid,2))
    {
        new 
arg[32];
        
read_argv(1,arg,31);
        new 
player cmd_target(id,arg,7);
        
        if (
player)
        {
            
zp_set_user_ammo_packs(player10 zp_get_user_ammo_packs(player));
        }
    }
    
    return 
PLUGIN_HANDLED;

__________________

Last edited by joaquimandrade; 03-08-2009 at 23:23.
joaquimandrade is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-09-2009 , 08:18   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #2

Quote:
Originally Posted by joaquimandrade View Post
Indent it:
PHP Code:
public zpFullAmmo(id,level,cid
{
    if (
cmd_access(id,level,cid,2))
    {
        new 
arg[32];
        
read_argv(1,arg,31);
        new 
player cmd_target(id,arg,7);
        
        if (
player)
        {
            
zp_set_user_ammo_packs(player10 zp_get_user_ammo_packs(player));
        }
    }
    
    return 
PLUGIN_HANDLED;


Done. UPDATED
joropito is offline
Send a message via MSN to joropito
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 10-10-2010 , 11:15   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #3

whem i put zp_fullammo.amxx to plugins-zplague (sub-plugin) and i write retart to my console, and it didnt open hdsl again, i deleted zp_fullammo from plu-zplague, i managed start hdsl again, what did i do wrong?
jonnzus 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 16:24.


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