Created
August 9, 2013 19:37
-
-
Save arctic5/6196534 to your computer and use it in GitHub Desktop.
respawntimer code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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