GeoB99: 's code on a brand new (!) cs2d folder and I got this:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
UDP socket initialized using port 65024 U.S.G.N.: Your game version is up to date! starting server... UDP socket initialized using port 36963 load map 'de_dust' ----- Server started ----- parsing Lua server script (mp_luaserver = 'server.lua') parsing Lua autorun script 'sys/lua/autorun/test.lua' Lua: Adding function 'JoinHook' to hook 'join' Lua: Adding function 'RoundEnd' to hook 'endround' Lua: Adding function 'DieHook' to hook 'die' Lua: Adding function 'LeavePlayer' to hook 'leave' LUA ERROR: sys/lua/autorun/test.lua:2: attempt to index global 'Player' (a nil value) -> sys/lua/autorun/test.lua:2: in function <sys/lua/autorun/test.lua:1> -> in Lua hook 'join', params: 1 U.S.G.N.: Sending serverlist ADD-request... U.S.G.N.: Server added to serverlist
And where do I check if rp_wanted[id]==true?
Image turning around player and changing size


Offline
its the only file though??
but this does nothing except adding the hooks...
.. you should learn a CS2D's engine. Let me write the code.
.
but I now learning!