Zadin
New Member
- Joined
- Apr 12, 2017
- Messages
- 13
- Reaction score
- 0
Hey all,
I want to have an effect for all staff members. I've no idea what kind of file (xml or txt) it have to be and where to put the file. Can someone help me maybe?
tfs 0.2.15
local group = getPlayerGroupId(cid)
local cid = getPlayerByName(name)
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
if group == 1 then
doSendAnimatedText(getPlayerPosition(cid), "Player", TEXTCOLOR_RED)
elseif group == 2 then
doSendAnimatedText(getPlayerPosition(cid), "Tutor", TEXTCOLOR_RED)
elseif group == 3 then
doSendAnimatedText(getPlayerPosition(cid), "Senior Tutor", TEXTCOLOR_RED)
elseif group == 4 then
doSendAnimatedText(getPlayerPosition(cid), "Game Master", TEXTCOLOR_RED)
elseif group == 5 then
doSendAnimatedText(getPlayerPosition(cid), "God", TEXTCOLOR_RED)
elseif group == 6 then
doSendAnimatedText(getPlayerPosition(cid), "Administrator", TEXTCOLOR_RED)
end
end
return true
end
/Zadin
I want to have an effect for all staff members. I've no idea what kind of file (xml or txt) it have to be and where to put the file. Can someone help me maybe?
tfs 0.2.15
local group = getPlayerGroupId(cid)
local cid = getPlayerByName(name)
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
if group == 1 then
doSendAnimatedText(getPlayerPosition(cid), "Player", TEXTCOLOR_RED)
elseif group == 2 then
doSendAnimatedText(getPlayerPosition(cid), "Tutor", TEXTCOLOR_RED)
elseif group == 3 then
doSendAnimatedText(getPlayerPosition(cid), "Senior Tutor", TEXTCOLOR_RED)
elseif group == 4 then
doSendAnimatedText(getPlayerPosition(cid), "Game Master", TEXTCOLOR_RED)
elseif group == 5 then
doSendAnimatedText(getPlayerPosition(cid), "God", TEXTCOLOR_RED)
elseif group == 6 then
doSendAnimatedText(getPlayerPosition(cid), "Administrator", TEXTCOLOR_RED)
end
end
return true
end
/Zadin