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

Help / Support WriteDest_Parm: not a client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Death Stroke
Junior Member
Join Date: Mar 2021
Location: Algeria.
Old 06-23-2022 , 13:30   WriteDest_Parm: not a client
Reply With Quote #1

Hi again,

My server is crashing with this error, i just have added round leaders plugin but whenever round start it crash, before was crashing when i launche the server, but with my modification it crash when round started here is part i modified. I really need help in this!
Thanks in advance.

Here what i have done, correct me please if i did something wrong.

Code:
if(pev(iPlayer,pev_flags) & FL_CLIENT || !is_user_connected(iPlayer))
			continue;
Code:
public CBasePlayer__Killed_Pre(iVictim, iAttacker, iGib)
{
	if(pev(iAttacker,pev_flags) & FL_CLIENT || !is_user_connected(iAttacker) || zp_get_user_zombie(iAttacker) || iVictim == iAttacker)
		return HAM_IGNORED;

	if(zp_get_user_zombie(iVictim) && !zp_get_user_zombie(iAttacker))
	{
		iUserData[KILLED][iAttacker]++;
	}

	return HAM_IGNORED;
}
Code:
public CBasePlayer__TakeDamage_Pre(iVictim, iInflictor, iAttacker, Float: flDamage)
{
	if(pev(iAttacker,pev_flags) & FL_CLIENT || !is_user_connected(iAttacker) || zp_get_user_zombie(iAttacker) || iVictim == iAttacker)
		return HAM_IGNORED;

	if(zp_get_user_zombie(iVictim) && !zp_get_user_zombie(iAttacker))
	{
		iUserData[DAMAGE][iAttacker] += floatround(flDamage);
	}

	return HAM_IGNORED;
}
Death Stroke 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 00:43.


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