Skip to content

Instantly share code, notes, and snippets.

@arctic5
Created August 9, 2013 19:37
Show Gist options
  • Save arctic5/6196534 to your computer and use it in GitHub Desktop.
Save arctic5/6196534 to your computer and use it in GitHub Desktop.
respawntimer code
//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