forward gmx(); //ongamemodeint SetTimer("gmx", 86400000, 1); // and on the buttom of your script public gmx() { GameModeExit(); return 1; }