Raised This Month: $ Target: $400
 0% 

Solved Save/Get multiple different values in the same variable per player


Post New Thread Reply   
 
Thread Tools Display Modes
sursista
Senior Member
Join Date: Jul 2010
Location: Spain
Old 02-18-2022 , 07:35   Re: Save/Get multiple different values in the same variable per player
Reply With Quote #11

Quote:
Originally Posted by zXCaptainXz View Post
There are many things I don't understand in your code, most importantly why are you giving assists in both Ham_TakeDamage and Ham_TakeDamage forwards. You should either do it in one or the other, either you get an assist immediately after dealing 1/3 the original health of the player or you get an assist after the player gets killed by someone other than you and you dealt more than 1/3 the original health of the player. The latter case makes more sense anyway, assists should be given when the victim dies. I coded a plugin which probably does what you want with way less clutter, if you want you can try it and see if it solves your problem.
Edited: I read wrong, I'll check if this way is better

Edited 2: Problem solved. I seem to like to complicate my life when trying to create a thousand checks for a condition to be met.

I will rewrite my plugin taking your plugin as an example.

Thanks @zXCaptainXz

Last edited by sursista; 02-18-2022 at 08:23.
sursista is offline
Send a message via MSN to sursista Send a message via Skype™ to sursista
Reply



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 10:21.


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