• Save multiple variables to a player per round
    5 replies, posted
I'm having trouble finding information in regards to temp saving multiple variables (an unknown amount) information to a player per life. I'm wanting to properly reward the player with the most damage (To avoid somebody doing 95% of the damage and somebody hits for the last remaining 5% and takes the reward). I figured a table would be best but I can't seem to find where that would be possible..
Best way I can recommenced doing this through a couple different hooks and utilizing a table with player names as keys To get the damage being done you will need GM:ScalePlayerDamage To know when the player has actually died you will need GM:PostPlayerDeath
I know how to get damage and check if they are dead but can I assign a table to each player and reset once respawn that holds the users name how much damage?
So I just got back to working on my project and I had realized with Lua I can save list inside of lists.. so that there solves my stupid dilemma.
Also, you can save a table to a specific player using the player metatable.
Nice! That's really helpful it's probably a lot easier than looping through a list to call the metadata I'm sure as well.
Sorry, you need to Log In to post a reply to this thread.