23.09.2014, 16:47
I have some things for you:
1. Set all your player variables to 0 [reset them] after a player first register.
Reaosn: Why? this will keep the same variable stats for the next player connected with the precedent one's id.
Example: Josh(ID: 1) enters on the server, he register, gets max admin level as he owner's brother.
then: Micheal (ID :1 ) connects and gain all of Josh stats, and then his stats are saved, when disconnect.
Trust me, I had the same problem as you when I was creating my first server, without having any knowledge of how this works. All of my scripting problems I managed to solve them by myself.
1. Set all your player variables to 0 [reset them] after a player first register.
Reaosn: Why? this will keep the same variable stats for the next player connected with the precedent one's id.
Example: Josh(ID: 1) enters on the server, he register, gets max admin level as he owner's brother.
then: Micheal (ID :1 ) connects and gain all of Josh stats, and then his stats are saved, when disconnect.
Trust me, I had the same problem as you when I was creating my first server, without having any knowledge of how this works. All of my scripting problems I managed to solve them by myself.