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

[TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 09-25-2015 , 13:08   [TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils
Reply With Quote #1

Hello, This tutorial will show you how to fix the bug of nemesis/assassin/bombardier to use the powers of zombie classes. Follow the steps below and be happy.

First you open the main plugin and search for this:

If for ZP 4.3/ZPA
Code:
// Native: zp_get_user_zombie_class
public native_get_user_zombie_class(id)
{
	return g_zombieclass[id];
}
If for Zombie plague shade:
Code:
// Native: zp_get_user_zombie_class
public native_get_user_zombie_class(id)
{
	if (!is_user_valid(id))
	{
		log_error(AMX_ERR_NATIVE, "[ZP] Invalid Player (%d)", id)
		return -1;
	}

	return g_zombieclass[id];
}
And replace for this:

If for ZP 4.3:
Code:
// Native: zp_get_user_zombie_class
public native_get_user_zombie_class(id) {
	if(g_nemesis[id])
		return -1
	
	return g_zombieclass[id];
}
If for Zombie Plague Advance:
Code:
// Native: zp_get_user_zombie_class
public native_get_user_zombie_class(id) {
	if(g_nemesis[id] || g_assassin[id])
		return -1
	
	return g_zombieclass[id];
}
If For Zombie Plague Shade:
Code:
// Native: zp_get_user_zombie_class
public native_get_user_zombie_class(id)
{
	if (!is_user_valid(id))
	{
		log_error(AMX_ERR_NATIVE, "[ZP] Invalid Player (%d)", id)
		return -1;
	}
	
	if(g_nemesis[id] || g_assassin[id] || g_bombardier[id])
		return -1

	return g_zombieclass[id];
}
__________________

Last edited by Perfect Scrash; 05-14-2016 at 19:05.
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 09-26-2015 , 06:54   Re: [TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils
Reply With Quote #2

thank's
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 09-26-2015 , 10:30   Re: [TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils
Reply With Quote #3

Thank You Very Much Is Working 100%
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه

Last edited by dr hicham; 09-26-2015 at 10:30.
dr hicham is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 05-14-2016 , 21:01   Re: [TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils
Reply With Quote #4

So, If we make this, we will not need to add checks for nemesis and assassin in the future zombie classes, which we will add to our zombie server?

Last edited by GlobalPlague; 05-14-2016 at 21:04.
GlobalPlague is offline
Perfect Scrash
Senior Member
Join Date: Aug 2013
Location: Brazil
Old 05-15-2016 , 16:07   Re: [TUT] Fixing Nemesis/Assassin/Bombardier using zombie classes's skils
Reply With Quote #5

Quote:
Originally Posted by GlobalPlague View Post
So, If we make this, we will not need to add checks for nemesis and assassin in the future zombie classes, which we will add to our zombie server?
Is not needed because the most of zombie classes are using the native 'zp_get_user_zombie_class' for checking the current zombie class.

I have removed this checking from native 'zp_get_user_next_class' because generate bugs in some plugins (Like Class Limiter for ZP Special), that resulted in a update of tutorial and ZP Special's main plugin for fixing this.
__________________
Perfect Scrash is offline
Send a message via Skype™ to Perfect Scrash
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 14:59.


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