Raised This Month: $ Target: $400
 0% 

maximum user health and fantastic round ends


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mogel
Senior Member
Join Date: Jan 2007
Old 02-28-2007 , 11:21   Re: maximum user health and fantastic round ends
Reply With Quote #4

Moin,

Quote:
Originally Posted by XxAvalanchexX View Post
What is the problem with the log messages?
okay ... i delete some lines

Code:
og L 02/27/2007 - 20:55:52: Team "TERRORIST" triggered "Terrorists_Win" (CT "0") (T "1")
..
og L 02/27/2007 - 20:55:52: Team "TERRORIST" triggered "Terrorists_Win" (CT "0") (T "2")
double trigger of the same events at the same time (some times 3x) ... and suicide with "player"??

so i catch the event(s)
Code:
	register_event("SendAudio", "Event_TWin", "a", "2&%!MRAD_terwin")
	register_event("SendAudio", "Event_CTWin", "a", "2&%!MRAD_ctwin")
Code:
public Event_TWin() {
	
	// Fix zum dobble/trippel Trigger
	if (roundstatus != RS_RUNNING) return PLUGIN_CONTINUE
	
	if (HumanSide == CsTeam:CS_TEAM_T)
	{
		set_task(1.0, "Event_HumanWin_Thread")
	} else
	{
		set_task(1.0, "Event_BotWin_Thread")
	}

	Event_RoundEnd()
	
	return PLUGIN_CONTINUE
}
public Event_CTWin() {
	
	// Fix zum dobble/trippel Trigger
	if (roundstatus != RS_RUNNING) return PLUGIN_CONTINUE

	if (HumanSide == CsTeam:CS_TEAM_CT)
	{
		set_task(1.0, "Event_HumanWin_Thread")
	} else
	{
		set_task(1.0, "Event_BotWin_Thread")
	}

	Event_RoundEnd()
	
	return PLUGIN_CONTINUE
}
health-problem

i setted the bot-health to 250 and now works the player-level upgrade again (bevor, it jumps from 0 to 7 [maximum]) ... i do the same with the player-health and will show ... i think there is somewhere a byte-boundary (0..255)

hand, mogel
__________________
mogel is offline
 



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:44.


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