2021-04-04, 04:01 PM
(This post was last modified: 2021-04-04, 07:10 PM by robertocaribbean.)
(2021-04-04, 03:39 PM)CrypticSin Wrote: Hi thanks for your help!?
What if i wanted to store more user data like player kills, gamescore, deaths etc.. Will i have to follow the same pattern as you showed for the skins or is there a shorter way of saving these information?
For the game score, it's simple because there are built-in functions that keep track of the score of a player, like "GetPlayerScore", so you need to get the player's score before he exits, use UPDATE, and then when he connects use "SetPlayerScore" in a similar way as we have to do it with their skin.
For other things like player kills and deaths, I guess you have to make a custom function that keep track of that values and then do the same process that you need to do for the score or skin.