Forum
Servers
how to auto mp_startmoney 16000 after respawn
how to auto mp_startmoney 16000 after respawn
23 replies
mp_dmspawnmoney 16000sys/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
mp_dmspawnmoney or
startmoney to 16000
Apache uwu: With all those numbers the kids will get confused, make a video or something ;P
oxytamine has writtenMake a 30 minutes long tutorial.
+50 minutes for Russians.
oxytamine has writtentranslated 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.
sv_rconusers, simply place sv_rconusers "" in server.cfg when the server is offline.
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
1 
Offline