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
Author Message
sursista
Senior Member
Join Date: Jul 2010
Location: Spain
Old 02-18-2022 , 05:36   Re: Save/Get multiple different values in the same variable per player
Reply With Quote #1

Quote:
Originally Posted by zXCaptainXz View Post
g_he_attacker
g_count_victim_zombie/g_count_victim_human

What is the point of these variables?


Code:
g_fDamage_Human[victim][attacker] >= g_hp_victim[victim]
You are comparing a float to an integer, IDK if that even works in AMXX.

g_count_victim_zombie/g_count_victim_human detects if the attacker has more than one assist, since when resetting the variables I only need to subtract the value to 1 for each dead victim (this way even if the variable is reset, he will still have more assists thanks to this variable)

g_he_attacker makes it so that if the attacker gets an assist and he kills the victim, all of his variables are reset, otherwise they will also be counted as assists (I could have also made a return for this)

Last edited by sursista; 02-18-2022 at 05:46. Reason: edit
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 11:43.


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