Forum
CS2D Servers how to auto mp_startmoney 16000 after respawnhow to auto mp_startmoney 16000 after respawn
23 repliessys/lua/server.lua
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("say","_say") function _say(id,message) 	if message=="!resetscore" then 		parse("setscore "..id.." 0") 		parse("setdeaths "..id.." 0") 	end end
oxytamine has written
Make a 30 minutes long tutorial.
+50 minutes for Russians.
oxytamine has written
translated in both Brazilian and Turkish.
It's actually Portuguese, as well as Americans don't speak American we don't speak Brazilian.
Anyway, Portuguese's grammatical rules are a pain in the ass indeed.
do i need to edit the server.lua file?? BTW thnx to you all
mp_startmoney 16000
mp_dmspawnmoney 16000
On a new line.
You could also use rcon, rcon_pw.
1
2
3
4
5
6
2
3
4
5
6
addhook("second","money") function money() 	for _, id in pairs(player(0,"table")) do 		parse("setmoney "..id.." 16000") 	end end
1
2
3
4
2
3
4
addhook("spawn","money") function money(id) 	parse("setmoney "..id.." 16000") end
when the player dies, money didnt back to 16000 >.< my server is de_Cs2d how to fix it?
I use mp_dmspawnmoney 16000
and mp_startmoney 16000
1
2
3
4
5
2
3
4
5
addhook("spawn","_spawn") function _spawn(id) 	parse("setmoney "..id.." 16000") end
Using mp_startmoney only applies to a round, meaning these money values return when the round is restarted.
And as you said mp_dmspawnmoney only applies to con&deathmatch.
and last how can i change !resetscore to f4 function??
thnx a lot