xavierek
New Member
- Joined
- Apr 11, 2009
- Messages
- 209
- Reaction score
- 0
PHP:
function onThink(interval, lastExecution)
function sendText(pos, text)
doSendAnimatedText(pos, text, math.random(01,255))
end
local info = {
[1] = {text = "TP text 1", pos = {x=463,y=490,z=6}},
[2] = {text = "TP text 2", pos = {x=462,y=489,z=6}}
}
for i, a in ipairs(info) do
text = info[a].text
pos = info[a].pos
addEvent(sendText, 500, pos, text)
end
return TRUE
end