Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Donate Ammo Packs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r1laX
Senior Member
Join Date: Mar 2010
Old 04-12-2010 , 05:50   [ZP] Donate Ammo Packs
Reply With Quote #1

[ZP] Donate Ammo Packs

:: Description ::

This plugin allows players to donate ammo packs to other players by typing /donate <name> <amount>

:: Credits ::

The credits goes to PomanoB as i just copy from the plug WEBS STATS
and i've just added a message on roundstart and color message
abdul-rehman for the original plug
Attached Files
File Type: sma Get Plugin or Get Source (zp_donate_ap.sma - 17104 views - 3.0 KB)
__________________
I'm New
SORRY FOR MY BAD ENGLISH

Last edited by r1laX; 04-12-2010 at 06:11.
r1laX is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 04-12-2010 , 06:09   Re: [ZP] Donate Ammo Packs
Reply With Quote #2


This is my plugin which i made for warhead here is the original one:
http://forums.alliedmods.net/showpos...1&postcount=13


You should atleast give credits to me also bcoz you totally cheated the code....
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
r1laX
Senior Member
Join Date: Mar 2010
Old 04-12-2010 , 06:10   Re: [ZP] Donate Ammo Packs
Reply With Quote #3

Quote:
Originally Posted by abdul-rehman View Post

This is my plugin which i made for warhead here is the original one:
http://forums.alliedmods.net/showpos...1&postcount=13


You should atleast give credits to me also bcoz you totally cheated the code....
ok credits to u also
__________________
I'm New
SORRY FOR MY BAD ENGLISH
r1laX is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 04-12-2010 , 06:10   Re: [ZP] Donate Ammo Packs
Reply With Quote #4

Thnx..!
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 04-12-2010 , 14:22   Re: [ZP] Donate Ammo Packs
Reply With Quote #5

useless(already exists), unapproved.

Post new plugins -> new plugin submissions.

If they'll be approved - they'll be moved here.
Lure.d is offline
Send a message via Skype™ to Lure.d
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 04-13-2010 , 03:28   Re: [ZP] Donate Ammo Packs
Reply With Quote #6

Approvers have told me to post plugins here bcoz these are ZP plugins and all of us including metalicross post ZP plugins here not in the new plugin submissions..!!!
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 04-16-2010 , 11:41   Re: [ZP] Donate Ammo Packs
Reply With Quote #7

very nice godd job
__________________
GuTo is offline
Send a message via Skype™ to GuTo
ErrorStereotype
Senior Member
Join Date: Feb 2011
Location: Bosnia and Herzegovina
Old 03-15-2011 , 12:55   Re: [ZP] Donate Ammo Packs
Reply With Quote #8

Here translated on serbian by me

Quote:
/********************************************* ***\
==================================
* || [ZP] Donate Plugin v1.0|| *
==================================
*by @bdul!*

-------------------
*||DESCRIPTION||*
-------------------

With this plugin u can donate ammo packs
to others. Usage say:
/donate <nickname> <amount>

\******************************************** ****/

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

new const PLUGIN[] = "[ZP] Donate Plugin"
new const AUTHOR[] = "@bdul!"
new const VERSION[] = "1.0"

new g_msgSayText

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say", "handleSay")
register_clcmd("say_team", "handleSay")

g_msgSayText = get_user_msgid("SayText")
}


public handleSay(id)
{
new args[64]

read_args(args, charsmax(args))
remove_quotes(args)

new arg1[16]
new arg2[32]

strbreak(args, arg1, charsmax(arg1), arg2, charsmax(arg2))

if (equal(arg1,"/donate", 7))
donate(id, arg2)

}

public donate(id, arg[])
{
new to[32], count[10]
strbreak(arg, to, 31, count, 9)

if (!to[0] || !count[0])
{
client_printcolor(0, "/g[ZP Donate] /yDa doniras pakete kucaj u chatu:/g /donate <ime> <kolicina>")
return
}
new ammo_sender = zp_get_user_ammo_packs(id)
new ammo
if (equal(count, "all"))
ammo = ammo_sender
else
ammo = str_to_num(count)
if (ammo <= 0)
{
client_printcolor(id, "/g[ZP Donate] /yNeispravan iznos !")
return
}
ammo_sender -= ammo
if (ammo_sender < 0)
{
ammo+=ammo_sender
ammo_sender = 0

}
new reciever = cmd_target(id, to, (CMDTARGET_OBEY_IMMUNITY|CMDTARGET_ALLOW_SELF ))
if (!reciever || reciever == id)
{
client_printcolor(id, "/g[ZP Donate] /yKlijent sa tim imenom nije nadjen")
return
}

zp_set_user_ammo_packs(reciever, zp_get_user_ammo_packs(reciever) + ammo)
zp_set_user_ammo_packs(id, ammo_sender)
new aName[32], vName[32]

get_user_name(id, aName, 31)
get_user_name(reciever, vName, 31)

set_hudmessage(255, 10, 10, -1.0, 0.3, 1, 6.0, 6.0)
show_hudmessage(id, "%s Donated %d Ammo Packs To %s", aName, ammo, vName)

set_hudmessage(255, 10, 10, -1.0, 0.3, 1, 6.0, 6.0)
show_hudmessage(reciever, "%s Je dao %d Paketa %s", aName, ammo, vName)
}

stock client_printcolor(id, const input[], any:...)
{
new iCount = 1, iPlayers[32]

static szMsg[191]
vformat(szMsg, charsmax(szMsg), input, 3)

replace_all(szMsg, 190, "/g", "^4") // green txt
replace_all(szMsg, 190, "/y", "^1") // orange txt
replace_all(szMsg, 190, "/ctr", "^3") // team txt
replace_all(szMsg, 190, "/w", "^0") // team txt

if(id) iPlayers[0] = id
else get_players(iPlayers, iCount, "ch")

for (new i = 0; i < iCount; i++)
{
if (is_user_connected(iPlayers[i]))
{
message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, iPlayers[i])
write_byte(iPlayers[i])
write_string(szMsg)
message_end()
}
}
}
ErrorStereotype is offline
CL0NE
New Member
Join Date: Oct 2009
Location: Ukraine
Old 10-24-2011 , 12:19   Re: [ZP] Donate Ammo Packs
Reply With Quote #9

array g_UserTotalAmmo never used
CL0NE is offline
Send a message via ICQ to CL0NE
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 10-24-2011 , 18:23   Re: [ZP] Donate Ammo Packs
Reply With Quote #10

http://forums.alliedmods.net/showpos...1&postcount=13
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh 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:15.


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