Forum

> > CS2D > Scripts > mapchange save.
Forums overviewCS2D overview Scripts overviewLog in to reply

English mapchange save.

5 replies
To the start Previous 1 Next To the start

old mapchange save.

loldlold123
User Off Offline

Quote
i need, when i changing map, all player's files will be saved....

save function: hhsave(id)

old Re: mapchange save.

Kel9290
User Off Offline

Quote
1
2
3
4
5
6
7
8
...
for id = 1,32 do
	if player(id,"exists") then
		hhsave(id)
	end
end
parse("map "..yourmap)
...

old Re: mapchange save.

EngiN33R
Moderator Off Offline

Quote
@Kel
Inefficient code.

1
2
3
4
for _,id in ipairs(player(0,"table")) do
	hhsave(id)
end
parse("map "..yourmap)

old Re: mapchange save.

TimeQuesT
User Off Offline

Quote
1
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview