AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Give Ammo Pack [ZP] (https://forums.alliedmods.net/showthread.php?t=77617)

Xenon 09-17-2008 08:55

[Help] Give Ammo Pack [ZP]
 
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 :oops:

Arkshine 09-17-2008 09:35

Re: [Help] Give Ammo Pack [ZP]
 
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;     }

Xenon 09-17-2008 09:54

Re: [Help] Give Ammo Pack [ZP]
 
Thaannk youuu :) , very useful :) it works :wink:,thanks.

AfteR. 12-20-2008 16:59

Re: [Help] Give Ammo Pack [ZP]
 
very good =)

thnx

1sland 12-22-2008 11:53

Re: [Help] Give Ammo Pack [ZP]
 
how to make it work with SteamID and ip ?

luoyunfeng 05-20-2009 02:16

Re: [Help] Give Ammo Pack [ZP]
 
Quote:

Originally Posted by Xenon (Post 687100)
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 :oops:

how to use

luoyunfeng 05-20-2009 02:45

Re: [Help] Give Ammo Pack [ZP]
 
someone help

csocsi96 10-09-2009 15:24

Re: [Help] Give Ammo Pack [ZP]
 
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

MustD1e 07-04-2010 14:44

Re: [Help] Give Ammo Pack [ZP]
 
There is plugin with players menu and custom amount ammo packs? Maybe someone will continue to work on plugin?

Balgaa 07-22-2011 23:27

Re: [Help] Give Ammo Pack [ZP]
 
thanks, good plugin...

i am using someone's admin only updated and other type admin supported version...


All times are GMT -4. The time now is 23:39.

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