edited 1×, last 16.06.18 06:46:38 pm
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
how do the commands and the ranks folder separate?
2 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
So to put it simply (this is a pseudocode)
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
add hook join with function A function A(id) io open a file called lets say "user"..player(id,"usgn") (or can be steam id if you prefer it over usgn id) read the contents use the contents how you wish end add hook leave with function B function B(id) io open a file "user"..player(id,"usgn") (or again, steam) write the contents you have in your variables save end
Refer to http://lua-users.org/wiki/IoLibraryTutorial for this.
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)