Raised This Month: $32 Target: $400
 8% 

Subplugin Submission Zombie Plague - Give Full Ammo Packs


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Exolent[jNr] (178)
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-08-2009 , 21:59   Zombie Plague - Give Full Ammo Packs
Reply With Quote #1

This plugin gives you the ability to multiply by 100 the ammo packs of a user.

Use the command: zp_fullammo USER

Updated to 0.2 (fixed as requested in thread)
Attached Files
File Type: sma Get Plugin or Get Source (zp_fullammo.sma - 26097 views - 573 Bytes)

Last edited by joropito; 10-02-2009 at 09:55.
joropito is offline
Send a message via MSN to joropito
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 #2

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
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 03-08-2009 , 23:10   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #3

if (!cmd_access(id,level,cid,2))

?

edit:

Quote:
Are you talking about the "!" ?. Updated.
yes :p
__________________

Last edited by IneedHelp; 03-08-2009 at 23:23.
IneedHelp is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-08-2009 , 23:17   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #4

Quote:
Originally Posted by IneedHelp View Post
if (!cmd_access(id,level,cid,2))

?
Are you talking about the "!" ?. Updated. Ok ( )
__________________

Last edited by joaquimandrade; 03-09-2009 at 00:12.
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 #5

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
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-09-2009 , 11:54   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #6

Cool

But doesnt this needs to be in Zombie Plague?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-09-2009 , 16:02   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #7

Quote:
Originally Posted by crazyeffect View Post
Cool

But doesnt this needs to be in Zombie Plague?
Does any moderator could change this thread to the corresponding group?

I'm newbie...
joropito is offline
Send a message via MSN to joropito
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-09-2009 , 22:04   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #8

MeRcyLeZZ was trying to make it clear Here. Anybody else disagrees can figure it out. But theirs so many, were still trying to come up with a way to segregate them from strictly approved section. I really dunno, im trying to locate as much as I can into 1 place, but that is outsourced, not here. And create a "new submissions" & "Approved" for Zplague extensions.
__________________
bmann_420 is offline
Speed!
BANNED
Join Date: Jan 2009
Old 03-12-2009 , 17:49   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #9

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
from your code:
PHP Code:
zp_set_user_ammo_packs(player10*zp_get_user_ammo_packs(player)); 
Speed! is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-13-2009 , 02:12   Re: Zombie Plague - Give Full Ammo Packs
Reply With Quote #10

Remove :

new name[32];
get_user_name(player,name,31);

Or use it...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 15:50.


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