wdvx
Sniper 7.4 War
- Joined
- Mar 5, 2013
- Messages
- 263
- Reaction score
- 14
Wrote a simple script in lua that can be used by gamemasters when they're afk.
It will send animated text over your head saying "AFK" in red text color
Script only tested on Avesta revision 93 ~
It will send animated text over your head saying "AFK" in red text color
Script only tested on Avesta revision 93 ~
Code:
function onSay(cid, item, param)
if param == "start" then
c = function()
doSendAnimatedText(getPlayerPosition(cid), "AFK", TEXTCOLOR_RED)
k = addEvent(c, 2000)
end
addEvent(c, 2000)
elseif param == "end" then
stopEvent(k)
end
end