Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Forked from arctic5/gist:6196534
Last active December 20, 2015 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Orpheon/6196546 to your computer and use it in GitHub Desktop.
Save Orpheon/6196546 to your computer and use it in GitHub Desktop.
//respawn timer here
if (global.respawntimer == 1)
{
if (time <= global.Server_Respawntime)
{
time += 1
}
else
{
instance_destroy();
}
if (instance_exists(global.myself))
{
if (global.myself.object != -1)
{
instance_destroy();
}
if (global.myself.team != TEAM_SPECTATOR)
{
if (!instance_exists(ArenaHUD))
{
draw_text(xoffset+10, yoffset+10,'Respawn in ' +string(floor((global.Server_Respawntime-time)/30))+ ' seconds.')
}
else
{
draw_text(xoffset+10, yoffset+10,'No Respawning in Arena');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment