Skip to content

Instantly share code, notes, and snippets.

@hikari-no-yume
Forked from Orpheon/gist:6196546
Last active December 20, 2015 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hikari-no-yume/6196591 to your computer and use it in GitHub Desktop.
Save hikari-no-yume/6196591 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