Thank you, I found self a script. A Script with Image and only with Text and Name.
Here a Script with Image
function chat_init(e)
convo = 0
timer = 0
timerstarted = 0
LoadImages("character",0)
end
function chat_main(e)
if GetPlayerDistance(e) <150 and convo == 0 then
Prompt("press E to talk")
if g_KeyPressE == 1 then
convo =1
FreezePlayer()
end
end
if convo == 1 then
LoadImages("character",0)
SetImagePosition(15,58,20)
ShowImage(0)
Panel(10,51,20,65)
Panel(10,65,90,90)
TextCenterOnXColor(18,70,1,"This is a Text 1",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 2
timerstarted = 0
HideImage(0)
end
elseif convo == 2 then
LoadImages("character",0)
SetImagePosition(15,58,20)
ShowImage(1)
Panel(10,51,20,65)
Panel(10,65,90,90)
TextCenterOnXColor(18,70,1,"This is a Text 2",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 3
timerstarted = 0
HideImage(1)
end
elseif convo == 3 then
LoadImages("character",0)
SetImagePosition(15,58,20)
ShowImage(2)
Panel(10,51,20,65)
Panel(10,65,90,90)
TextCenterOnXColor(18,70,1,"And Text 3",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 4
timerstarted = 0
HideImage(2)
UnFreezePlayer()
end
end
end
And here the Script without Image.
function chat_init(e)
convo = 0
timer = 0
timerstarted = 0
end
function chat_main(e)
if GetPlayerDistance(e) <150 and convo == 0 then
Prompt("press E to talk")
if g_KeyPressE == 1 then
convo =1
FreezePlayer()
end
end
if convo == 1 then
Panel(10,64,20,65)
Panel(10,70,90,90)
TextCenterOnXColor(14,67,1,"Name",255,0,0)
TextCenterOnXColor(16,75,1,"Hey Forum",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 2
timerstarted = 0
end
elseif convo == 2 then
Panel(10,64,20,65)
Panel(10,70,90,90)
TextCenterOnXColor(14,67,1,"Name2",255,0,0)
TextCenterOnXColor(16,75,1,"Thank you",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 3
timerstarted = 0
HideImage(1)
end
elseif convo == 3 then
Panel(10,64,20,65)
Panel(10,70,90,90)
TextCenterOnXColor(14,67,1,"Name 3",255,0,0)
TextCenterOnXColor(16,75,1,"Hey Forum Again",255,0,0)
if timerstarted == 0 then
timer = GetTimer(e)
timerstarted = 1
end
if GetTimer(e)-timer > 3000 then
convo = 4
timerstarted = 0
UnFreezePlayer()
end
end
end
So much hours and so much tried. But now I'm finish with that. Happy!
So I share this Script for another Peoples with the Same Problem. Thanks me later. lol