This post has been marked by the post author as the answer.
After research, I thank Smallg!
This code works... does it look right?
local wait_duration = 4000
function foundmoney2_init(e)
end
function foundmoney2_main(e)
if g_Entity[e]['plrinzone']==1 then
TextCenterOnXColor(50.05,50.05,5,"YOU FOUND SOME MONEY!",0,0,0)
TextCenterOnXColor(50,50,5,"YOU FOUND SOME MONEY!",255,255,255)
Prompt("They will never know you stole it. ") -- put your text here
PlaySound(e,0)
if GetTimer(e) >= wait_duration then
Destroy(e)
end
else
StartTimer(e)
end
end