Forum

> > CS2D > Scripts > Houses
Forums overviewCS2D overview Scripts overviewLog in to reply

English Houses

2 replies
To the start Previous 1 Next To the start

old Houses

sta210
GAME BANNED Off Offline

Quote
Hi all
I need Lua witch Vip house,mod house,smod house ,admin house respawn
Sorry for bad inglish

old Easy

-RZ-
User Off Offline

Quote
Learn LUA scripting.

old Re: Houses

AlcatrazZ
BANNED Off Offline

Quote
It's not tested but it should be works.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
rank = {
	[1] = {
		user = {1,1234};
		spawn = {0,0};
	};
	[2] = {
		user = {1,1234};
		spawn = {0,0};
	};
	[3] = {
		user = {1,1234};
		spawn = {0,0};
	};
	[4] = {
		user = {1,1234};
		spawn = {0,0};
	};
}

addhook('spawn','hook_spawn')
function hook_spawn(id)
	go_spawn(id)
end

function check_rank(id)
	for _, i in pairs(rank) do
		for k, v in pairs(i.user) do
			if player(id,'usgn') == v then
				return _
			end
		end
	end
	return 0
end

function no_user(id)
	if check_rank(id) > 0 then
		return true
	end
	return false
end

function go_spawn(id)
	if no_user(id) then
		parse('setpos '..id..' '..rank[check_rank(id)].spawn[1]..' '..rank[check_rank(id)].spawn[2])
	end
end
edited 3×, last 16.02.14 06:29:59 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview