Multiple Game modes
#1

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.
Reply
#2

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.
Reply
#3

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
Reply
#4

Or.. you can just add your login system to the gamemode and then load filterscripts per mode?
Reply
#5

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.
Reply
#6

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
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)