Variable value from a filterscript
#1

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)