Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Place this at the forward things
- forward AutoSaveTime();
- //place this under the "new" things
- new stock AutoSaveTimer;
- //place this under "GameModeInit"
- AutoSaveTimer = SetTimer("AutoSaveTime", 300000, true);//Timer that does the AutoSaveTime function each 5 minutes.
- //place this somewhere in the "public blahblah()" things
- public AutoSaveTime()
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(gPlayerLogged[i] >= 1)
- {
- SaveUser(i);
- }
- }
- return 1;
- }
- //Credits: Stefantjuh97
Advertisement
Add Comment
Please, Sign In to add comment