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
elseif cmd =="!moneyall" then
	local moneyall = tonumber(p[2])
	if rp_Adminlevel[id] >= money_all_lv then
		if moneyall <= 100000 then
			if moneyall >= -100000 then
				if moneyall > 0 then
					for k,v in pairs (player(0,"tableliving")) do
						rp_money[v]=rp_money[v]+moneyall
						updatehud(v)
					end
					msg2(id,"\169255255000[Server]: \169000255000Everyone gained "..moneyall..".")
				elseif moneyall==0 then
					rp_msg2(id,"255255000","[Server]: \169255000000You didn't enter amount of money.")
				elseif moneyall<0 then
					for k,v in pairs (player(0,"tableliving")) do
						rp_money[v]=rp_money[v]+moneyall
						updatehud(v)
					end
					msg2(id,"\169255255000[Server]: \169255000000Everyone lost "..moneyall..".")
				end
			else
				rp_msg2(id,"255255000","[Server]: \169255000000You can't take more than 100000 at once.")
			end
		else
			rp_msg2(id,"255255000","[Server]: \169255000000You can't give more than 100000 at once.")
		end
	else
		rp_msg2(id,"255255000","[Server]: \169000255000You don't have permission.")
	end