Hi,
I started to write some scripts for myself. Some work really good, some need some tweaking and so on. But with this script FPSCR simply freeze. There is no error or anything! Can someone help me?
The script is designed to count upwards if the player is in the zone.
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Zone Countdown Start
function plrcount_init(e)
a=0
n=0
end
function plrcount_main(e)
if g_Entity[e]['plrinzone']==1 and a==0 then
StartTimer(e)
a=1
end
while g_Entity[e]['plrinzone']==1 do
if GetTimer(e) >= n*1000 and GetTimer(e) < n*1000+1000 then
PromptDuration("Seconds:" .. n,1000)
end
n=n+1
end
if g_Entity[e]['plrinzone']==0 and a==1 then
a=0
end
end
Thanks
My dream is to develope games, which makes fun when I create it and fun when other people play it.