I have 2 problems about lua for my server.
I'm not a lua expert... and these are the problems.
Problem 1:
I want every player will generate $100 in every second(bots doesn't matter.)
Here's what I write:
1
2
3
4
5
2
3
4
5
addhook("second","generation") function generation() 	parse("setmoney "..id.." 100") end
attempt to concatenate local 'id' (a nil value)
Problem 2:
When the player enter specific teams on spawn, they will get certain items. Example: Survivor will get Mac-10, Zombies will get Gut Bomb with unlimited uses.
Hope you can solve this 'easy' problems.
4× editiert, zuletzt 15.11.14 13:11:38