Scripts / Timer or delay!!

Author
Message
Cripleshot
8
Years of Service
User Offline
Joined: 12th Jul 2016
Location:
Posted: 15th Jul 2016 18:01
How would i do a delay (Timer) o show a panel for say like 5 seconds then turn back on the HUD?
this is from smallg's script just adding panels to it...
this is what I am using....

if quest_stage[quest_number] == 0 then
HideHuds()
SetPlayerWeapons(0)
Panel(25,40,75,60)
TextCenterOnXColor(50,45,1,"Hi there, please Can you collect my 4" ,100,255,100)
TextCenterOnXColor(50,50,1," herb balls ",100,255,100)
TextCenterOnXColor(50,55,1," at the other tower for me",100,255,100)
Panel(30,60,40,70)
TextCenterOnXColor(35,65,1," Press E to accept ",100,255,100)
--Prompt("Hi there, please Can you collect my " .. 1 + last_pickup_e[quest_number] - first_pickup_e[quest_number] .. " barrals of " .. item_name[quest_number] .. " at the river for me")

--if player accepts quest
if g_KeyPressE == 1 and pressed == 0 then
pressed = 1

Panel(25,40,75,60)
TextCenterOnXColor(50,45,1,"Come back with my" ,100,255,100)
TextCenterOnXColor(50,50,1,item_name[quest_number],100,255,100)
TextCenterOnXColor(50,55,1," soon please",100,255,100)




--Panel(25,40,75,60)
--TextCenterOnXColor(50,45,1,"Come back with my" ,100,255,100)

--TextCenterOnXColor(50,50,1,item_name[quest_number],100,255,100)
--TextCenterOnXColor(50,55,1," soon please",100,255,100)
quest_stage[quest_number] = quest_stage[quest_number] + 1
PM

Login to post a reply

Server time is: 2024-12-22 18:30:17
Your offset time is: 2024-12-22 18:30:17