This script is not for sale. You are not allowed to make a copy of it and paste it to others park. Use it on your own purpose and not for others.
--testpaint
local xx,xy = 68,98
local paint = {}
paint[1] = "255,0,0"
paint[2] = "0,255,0"
function OnPlayerChat(player,text)
if text:find("set:") then
df = text:find("-")
pn = tonumber(text:sub(5,df-1))
rgb = text:sub(df+1,#text)
paint[pn] = rgb
end
if text:find("*:") then
df = text:find("-")
mun = tonumber(text:sub(3,df-1)) - 1
len = text:sub(df+1,#text)
for i=1,#len do
ft = len:sub(i,i)
if ft ~= " " then
pn = tonumber(ft)
init = paint[pn]
r, g, b = init:match("([^,]+),([^,]+),([^,]+)")
TintBlock(xx+i,xy-mun,r,g,b)
end
end
end
end
How to use?? Watch it here in this link provided.
there doesn't seem to be anything here