Skip to content

Instantly share code, notes, and snippets.

View hikari-no-yume's full-sized avatar
🌟
trying to save beautiful things

hikari_no_yume hikari-no-yume

🌟
trying to save beautiful things
View GitHub Profile
#include <cstdlib>
#include <ctime>
#define DLLEXPORT extern "C" __declspec (dllexport)
DLLEXPORT double get_time()
{
time_t currentTime, zeroTime = {0};
time(&currentTime);
return difftime(currentTime, zeroTime);
}
//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)