Flacko has written
Try this
Edit: Page 111 is mine too
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
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
function toTable(t,match)
	local cmd = {}
	if not match then
		match = "[^%s]+"
	else
		match = "[^"..match.."]+"
	end
	for word in string.gmatch(t, match) do
		table.insert(cmd, word)
	end
	return cmd
end
addhook("say","sayz")
Wow i don't get it ... do i have to Edit it?
function sayz(id, text)
	local ptxt = toTable(text)
	if ptxt[1] == "$" and #ptxt == 3 then --Ok the format would be "$ PLAYER MONEY"
		local rcvp = tonumber(ptxt[2]) --Recieving player
		local rcvm = tonumber(ptxt[3]) --Money
		if player(rcvp,"exists") then --If the player exists
			if player(id,"money") >= rcvm then --and this dude has enough money
				if player(rcvp,"money") + rcvm <= 16000 then --check if we won't give him too much money (so we don't waste cash)
					parse("setmoney "..id.." "..player(id,"money")-rcvm)
					parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
				elseif player(rcvp,"money") < 16000 then --Ok this guy would overpass $16000 with our donation so we deduct this
					rcvm = 16000 - player(rcvp,"money") --Here
					parse("setmoney "..id.." "..player(id,"money")-rcvm)
					parse("setmoney "..rcvp.." "..player(rcvp,"money")+rcvm)
				end
			end
		end
	end
end
Edit: Page 111 is mine too

Lua Scripts/Questions/Help


Offline

)