Raised This Month: $ Target: $400
 0% 

client_damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BudaB
Junior Member
Join Date: Apr 2011
Old 06-17-2011 , 14:44   client_damage
Reply With Quote #1

Quote:
L 06/15/2011 - 22:06:06: [HAMSANDWICH] ParamStack is empty!
L 06/15/2011 - 22:06:06: [AMXX] Displaying debug trace (plugin "jailbreak_manager_en.amxx")
L 06/15/2011 - 22:06:06: [AMXX] Run time error 10: native error (native "SetHamParamFloat")
L 06/15/2011 - 22:06:06: [AMXX] [0] jailbreak_manager_en.sma::client_damage (line 365)
Code:
RegisterHam(Ham_TakeDamage, "player", "client_damage")

public client_damage(victim, entid, attacker, Float:damage, damagebits)
{
	if(!is_user_connected(victim) || !is_user_connected(attacker))
		return HAM_IGNORED
	
	if(get_pcvar_num(cvar_revolt)) {	
		if(cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT) {
			if(!revolt_started) start_revolt()
		}
	}
	if(get_pcvar_num(cvar_crowbar)) {
		if(cs_get_user_team(attacker) == CS_TEAM_T && attacker == crowbaruser) {
			SetHamParamFloat(4, damage * 50.0)
			return HAM_OVERRIDE
		}		
	}	
	return HAM_IGNORED
}
BudaB is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-17-2011 , 14:53   Re: client_damage
Reply With Quote #2

client_damage() is a forward used by csx
Use another callback name and it'll work fine.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 23:29.


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