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

Subplugin Submission Zombie Plague Special 4.5 [Patch v2] (03 September 2023)


Post New Thread Reply   
 
Thread Tools Display Modes
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 07-16-2018 , 23:33   Re: Zombie Plague Special 4.2 (27 June 2018)
Reply With Quote #81

Quote:
Originally Posted by Perfect Scrash View Post
See if another plugin is not interfering in the speed. Like some extra itens with speed etc.
Yep thats it.

This plugin

http://zppv.boards.net/thread/1729/e...st-m4a1-humans
Mark.uG is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-22-2018 , 08:00   Re: Zombie Plague Special 4.2 (27 June 2018)
Reply With Quote #82

Suggestion:
- Adding native to get knockback
- Changing from only painshockfree to stun
__________________
My plugin:
Celena Luna is offline
adrenaline02
Junior Member
Join Date: Sep 2018
Old 09-13-2018 , 05:09   Re: Zombie Plague Special 4.2 (27 June 2018)
Reply With Quote #83

hello!
how i can add a extraitems for human
i try goldenak47 and (zp_extra_golden bad load) why?
Please help me !
adrenaline02 is offline
Balage74
Member
Join Date: Dec 2006
Old 09-14-2018 , 19:00   Re: Zombie Plague Special 4.2 (27 June 2018)
Reply With Quote #84

Quote:
Originally Posted by adrenaline02 View Post
hello!
how i can add a extraitems for human
i try goldenak47 and (zp_extra_golden bad load) why?
Please help me !

i think just search this (beginning on the code) :
Quote:
#include <zombieplague>
and replace:
Quote:
#include <zombie_plague_special>
and compile locally, not on internet.... (need zombie_plague_special.inc file)
__________________

Last edited by Balage74; 09-14-2018 at 19:03.
Balage74 is offline
Send a message via MSN to Balage74 Send a message via Skype™ to Balage74
wilianmaique
BANNED
Join Date: Nov 2016
Old 11-15-2018 , 15:45   Re: Zombie Plague Special 4.2 (27 June 2018)
Reply With Quote #85

Quote:
Originally Posted by adrenaline02 View Post
hello!
how i can add a extraitems for human
i try goldenak47 and (zp_extra_golden bad load) why?
Please help me !
Here:

Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <zombie_plague_special>

#define PLUGIN  "[ZP] Extra Item: Golden AK e M4"
#define VERSION "1.0"
#define AUTHOR  "Wilian M."

#define PREFIXCHAT "!g[CS Revo!]"

#define xValidPlayer(%1) (1 <= %1 <= xMaxPlayers)

new xGAk47_V[64] = "models/csr/itens/v_gak47.mdl"
new xGAk47_P[64] = "models/csr/itens/p_gak47.mdl"

new xGM4A1_V[64] = "models/csr/itens/v_gm4a1.mdl"
new xGM4A1_P[64] = "models/csr/itens/p_gm4a1.mdl"

new xCvars[2], xHasGolden[33][2], xBullets[33], xItemIdAk, xItemIdM4, xMaxPlayers, xSprDot

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("HLTV", "xNewRound", "a", "1=0", "2=0")
	register_event("CurWeapon", "xCurWeapon", "be", "1=1", "3>0")

	RegisterHam(Ham_TakeDamage, "player", "xHamTakeDamagePre")

	xItemIdAk = zp_register_extra_item("Golden AK47", 25, ZP_TEAM_HUMAN)
	xItemIdM4 = zp_register_extra_item("Golden M4A1", 20, ZP_TEAM_HUMAN)

	xCvars[0] = register_cvar("zp_gak47_dmg_multiplier", "2.5")
	xCvars[1] = register_cvar("zp_gm4a1_dmg_multiplier", "2.0")

	xMaxPlayers = get_maxplayers()
}

public xNewRound()
{
	new i

	for(i = 1; i < xMaxPlayers; i++)
	{
		xHasGolden[i][0] = false
		xHasGolden[i][1] = false
	}
}

public client_disconnected(id)
{
	xHasGolden[id][0] = false
	xHasGolden[id][1] = false
	xBullets[id] = false
}

public zp_user_humanized_post(id, classid)
{
	xHasGolden[id][0] = false
	xHasGolden[id][1] = false
}

public zp_user_infected_post(id, infector, classid)
{
	xHasGolden[id][0] = false
	xHasGolden[id][1] = false
}


public plugin_precache()
{
	precache_model(xGAk47_V)
	precache_model(xGAk47_P)

	precache_model(xGM4A1_V)
	precache_model(xGM4A1_P)

	xSprDot = precache_model("sprites/dot.spr")
}

