SA-MP Forums Archive
GameMode variables in filterscripts! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GameMode variables in filterscripts! (/showthread.php?tid=579465)



GameMode variables in filterscripts! - OGKush - 27.06.2015

It's possible to use the variables from the gamemode in the filterscripts somehow? I'm boored to restart the server everytime I modify the gamemode because it takes some time and modifying the filterscripts I can simple use the /rcon reloadfs and this is faster! If I can't...you think it's a good idea to transfer all the things (variables and commands) in a filterscript?


Re: GameMode variables in filterscripts! - Vince - 27.06.2015

You have three options:
  1. PVars
  2. Properties (getproperty, setproperty)
  3. CallRemoteFunction
Although I would advise against sharing variables between scripts because these methods are fairly slow.


Re: GameMode variables in filterscripts! - Pottus - 27.06.2015

For development this is good but not for a production gamemode but as Vince mentioned not a good idea to run your gamemode like this.


Re: GameMode variables in filterscripts! - OGKush - 28.06.2015

OK,here's my new plan! ) I'll make from this gamemode an filterscript,so I can restart him in the game with /rcon reloadfs and after I finish him I'll make it gamemode again!) What do you think? (sorry for my bad english)


Respuesta: Re: GameMode variables in filterscripts! - [DOG]irinel1996 - 28.06.2015

Quote:
Originally Posted by OGKush
Посмотреть сообщение
OK,here's my new plan! ) I'll make from this gamemode an filterscript,so I can restart him in the game with /rcon reloadfs and after I finish him I'll make it gamemode again!) What do you think? (sorry for my bad english)
Well, there shouldn't appear any big problem while you use that to run your tests.


Re: Respuesta: Re: GameMode variables in filterscripts! - OGKush - 28.06.2015

Quote:
Originally Posted by [DOG]irinel1996
Посмотреть сообщение
Well, there shouldn't appear any big problem while you use that to run your tests.
Irinele,daca esti romanski spune,man!=)))))) Sa nu ne mai chinuim pe engleza ca si asa o omor!


Respuesta: Re: Respuesta: Re: GameMode variables in filterscripts! - [DOG]irinel1996 - 28.06.2015

Quote:
Originally Posted by OGKush
Посмотреть сообщение
Irinele,daca esti romanski spune,man!=)))))) Sa nu ne mai chinuim pe engleza ca si asa o omor!
Hahaha, yes, I'm from Romania but we must write in English here... and don't go off topic.