Variable value from a filterscript - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Variable value from a filterscript (
/showthread.php?tid=199869)
Variable value from a filterscript -
Koppa, - 16.12.2010
Hello guys!
I think the title says it all. I want to get a variable value from a filterscript. I want this because the filterscript will be kind-of a minigame, and I want to check the variable isOver from the gamemode and unload the filterscript from gamemode. Is this possible? If isn't is there another option?
Re: Variable value from a filterscript -
Benjo - 16.12.2010
You can use "Player Variables" to create global per-player variables that can be accessed by a server's gamemodes and filterscripts. Check out this wiki page:
https://sampwiki.blast.hk/wiki/Per-player_variable_system
I'd suggest playing around with the SetPVarInt and GetPVarInt functions to get the hang of it.