ID:263582
 
Code:
world/proc/Forest()
set background=1
sleep(1000)
if(eventz == "")
eventz = "Painful Forest"
world<<"<font color = #ffa500><font size=2>Announcement:</font size=2></font color = #ffa500> <font color =#ffffff>The Forest of pain event is now up</font color =#ffffff>"
sleep(9000)
world << "<font color = #ffa500><font size=2>Announcement:</font size=2></font color = #ffa500> <font color =#ffffff>Deleting Event, Everyone in the effected area must go to the nearest platform immediatly. Players Remaining in the area will be automaticly logged out</font color =#ffffff>"
sleep(900)
for(var/mob/L in world)
if(L.inevent==1)
L.inevent=0
L << "<center><font size=3>You have been logged out because you were in an event that was being deleted</center></font size=3>"
del(L)
eventz = ""
spawn(9000) Forest()


Problem description:
when ever it runs

world << "<font color = #ffa500><font size=2>Announcement:</font size=2></font color = #ffa500> <font color =#ffffff>Deleting Event, Everyone in the effected area must go to the nearest platform immediatly. Players Remaining in the area will be automaticly logged out</font color =#ffffff>"


it will say that to the world 3 times, please help
First of all, if you are willing to make a worldwide proc, you shouldn't add world:
world/proc/LoL() // Nope!
proc/Lol() // Yep!


Also, if you are willing to make the proc run as long as the world exists, use the while() proc:
proc/Lol()
while(world) // while world is "non-zero" (as long as it exists)
world << "LoL!" // :P
sleep(1000) // With this, your DS won't be spammed to death. This just creates a delay in the proc.
// NOTE: spawn() DOES NOT work here!


And, to call the proc...
// I believe you know what I am doing here
world/New()
Lol()
..()