AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Spawn Health Bug Fix v2.0 (https://forums.alliedmods.net/showthread.php?t=141407)

claudiuhks 10-23-2010 17:06

Spawn Health Bug Fix v2.0
 
1 Attachment(s)
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


vL. 10-23-2010 17:10

Re: [AMXX] Life MSG
 
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 :)

claudiuhks 10-23-2010 17:12

Re: [AMXX] Life MSG
 
Probably from the server's engine extensions.

vL. 10-23-2010 17:15

Re: [AMXX] Life MSG
 
Ty mate, going on my server ASAP :)

claudiuhks 10-23-2010 17:29

Re: [AMXX] Life MSG
 
It's like we are unable to check player 32 while he's playing.
He is only a ghost.

ConnorMcLeod 10-23-2010 18:31

Re: [AMXX] Life MSG
 
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 ?

lazarev 10-24-2010 01:24

Re: [AMXX] Life MSG
 
you should add alive check ^^

ConnorMcLeod 10-24-2010 09:26

Re: [AMXX] Life MSG
 
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 ?

Hunter-Digital 10-26-2010 07:27

Re: [AMXX] Life MSG
 
You also don't need two functions if you're doing the exact same thing, you could just use AtSpawn() for both hooks.

vL. 10-26-2010 13:49

Re: [AMXX] Life MSG
 
Quote:

Originally Posted by ConnorMcLeod (Post 1332981)
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.


All times are GMT -4. The time now is 13:45.

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