Yes it is possible:
And here is how you could do it: ( maybe not the best way, but I did not much in lua lately)
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
textinzone_name = {}
textzoneentered = {}
function textinzone_init_name(e,name)
textinzone_name[e] = name
textzoneentered[e] = 0
end
function textinzone_main(e)
if g_Entity[e]['plrinzone']==1 then
if textzoneentered[e] == 0 then
StartTimer(e)
textzoneentered[e] = 1
end
if GetTimer(e) <= 5000 then -- 5000 is time in miliseconds
Prompt(textinzone_name[e])
end
end
if textzoneentered[e] == 1 and (g_Entity[e]['plrinzone']==0 or GetTimer(e)>5000) then
Destroy(e)
end
end
I tested it and it works, but this means nothing, so tell me if not and I will fix it
My dream is to develope games, which makes fun when I create it and fun when other people play it.