log_kill and frags problems
hi.. the problem with this code is that when you kill someone, it sets the frags to you (1 / 0) but the victim gets (-1 / 1).. so if you kill him again u will have (2 / 0) and the victim (-2 / 2)
I dunno what the problem is.. can any one help me with this? PHP Code:
|
Re: log_kill and frags problems
probably because you get the victim's frags - 1 when he died.
new vfrags = get_user_frags( victim ); set_user_frags( victim, vfrags - 1 ); |
Re: log_kill and frags problems
ok.. but what should i put then?
PHP Code:
|
Re: log_kill and frags problems
why would you take kills from a person becasue they died ?
|
Re: log_kill and frags problems
well i thought that too.. so i did this and the pluing still have the same problem..
PHP Code:
|
Re: log_kill and frags problems
this is not related to your problem, but you don't have to block DeathMsg when you use user_silentkill, it will do that for u.
|
Re: log_kill and frags problems
well look at the first post, it isn't with the block DeathMsg.. i did that to see if that helps cuz i saw some codes with that.. but guess what?? it didnt make any difference.. the problem is still there and i really dunno how to fix it, also i don't have much time cuz im working like crazy..
I hope someone could help me with this.. |
Re: log_kill and frags problems
The problem you're having is because the scoreboard doesn't update after set_frags...
here's an example i used for ESF: Code:
new g_iMsgScoreInfo = get_user_msgid( "ScoreInfo" ) |
Re: log_kill and frags problems
going to see if it works.. thanx..
|
Re: log_kill and frags problems
Karma karma karma, spamming for karma :D hehe
but like i said, you might have to find the right arguments for CS. btw, " g_iMsgScoreInfo " = get_user_msgid( "ScoreInfo" ) fixed my post |
| All times are GMT -4. The time now is 06:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.