Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pAtOnce=50
- radiusX=100
- radiusY=100
- id=0
- function eventLoop(ct,tr)
- for i=1,id do
- ui.removeTextArea(i,nil)
- end
- id=0
- for i=1,pAtOnce do
- color=math.random(0x000000, 0xFFFFFF)
- ui.addTextArea(i,"",nil,math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),1,1,color,color,0.75,true)
- id=id+1
- end
- end
- function eventChatCommand(p,c)
- if c:sub(0,3)=="par" and tonumber(c:sub(5))<=1000 then
- pAtOnce=c:sub(5)
- elseif c:sub(0,2)=="rx" then
- radiusX=c:sub(4)
- elseif c:sub(0,2)=="ry" then
- radiusY=c:sub(4)
- end
- print("<v>["..p.."] <n>"..c)
- end
- system.disableChatCommandDisplay("par",true)
- system.disableChatCommandDisplay("rx",true)
- system.disableChatCommandDisplay("ry",true)
- print("<p align='left'>\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'<n>!\nWant the lights to go <j>further/closer<n>? Type <j>'!rx number' <n>or <j>'!ry number'<n>!</p>")
Advertisement
Add Comment
Please, Sign In to add comment