Files

> > CS2D > Lua Scripts > Objects save script
Files overviewCS2D overviewLua Scripts overview

English Objects save script >

14 comments2 kb, 644 Downloads

old Objects save script

Vectarrio
User Off Offline

This script saves all the dynamic objects(buildings,mines,portals) on the map in exact positions and teams of players.
saveobjects filename - saves objects into a file with name filename (WITHOUT quotes)
loadobjects filename mode - loads objects from a file with name filename (WITHOUT quotes) and modes 0-3:
0 - without player (just team, buildings not by player)
1 - with player id (if loading with other order of players, it will be wrong)
2 - with player usgns (players might not have usgn numbers)
So, if you want to load correctly, choose modes.

In the screens:
• built several buildings on con_sandbox
• saved
• loaded on con_tinysandbox
Approved by GeoB99

Download Download

2 kb, 644 Downloads

Comments

14 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Vectarrio
User Off Offline

Yep, I was inspired by GMod advanced duplicator.

old

JONY
User Off Offline

Quite nice for single player
I like it!

old

Robotic-Brain
User Off Offline

this should be an API for things like stargate mod or something like that
I like it!

old

Xseba360
User Off Offline

Lol, looks like an adv dupe in gmod lawl
I like it!

old

RyceR
User Off Offline

amm.... Make saves for images on map too and its good for GMod
I like it!

old

KevinP
User Off Offline

best script for servers.
i like it
I like it!

old

Cure Pikachu
User Off Offline

Same here.
Anyway sounds cool.
I like it!

old

awcmon
User Off Offline

Because, If theres no admin, people spam a whole map of mines and nobody wants that saved right? I want it to be only admin save. The F2 wouldn't be useful. I like it the way it is!
I like it!

old

Vectarrio
User Off Offline

@RomaN56
Do you know spam-builders? They build everywhere, cage players, e.t.c. If THEY will save and load?

old

Dead men
BANNED Off Offline

Why no F2?
And only admin have save
I like it!

old

StirlizZ-Fapicon
Super User Off Offline

COOLFACE...COOLSCRIPT!
I like it!

old

archmage
User Off Offline

Wonderfully done.
I like it!

old

awcmon
User Off Offline

KEWL!
I like it!

old

HaRe
User Off Offline

Cool,
I like it!
To the start Previous 1 Next To the start