Solved plugins run time errors

Installation Problems Support
Post Reply
User avatar
OxiCorm
Member
Member
Posts: 33
Joined: 7 years ago
Contact:

plugins run time errors

#1

Post by OxiCorm » 7 years ago

Hi rahemm as isaid best infector and best defeder didnt worked with me also thunder effect here some errors from logs

L 03/12/2017 - 12:25:16: [AMXX] Plugin "ze_best_infector.amxx" failed to load: Plugin uses an unknown function (name "ze_give_user_multijump") - check your modules.ini.

L 03/12/2017 - 12:25:16: [AMXX] Plugin "ze_best_defender.amxx" failed to load: Plugin uses an unknown function (name "ze_give_user_multijump") - check your modules.ini.

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#2

Post by johnnysins2000 » 7 years ago

Why don't you read the instructions carefully?


Installation & Instructions:
Simply install it like any plugin. You should install Multi-Jump Plugin so best defender get Multijump.

http://escapers-zone.xyz/viewtopic.php? ... b016011027
Nobody Is That Busy If They Make Time :roll:

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#3

Post by johnnysins2000 » 7 years ago

If u don't want the MultiJump PLugin or don't want to reward Multjump to the person just simply use this code :-

Code: Select all

#include <zombie_escape>

// Variables
new Float:g_fDamage[33], iBestDefIndex

// Cvars
new cvar_show_chat_notice

public plugin_init()
{
	register_plugin("[ZE] Best Defender", "1.0", "Raheem")
	
	// Hook Chains
	RegisterHookChain(RG_CBasePlayer_TakeDamage, "Fw_TakeDamage_Post", 1)
	RegisterHookChain(RG_CBasePlayer_Spawn, "Fw_PlayerSpawn_Post", 1)
	
	// Cvars
	cvar_show_chat_notice = register_cvar("ze_best_def_chat_notice", "1")
}

public Fw_TakeDamage_Post(iVictim, iInflictor, iAttacker, Float:fDamage, bitsDamageType)
{
	if (!is_user_alive(iVictim) || !is_user_alive(iAttacker))
		return HC_SUPERCEDE
	
	g_fDamage[iAttacker] += fDamage
	return HC_CONTINUE
}

public ze_roundend()
{
	iBestDefIndex = Get_Best_Deffender_ID()
}

public Fw_PlayerSpawn_Post(id)
{
	if (get_pcvar_num(cvar_show_chat_notice) != 0)
	{
		if (iBestDefIndex == 0)
			return
		
		new szName[32]
		get_user_name(iBestDefIndex, szName, charsmax(szName))
		
		{
			ze_colored_print(id, "!tBest Defender Was!y: !g%s!y. !tDamage!y: !g%i!y.", szName, floatround(g_fDamage[id])) 
		}
	} 
	
	// Delay Needed
	set_task(3.0, "Rest_Damage", id, _, _, "a", 1)
}

public Rest_Damage(id)
{
	g_fDamage[id] = 0.0
}

public Sort_Best_Defender(elem1, elem2)
{
	if(g_fDamage[elem1] > g_fDamage[elem2])
	{
		return -1
	}
	else if(g_fDamage[elem1] < g_fDamage[elem2])
	{
		return 1
	}
	return 0
}

public Get_Best_Deffender_ID()
{
	new iPlayerIndex[32], iPlayersNum
	get_players(iPlayerIndex, iPlayersNum)
	
	SortCustom1D(iPlayerIndex, iPlayersNum, "Sort_Best_Defender") 
	
	return iPlayerIndex[0]
}
Nobody Is That Busy If They Make Time :roll:

User avatar
OxiCorm
Member
Member
Posts: 33
Joined: 7 years ago
Contact:

#4

Post by OxiCorm » 7 years ago

Multi jump already installed :3

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#5

Post by johnnysins2000 » 7 years ago

OxiCorm wrote: 7 years ago Multi jump already installed :3

http://escapers-zone.xyz/viewtopic.php? ... d352a4e0fa


Install this one and put it in the plugins.ini and if u get any errors then tell me !
Nobody Is That Busy If They Make Time :roll:

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 2 guests