This Way is Good For Get Client Dead?
Hello i was wonder if this way can get client dead probably without any mistake
that i use register_message for "ScoreAttrib" and check if the flag was dead and else mean he's alive for example of code : PHP Code:
but i wonder is that way is bad or something like that i don't know about? cuz when i used DeathMsg,there's some cases that no detected .. for example when player killed by C4 in (Counter-Strike) it's not sent message about that.. |
Re: This Way is Good For Get Client Dead?
Why not just use is_user_alive()?
|
Re: This Way is Good For Get Client Dead?
as i said :
Quote:
ex : PHP Code:
|
Re: This Way is Good For Get Client Dead?
No check is user alive
|
Re: This Way is Good For Get Client Dead?
Code:
Code:
Code:
|
Re: This Way is Good For Get Client Dead?
Quote:
|
Re: This Way is Good For Get Client Dead?
Quote:
for simple purpose.. And 'DeathMsg' Not Detect Client When Be Killed By C4 Explode in 'Counter-Strike' But 'ScoreAttrib' Detect All Kind Of Die.. Quote:
, but i discuss why not using this method - i mean 'ScoreAttrib' - instead of 'DeathMsg' In Simple Purpose that no need to know who's killer or other info .. |
Re: This Way is Good For Get Client Dead?
Because if some plugin is messing with ScoreAttrib your code logic will fail. Just use hamsandwich.
|
Re: This Way is Good For Get Client Dead?
Because it's a message.
Messages can be blocked, so if your plugin isn't the first in the list, the other plugins might block it and the hook won't trigger. As for events, as far as I understood, they're some kind of post-messages and cannot be blocked(someone correct me if I'm wrong). |
Re: This Way is Good For Get Client Dead?
Quote:
Quote:
|
| All times are GMT -4. The time now is 17:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.