public zp_extra_item_selected(id, itemid)
{
	if(itemid == xItemIdAk)
	{
		if(xValidPlayer(id))
		{
			give_item(id, "weapon_ak47")
			cs_set_user_bpammo(id, CSW_AK47, 90)

			xClientPrintColor(id, "%s !yVocê comprou uma !tGolden AK-47!y.", PREFIXCHAT)
			client_cmd(id, "spk items/ammopickup1")

			xHasGolden[id][0] = true
		}
	}

	if(itemid == xItemIdM4)
	{
		if(xValidPlayer(id))
		{
			give_item(id, "weapon_m4a1")
			cs_set_user_bpammo(id, CSW_M4A1, 90)

			xClientPrintColor(id, "%s !yVocê comprou uma !tGolden M4A1!y.", PREFIXCHAT)
			client_cmd(id, "spk items/ammopickup1")

			xHasGolden[id][1] = true
		}
	}
}

public zp_extra_item_selected_pre(id, itemid)
{
	if(itemid == xItemIdAk)
	{
		static text[32]

		if(zp_get_zombie_count() < 4)
		{
			formatex(text, charsmax (text) , "[Min: 4 Zombies!]")
			zp_extra_item_textadd(text)

			return ZP_PLUGIN_HANDLED
		}

		if(xHasGolden[id][0])
		{
			formatex(text, charsmax (text) , "[Você já possui este item!]")
			zp_extra_item_textadd(text)

			return ZP_PLUGIN_HANDLED
		}
	}

	if(itemid == xItemIdM4)
	{
		static text[32]

		if(zp_get_zombie_count() < 4)
		{
			formatex(text, charsmax (text) , "[Min: 4 Zombies!]")
			zp_extra_item_textadd(text)

			return ZP_PLUGIN_HANDLED
		}

		if(xHasGolden[id][1])
		{
			formatex(text, charsmax (text) , "[Você já possui este item!]")
			zp_extra_item_textadd(text)

			return ZP_PLUGIN_HANDLED
		}
	}

	return PLUGIN_CONTINUE
}

public xHamTakeDamagePre(victim, inflictor, attacker, Float:damage)
{
	if(xValidPlayer(attacker))
	{
		if(get_user_weapon(attacker) == CSW_M4A1 && xHasGolden[attacker][1])
			SetHamParamFloat(4, damage * get_pcvar_float(xCvars[1]))

		if(get_user_weapon(attacker) == CSW_AK47 && xHasGolden[attacker][0])
			SetHamParamFloat(4, damage * get_pcvar_float(xCvars[0]))
	}
}

public xCurWeapon(id)
{
	new xWpnId, clip, ammo
	xWpnId = get_user_weapon(id, clip, ammo)
	
	if(xWpnId == CSW_AK47 && xHasGolden[id][0])
	{
		set_pev(id, pev_viewmodel2, xGAk47_V)
		set_pev(id, pev_weaponmodel2, xGAk47_P)
	}
	
	if(xWpnId == CSW_M4A1 && xHasGolden[id][1])
	{
		set_pev(id, pev_viewmodel2, xGM4A1_V)
		set_pev(id, pev_weaponmodel2, xGM4A1_P)
	}

	if((xBullets[id] > clip) && (xWpnId == CSW_M4A1 && xHasGolden[id][1]) || (xWpnId == CSW_AK47 && xHasGolden[id][0]))
	{
		new vec1[3], vec2[3]
		get_user_origin(id, vec1, 1) 
		get_user_origin(id, vec2, 4) 
		
		message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
		write_byte(0)     
		write_coord(vec1[0])
		write_coord(vec1[1])
		write_coord(vec1[2])
		write_coord(vec2[0])
		write_coord(vec2[1])
		write_coord(vec2[2])
		write_short(xSprDot)
		write_byte(1)
		write_byte(5)
		write_byte(2)
		write_byte(5) // def 10
		write_byte(0)
		write_byte(255)
		write_byte(215)
		write_byte(0)
		write_byte(200)
		write_byte(100) // def 150
		message_end()
	}
	
	xBullets[id] = clip
}


stock xClientPrintColor(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, "!t2", "^0")
	
	if (id) players[0] = id; else get_players(players, count, "ch")

	new i
	for(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()
		}
	}
}
wilianmaique is offline
Send a message via Skype™ to wilianmaique
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 11-18-2018 , 20:19   Re: Zombie Plague Special 4.2 (27 June 2018) [Added Beta]
Reply With Quote #86

