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

[Help] Give Ammo Pack [ZP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xenon
Junior Member
Join Date: Sep 2008
Old 09-17-2008 , 08:55   [Help] Give Ammo Pack [ZP]
Reply With Quote #1

Hello i am new in pawn
and I wondered how you could make a plugin for giving ammo packs in Zombie Plague By MeRcyLeZZ .Example:

zp_giveap <name> <amount>,

I suppose I should use the include "<zombieplague>"

/ * Sets a player's ammo pack count * /
native zp_set_user_ammo_packs (id, amount)

but really do not know how I'm very inexperienced,thank you very much

Last edited by Xenon; 09-17-2008 at 09:00.
Xenon is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-17-2008 , 09:35   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #2

Try that :

Code:
    #include <amxmodx>     #include <amxmisc>     #include <zombieplague>         public plugin_init ()     {         register_plugin ( "ZP: Give Ammo", "1.0.0", "Arkshine" );         register_clcmd ( "zp_giveap", "CmdGiveAP", ADMIN_RCON, "- zp_giveap <name> <amount> : Give Ammo Packs" );     }         public CmdGiveAP ( id, level, cid )     {         if ( !cmd_access ( id, level, cid, 3 ) )         {             return PLUGIN_HANDLED;         }                 new s_Name[ 32 ], s_Amount[ 4 ];                 read_argv ( 1, s_Name, charsmax ( s_Name ) );         read_argv ( 2, s_Amount, charsmax ( s_Amount ) );                 new i_Target = cmd_target ( id, s_Name, 2 );                 if ( !i_Target )         {             client_print ( id, print_console, "(!) Player not found" );             return PLUGIN_HANDLED;         }                 zp_set_user_ammo_packs ( i_Target, max ( 1, str_to_num ( s_Amount ) ) );                 return PLUGIN_HANDLED;     }
__________________
Arkshine is offline
Xenon
Junior Member
Join Date: Sep 2008
Old 09-17-2008 , 09:54   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #3

Thaannk youuu , very useful it works ,thanks.
Xenon is offline
Old 12-02-2008, 12:54
sapir5522
This message has been deleted by sapir5522.
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 12-20-2008 , 16:59   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #4

very good =)

thnx
AfteR. is offline
1sland
BANNED
Join Date: Nov 2008
Location: Who cares
Old 12-22-2008 , 11:53   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #5

how to make it work with SteamID and ip ?
1sland is offline
Send a message via ICQ to 1sland Send a message via Skype™ to 1sland
luoyunfeng
Junior Member
Join Date: May 2009
Old 05-20-2009 , 02:16   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #6

Quote:
Originally Posted by Xenon View Post
Hello i am new in pawn
and I wondered how you could make a plugin for giving ammo packs in Zombie Plague By MeRcyLeZZ .Example:

zp_giveap <name> <amount>,

I suppose I should use the include "<zombieplague>"

/ * Sets a player's ammo pack count * /
native zp_set_user_ammo_packs (id, amount)

but really do not know how I'm very inexperienced,thank you very much
how to use
luoyunfeng is offline
luoyunfeng
Junior Member
Join Date: May 2009
Old 05-20-2009 , 02:45   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #7

someone help

Last edited by luoyunfeng; 05-20-2009 at 03:13.
luoyunfeng is offline
csocsi96
New Member
Join Date: Oct 2009
Old 10-09-2009 , 15:24   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #8

Hello,
I am Henrik, and I can't use It, but i wanted to add ammo packs to people.
Where can I download the full plugin? (.sma, .amxx) file?

Best Regards,
Henrik Varga

Last edited by Exolent[jNr]; 10-09-2009 at 15:25. Reason: Don't post in all bold.
csocsi96 is offline
MustD1e
Senior Member
Join Date: Apr 2010
Old 07-04-2010 , 14:44   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #9

There is plugin with players menu and custom amount ammo packs? Maybe someone will continue to work on plugin?
__________________

Fly with us
MustD1e is offline
Balgaa
Senior Member
Join Date: Mar 2010
Old 07-22-2011 , 23:27   Re: [Help] Give Ammo Pack [ZP]
Reply With Quote #10

thanks, good plugin...

i am using someone's admin only updated and other type admin supported version...
Balgaa is offline
Reply


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 07:21.


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