Forum

> > Trash > i need help
Forums overviewTrash overviewLog in to reply

English i need help

No replies
To the start Previous 1 Next To the start

moved i need help

paladin1
User Off Offline

Quote
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
ms={}

----------------------
-- Initial Setup    --
----------------------
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
ms.money=initArray(32)
function ms.moneyshow(id)
	parse('hudtxt2 '..id..' 1 "©255075000Jail Packs: '..ms.money[id]..' " 13 200')
end

----------------------
-- Shops            --
----------------------
function ms.shopa(id)
	menu(id,"Jail Shop,Saw|200,Light Armor|300,Kevlar|150,Medium Armor|280")
end


----------------------
-- Shop func's      --
----------------------
addhook("menu","ms.buy")
function ms.buy(id,title,sel)
	if title == "Jail Shop" then
		if sel == 1 then
			if ms.money[id] > 199 then
				parse("equip "..id.." 85")
				msg2(id,"©000255000You've buy SAW!@C")
				ms.money[id]=ms.money[id]-200
				ms.moneyshow(id)
			else
				msg2(id,"©255000000You have not enough Jail Packs@C")
			end
		end
		if sel == 2 then
			if ms.money[id] > 299 then
				parse("equip "..id.." 79")
				msg2(id,"©000255000You've buy Light Armor!@C")
				ms.money[id]=ms.money[id]-300
				ms.moneyshow(id)
			else
				msg2(id,"©255000000You have not enough Jail Packs!@C")
			end
		end
	end
	if title == "Armors" then
		if sel == 1 then
			if ms.money[id] > 149 then
				parse("setarmor "..id.." 201")
				msg2(id,"©000255000You've buy Armor!@C")
				ms.money[id]=ms.money[id]-150
				ms.moneyshow(id)
			else
				msg2(id,"©255000000You have not enough Jail Packs!@C")
			end
		end
		if sel == 2 then
			if ms.money[id] > 219 then
				parse("setarmor "..id.." 202")
				msg2(id,"©000255000You've buy Medium Armor!@C")
				ms.money[id]=ms.money[id]-220
				ms.moneyshow(id)
			else
				msg2(id,"©255000000You have not enough Jail Packs!@C")
			end
		end
	end
end

-----------------------
-- Serveractions     --
-----------------------
addhook("serveraction","ms.action")
function ms.action(id,action)
	if action == 1 then
		ms.shopa(id)
	end
end

------------------------
-- Kill and spawn     --
------------------------
addhook("spawn","ms.spawn")
function ms.spawn(id)
	ms.moneyshow(id)
end

addhook("kill","ms.kill")
function ms.kill(id)
	ms.money[id]=ms.money[id]+20
	ms.moneyshow(id)
end

addhook("die","ms.die")
function ms.die(id)
	ms.money[id]=ms.money[id]-0
	ms.moneyshow(id)
end

how can the admin console packs the jail?
May I have to add

at regular intervals and a 'map by paladins,' writes

Thank you in advance for your help

Admin/mod comment

trashed because of useless title.
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview