Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zXCaptainXz
Member
Join Date: May 2017
Old 02-18-2022 , 06:59   Re: Save/Get multiple different values in the same variable per player
Reply With Quote #10

There are many things I don't understand in your code, most importantly why are you giving assists in both Ham_TakeDamage and Ham_Killed 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.
Attached Files
File Type: sma Get Plugin or Get Source (zp50_assist.sma - 55 views - 2.7 KB)

Last edited by zXCaptainXz; 02-18-2022 at 06:59.
zXCaptainXz is offline
 



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 05:22.


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