edited 1×, last 16.06.18 06:46:38 pm
Forum
CS2D Scripts how do the commands and the ranks folder separate?how do the commands and the ranks folder separate?
2 replies 1
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.
1