save function: hhsave(id)
Forum
CS2D Scripts mapchange save.mapchange save.
5 replies 1
save function: hhsave(id)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
... for id = 1,32 do 	if player(id,"exists") then 		hhsave(id) 	end end parse("map "..yourmap) ...
Inefficient code.
1
2
3
4
2
3
4
for _,id in ipairs(player(0,"table")) do 	hhsave(id) end parse("map "..yourmap)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook ("mapchange","uebelstabgekackt") function uebelstabgekackt() for _,id in ipairs(player(0,"table")) do hhsave(id)					//stolen from engin33r hehehe end end
1