Forum

> > CS2D > Scripts > How to shorten the script?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to shorten the script?

8 replies
To the start Previous 1 Next To the start

old How to shorten the script?

Gaios
Reviewer Off Offline

Quote
[FRAGMENTS]
> My code:
Completed >
edited 5×, last 18.09.12 08:27:44 pm

old Re: How to shorten the script?

mafia_man
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
saves = {};
addhook("join", "onJoin")
function onJoin(id)
	if player(id, "exists") then
		saves[id] = {};
		saves[id].name = player(id, "name");
		
		--[[
		OR
		saves[id] = {
			name = player(id, "name");
		}
		]]--
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview