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

Suggestion / Subplugin Request [Req/Idea] Drop ammo packs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-24-2016 , 14:29   [Req/Idea] Drop ammo packs
Reply With Quote #1

I was just looking through some amx plugins and found this: https://forums.alliedmods.net/showthread.php?t=68834

and thought it would be pretty cool idea if you could do that for zombies mode, you have banks anyway so only need to be more careful and this would make it more risky to use ammo packs, or have them out.

the plugin in the link there is that you drop money when you die.

if anyone decides to do it dont forget to support zp4.3 =).
__________________

ANY SCRIPTER ON THIS FORUM HAS FREE VIP/ADMIN IN MY SERVER!

Last edited by New and Clueless; 01-24-2016 at 14:31.
New and Clueless is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-25-2016 , 09:58   Re: [Req/Idea] Drop ammo packs
Reply With Quote #2

Is there a plugin that drop chickens.. but I do not remember the name now.
__________________








CrazY. is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 01-26-2016 , 10:53   Re: [Req/Idea] Drop ammo packs
Reply With Quote #3

See if is this:
http://zombie-mod.ru/counter-strike/...ll_reward.html
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-29-2016 , 13:01   Re: [Req/Idea] Drop ammo packs
Reply With Quote #4

Quote:
Originally Posted by Perfect Scrash View Post
pretty close but not what im looking for, this drops ammo packs after you kill somebody and it gives a set amount of ammo packs e.g. 2 is set in that plugin, i want all the ammo packs you have on you right now to drop for anyone to take, so for example i have 200 ammo packs and im buying stuff and somebody kill me, 200 ammo packs drop and fastest person can take, but if i have 600 in bank and 200 out to spend, bank ammo packs will not drop only the 200 ammo you took out from bank. But now i see this will probably take some scripting and this forum is pretty much dead so i dont see this plugin happening, unless somebody wants some tasks then please, everybody will love it!
__________________

ANY SCRIPTER ON THIS FORUM HAS FREE VIP/ADMIN IN MY SERVER!
New and Clueless is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 01-30-2016 , 01:11   Re: [Req/Idea] Drop ammo packs
Reply With Quote #5

Quote:
Originally Posted by New and Clueless View Post
pretty close but not what im looking for, this drops ammo packs after you kill somebody and it gives a set amount of ammo packs e.g. 2 is set in that plugin, i want all the ammo packs you have on you right now to drop for anyone to take, so for example i have 200 ammo packs and im buying stuff and somebody kill me, 200 ammo packs drop and fastest person can take, but if i have 600 in bank and 200 out to spend, bank ammo packs will not drop only the 200 ammo you took out from bank. But now i see this will probably take some scripting and this forum is pretty much dead so i dont see this plugin happening, unless somebody wants some tasks then please, everybody will love it!
Dropping all of a player's ammo packs is certainly not a good idea
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 01-30-2016 , 11:29   Re: [Req/Idea] Drop ammo packs
Reply With Quote #6

See if is this:
Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

#define PLUGIN "[ZP] Drop galinha"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande | Perfect Scrash"

new g_model[] = "models/chick.mdl"
new g_sound[] = "chicken.wav"

#define GALINHA_CLASSNAME "zp_galinha"

new cvar_amount

public plugin_init() {
	
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_forward(FM_Touch, "fwdTouch")
	
	register_logevent("round_start", 2, "1=Round_Start")
	
	register_event("DeathMsg", "player_death", "a")
	
	cvar_amount = register_cvar("zp_chicken_amount", "2")
}

public plugin_precache()  {
	precache_model(g_model)
	precache_sound(g_sound)
}

public round_start() {
	new ent = -1
	while ((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", GALINHA_CLASSNAME)) != 0) {
		engfunc(EngFunc_RemoveEntity, ent)
	}
}

public player_death() {
	new victim = read_data(2)
	drop_galinha(victim)
}

public drop_galinha(id) {
	
	new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
	
	new Float:origin[3]
	pev(id, pev_origin, origin)
	
	set_pev(ent, pev_origin, origin)
	set_pev(ent, pev_classname, GALINHA_CLASSNAME)
	engfunc(EngFunc_SetModel, ent, g_model)
	set_pev(ent, pev_solid, SOLID_TRIGGER)
	set_pev(ent, pev_movetype, MOVETYPE_TOSS)
	engfunc(EngFunc_DropToFloor, ent)
	
	set_pev(ent, pev_renderfx, kRenderFxGlowShell)
	
	new Float:color[3]
	color[0] = random_float(0.0, 255.0)
	color[1] = random_float(0.0, 255.0)
	color[2] = random_float(0.0, 255.0)
	set_pev(ent, pev_rendercolor, color)
}

public fwdTouch(ent, id) { 
	
	if(!pev_valid(ent) || !is_user_alive(id)) return FMRES_IGNORED
	
	new classname[32]
	pev(ent, pev_classname, classname, charsmax(classname))
	
	if(equali(classname, GALINHA_CLASSNAME)) {
		
		emit_sound(id, CHAN_AUTO, g_sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
		engfunc(EngFunc_RemoveEntity, ent)
		zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + get_pcvar_num(cvar_amount))
		client_printcolor(id, "!g[ZP]!y Voce pegou a !tGalinha Gift!y e Ganhou !t%d!y Ammo Packs.", get_pcvar_num(cvar_amount))
	}
	return FMRES_IGNORED
}


stock client_printcolor(const id, const input[], any:...) {
	
	new count = 1, players[32]
	static msg[191]
	vformat(msg, 190, input, 3)
	
	replace_all(msg, 190, "!g", "^4")
	replace_all(msg, 190, "!y", "^1")
	replace_all(msg, 190, "!t", "^3")
	replace_all(msg, 190, "!team2", "^0")
	
	if(id)
		players[0] = id;
	else
		get_players(players, count, "ch")
	
	for (new i = 0; i < count; i++) {
		
		if(is_user_connected(players[i])) {
			
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
			write_byte(players[i]);
			write_string(msg);
			message_end();
		}
	}
}
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-30-2016 , 11:35   Re: [Req/Idea] Drop ammo packs
Reply With Quote #7

Quote:
Originally Posted by Chihuahuax View Post
Dropping all of a player's ammo packs is certainly not a good idea
why not? if they are not careful with their ammo packs they will lose it, and somebody else will gain it, i think its a fun idea, if they dont want to lose ammo packs they can keep them in bank!

edit: yep i see the flaws now
__________________

ANY SCRIPTER ON THIS FORUM HAS FREE VIP/ADMIN IN MY SERVER!

Last edited by New and Clueless; 01-30-2016 at 11:48.
New and Clueless 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 02:58.


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