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
106
107
108
109
110
111
112
addhook("minute","help")
function help()
	msg("use ![nameofweapon] to get a weapon")
end
function equip(id,wid)
	parse('equip '..id..' '..wid)
end
addhook("spawn","spawnequip")
function spawnequip(id)
return "51,58"
end
addhook("say", "_say")
function _say(id,txt)
	if string.sub(txt,1,5) == "!m4a1" then
		equip(id,32)
		parse ("sv_msg ©000000000"..player(id,"name").." used !m4a1")
		return 1
	end
	if string.sub(txt,1,6) == "!ak-47" then
		equip(id,30)
		parse ("sv_msg ©000000000"..player(id,"name").." used !ak-47")
		return 1
	end
	if string.sub(txt,1,6) == "!galil" then
		equip(id,38)
		parse ("sv_msg ©000000000"..player(id,"name").." used !galil")
		return 1
	end
	if string.sub(txt,1,6) == "!famas" then
		equip(id,39)
		parse ("sv_msg ©000000000"..player(id,"name").." used !famas")
		return 1
	end
	if string.sub(txt,1,4) == "!aug" then
		equip(id,33)
		parse ("sv_msg ©000000000"..player(id,"name").." used !aug")
		return 1
	end
	if string.sub(txt,1,6) == "!sg552" then
		equip(id,31)
		parse ("sv_msg ©000000000"..player(id,"name").." used !sg552")
		return 1
	end
	if string.sub(txt,1,6) == "!scout" then
		equip(id,34)
		parse ("sv_msg ©000000000"..player(id,"name").." used !scout")
		return 1
	end
	if string.sub(txt,1,7) == "!deagle" then
		equip(id,3)
		parse ("sv_msg ©000000000"..player(id,"name").." used !deagle")
		return 1
	end
	if string.sub(txt,1,7) == "!five-7" then
		equip(id,6)
		parse ("sv_msg ©000000000"..player(id,"name").." used !five-7")
		return 1
	end
	if string.sub(txt,1,6) == "!glock" then
		equip(id,2)
		parse ("sv_msg ©000000000"..player(id,"name").." used !glock")
		return 1
	end
	if string.sub(txt,1,4) == "!usp" then
		equip(id,1)
		parse ("sv_msg ©000000000"..player(id,"name").." used !usp")
		return 1
	end
	if string.sub(txt,1,5) == "!p228" then
		equip(id,4)
		parse ("sv_msg ©000000000"..player(id,"name").." used !p228")
		return 1
	end
	if string.sub(txt,1,6) == "!elite" then
		equip(id,5)
		parse ("sv_msg ©000000000"..player(id,"name").." used !elite")
		return 1
	end
	if string.sub(txt,1,4) == "!p90" then
		equip(id,22)
		parse ("sv_msg ©000000000"..player(id,"name").." used !p90")
		return 1
	end
	if string.sub(txt,1,4) == "!tmp" then
		equip(id,21)
		parse ("sv_msg ©000000000"..player(id,"name").." used !tmp")
		return 1
	end
	if string.sub(txt,1,6) == "!mac10" then
		equip(id,23)
		parse ("sv_msg ©000000000"..player(id,"name").." used !mac10")
		return 1
	end
	if string.sub(txt,1,4) == "!mp5" then
		equip(id,20)
		parse ("sv_msg ©000000000"..player(id,"name").." used !mp5")
		return 1
	end
	if string.sub(txt,1,6) == "!ump45" then
		equip(id,24)
		parse ("sv_msg ©000000000"..player(id,"name").." used !ump45")
		return 1
	end
	if string.sub(txt,1,5) == "!m249" then
		equip(id,40)
		parse ("sv_msg ©000000000"..player(id,"name").." used !m249")
		return 1
	end
end