Multiple Game modes -
mongi - 03.07.2017
I got A script which have 4 game modes (Gonna be more xD), To be exactly it's a Mini-Missions Script. I'm using a Login/Register System in a FS. So is there any way to change the game mode w/o re-loading the FS? So the players won't have to login again.
Re: Multiple Game modes -
Gammix - 03.07.2017
Have a auto-login system. Check if IP. is same and the leave time and current time have a little gap, then auto login the user.
Re: Multiple Game modes -
mongi - 03.07.2017
Quote:
Originally Posted by Gammix
Have a auto-login system. Check if IP. is same and the leave time and current time have a little gap, then auto login the user.
|
oO Therefor i'll have to store these values(IP, Leave time, Currently Time) in my Db for each user. With few If(s) it will be good.
Thanks for this, Didn't expect it to be that easy lol
Re: Multiple Game modes -
Meller - 03.07.2017
Or.. you can just add your login system to the gamemode and then load filterscripts per mode?
Re: Multiple Game modes -
mongi - 03.07.2017
Quote:
Originally Posted by Meller
Or.. you can just add your login system to the gamemode and then load filterscripts per mode?
|
Didn't Work.
Re: Multiple Game modes -
Nero_3D - 03.07.2017
Well by default filterscripts aren't reloaded by changemode or gmx
If you admin system is inside a filterscript then there shouldn't be a problem
Re: Multiple Game modes -
Sew_Sumi - 03.07.2017
Quote:
Originally Posted by Meller
Or.. you can just add your login system to the gamemode and then load filterscripts per mode?
|
Quote:
Originally Posted by mongi
Didn't Work.
|
Didn't work when you tried it...
Make PVars on the gamemode, use the filterscript to add rewards, or information back to the gamemode.
Using SVars to track the mini games stage, and making sure to have the gamemode checking one of those to know when it has finished, and unload the filterscript.
When initially loading the filterscripts, they could again use an SVar to show they are there, and declare the title/version of the mode itself, to the gamemode. Then, once that's been added, they can then unload themselves depending on what they are really for.
Quote:
Originally Posted by Nero_3D
Well by default filterscripts aren't reloaded by changemode or gmx
If you admin system is inside a filterscript then there shouldn't be a problem
|
This could be something else to look at in terms of methods I mention above.
Re: Multiple Game modes -
mongi - 05.07.2017
Any way I made it by comparing the IP, and if the re-connection delay is less than 3mns he will be auto logged in.
Thanks for the help every body.
Case Locked.
Re: Multiple Game modes -
Gammix - 05.07.2017
Quote:
Originally Posted by Nero_3D
Well by default filterscripts aren't reloaded by changemode or gmx
If you admin system is inside a filterscript then there shouldn't be a problem
|
I think the player disconnects while in changemode or gmx which calls OnPlayerDisconnect and OnPlayerConnect.