[FUN] Player out of range (0)
Hello.
I have made something for my server, an HP on Frag plugin (Feel free to use, but not publish under your name) Anyway, I get errors. Quote:
Code:
Please tell me what I am doing wrong! |
Re: [FUN] Player out of range (0)
Make shure that the player is connected! if(!is_user_connected(id)) return; add this check in "increase_hp" and "check_hp" publics...at the top.
|
Re: [FUN] Player out of range (0)
Tha't not the matter Alka.
DeathMsg is a global event. Id can not be passed by this way. Code:
|
Re: [FUN] Player out of range (0)
Also client_death is the name of a csx forward, you should use another name for this event.
I would use pcvars and fakemeta. Code:
|
Re: [FUN] Player out of range (0)
Quote:
|
Re: [FUN] Player out of range (0)
Thank you very much connorr!
(And thank you, Alka, and arkshine for helping out too!) You should release that! I´m just off to test it :) I made some modifications to the code though, to make it neater. Here it is: Code:
I also added an CVar to set if you should abort the giving HP if it was a TK, pretty useful if you, like me, are running an FFA server ;) |
Re: [FUN] Player out of range (0)
Code:
You didn't understand this, in case you would give HP only for HS, and not for normal kills, cvar amx_hponfrag_health would be set to 0, then var_hptogive would be 0, so this -> if (!var_hptogive) would match. I don't understand why you set both hp cvars to 25, in that case you don't have to check if it's a HS or not ;) Quote:
|
All times are GMT -4. The time now is 23:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.