Added Beta Version: https://github.com/PerfectScrash/Zom...20-%20Beta%202

Code:
* 4.3
	- Fixed Native: zp_get_special_class_id
	- Fixed Native: zp_get_zombie_class_realname
	- Fixed Native: zp_get_extra_item_realname
	- Fixed Native: zp_make_user_special
	- Fixed Native: zp_get_gamemode_id
	- Fixed Native: zp_get_extra_item_realname
	- Fixed Native: zp_get_random_player
	- Fixed Zombie armor damage.
	- Removed Replace Chars when you register some item/class/gamemode/special class/weapon with [ or ] chars (Update your amx_settings for prevent bugs)
	- Added Native: zp_start_game_mod(gameid, force_start = 0)
	- Added Native: zp_set_next_game_mode(gameid)
	- Added Cvar: zp_zombie_idle_sound
	- Added Separate Grenade Configuration (Can adding some effects without editing main plugin)
	- Changed Swarm chossing player system to same system of multi infection (Before are chossing by Team now its randomly)
	- Added Cvar: zp_swarm_ratio
	- Added Native: zpsp_register_extra_item(const name[], cost, const teams[])
__________________

Last edited by Perfect Scrash; 11-18-2018 at 20:20.
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
HishamGamer
Junior Member
Join Date: Dec 2018
Location: Black hole.
Old 03-17-2019 , 08:25   Re: Zombie Plague Special 4.2 (27 June 2018) [Added Beta]
Reply With Quote #87

seems great
__________________
The best and most beautiful things in the world cannot be seen or even touched - they must be felt with the heart.
-Helen Keller

Always do your best. What you plant now, you will harvest later.
-Og Mandino

HishamGamer is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 06-04-2019 , 20:59   Re: Zombie Plague Special 4.3 (04 June 2019) [LAST VERSION]
Reply With Quote #88

Plugin Updated 04/06/2019
Code:
* 4.3
	- Fixed amx_settings_api [Update your amx_settings_api for prevent bugs]
	- Fixed Admin Flags (Bug only presents in 4.2 Version)
	- Fixed Native: zp_get_special_class_id
	- Fixed Native: zp_get_zombie_class_realname
	- Fixed Native: zp_get_extra_item_realname
	- Fixed Native: zp_make_user_special
	- Fixed Native: zp_get_gamemode_id
	- Fixed Native: zp_get_extra_item_realname
	- Fixed Native: zp_get_random_player
	- Fixed Zombie armor damage.
	- Removed Replace Chars when you register some item/class/gamemode/special class/weapon with [ or ] chars (Update your amx_settings for prevent bugs)
	- Added Native: zp_start_game_mod(gameid, force_start = 0)
	- Added Native: zp_set_next_game_mode(gameid)
	- Added Native: zp_is_special_class_enable(is_zm, classid)
	- Added Native: zp_is_gamemode_enable(modeid)
	- Added Cvar: zp_zombie_idle_sound
	- Added Separate Grenade Configuration [Update your zombie_plague_special.ini file for prevent bugs]
	- Fixed Escape support for external gamemodes when enable gamemode only in escape map
	- Changed Swarm chossing player system to same system of multi infection (Before are chossing by Team now its randomly)
	- Added Cvar: zp_swarm_ratio
	- Added Escape support for enable/disable internal gamemodes in a certain modes
	- .cfg update [Need Change for prevent possible bugs]
	- Optmized Code
This is last update for adding things. If exists future updates its for fixing bugs only.

How to upgrading 4.x to 4.3
- First at all update your amx_settings_api to amx_settings in a file "Zombie Plague Special 4.3.zip" [Contain fixes]
- Update your zombie_plague_special lang file
- Update your zombie_plague_special.ini
- Update your zombie_plague_special.cfg
- Add new resources from a file "Zombie Plague Special 4.3.zip"
- Have Fun !!!!
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 06-05-2019 , 03:05   Re: Zombie Plague Special 4.3 (04 June 2019) [LAST VERSION]
Reply With Quote #89

Fixed amx_settings_api - what was wrong with this api?
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 06-05-2019 , 10:55   Re: Zombie Plague Special 4.3 (04 June 2019) [LAST VERSION]
Reply With Quote #90

Quote:
Originally Posted by Krtola View Post
Fixed amx_settings_api - what was wrong with this api?
Have a small bug when section name contains some chars like "[ ]"
I changed this for fix it: https://forums.alliedmods.net/showpo...4&postcount=26
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
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 22:22.


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