Raised This Month: $99 Target: $400
 24% 

Spawn Health Bug Fix v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Technical/Development        Approver:   ConnorMcLeod (74)
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-23-2010 , 17:06   Spawn Health Bug Fix v2.0
Reply With Quote #1

Spawn Health Bug Fix v2.0


When a new round begins and you are spawned, it's usually happening to see in the bottom of the screen an incorrect value of health.
Spawn Health Bug Fix v2.0 repairs this bug.

Required extensions:

Code:
HamSandwich
Fakemeta
Attached Files
File Type: sma Get Plugin or Get Source (spawn_health_bug_fix.sma - 1081 views - 551 Bytes)
__________________

Last edited by claudiuhks; 09-22-2018 at 00:52.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-23-2010 , 17:10   Re: [AMXX] Life MSG
Reply With Quote #2

So this fixes the problem, when someone spawns and its shows 1 HP and where did this bug come from? If this fixes it then thank you
vL. is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-23-2010 , 17:12   Re: [AMXX] Life MSG
Reply With Quote #3

Probably from the server's engine extensions.
__________________

Last edited by claudiuhks; 04-20-2012 at 20:29.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-23-2010 , 17:15   Re: [AMXX] Life MSG
Reply With Quote #4

Ty mate, going on my server ASAP
vL. is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-23-2010 , 17:29   Re: [AMXX] Life MSG
Reply With Quote #5

It's like we are unable to check player 32 while he's playing.
He is only a ghost.
__________________

Last edited by claudiuhks; 04-20-2012 at 20:34.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-23-2010 , 18:31   Re: [AMXX] Life MSG
Reply With Quote #6

You have to filter 1st spawn, it occurs between client_connect and client_putinserver.
Also, cache get_user_msgid value in a global cvar.
May be only send that message when player id is 32, and pause the plugin if maxplayers is different from 32.

Are you sure that you have to send a message at spawn PRE and spawn POST ?
__________________
- tired and retired -

Last edited by ConnorMcLeod; 10-23-2010 at 18:34.
ConnorMcLeod is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 10-24-2010 , 01:24   Re: [AMXX] Life MSG
Reply With Quote #7

you should add alive check ^^
lazarev is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-24-2010 , 09:26   Re: [AMXX] Life MSG
Reply With Quote #8

Also make sure the server is 32 slots and player id is 32.
Is health updated fine when player 32 takes damage ?
Do you really need to send Health at pre AND post spawn ?
__________________
- tired and retired -
ConnorMcLeod is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-26-2010 , 07:27   Re: [AMXX] Life MSG
Reply With Quote #9

You also don't need two functions if you're doing the exact same thing, you could just use AtSpawn() for both hooks.
__________________
Hunter-Digital is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-26-2010 , 13:49   Re: [AMXX] Life MSG
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Also make sure the server is 32 slots and player id is 32.
Is health updated fine when player 32 takes damage ?
Do you really need to send Health at pre AND post spawn ?
Well my server isnt 32 slots but some players still have this bug.
vL. is offline
Reply


Thread Tools
Display Modes

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 18:54.


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