Use elements of Gamemod in FS ? - 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: Use elements of Gamemod in FS ? (
/showthread.php?tid=244115)
Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
It's possible ?
I have a variable in my gamemode : "Antidote[MAX_PLAYER]"
I use the Filterscript "Luxadmin"
Can I put in my Filterscript a script for type "/set <antidote> <id>" and it set the numbers of antidotes of the player ?
Sorry for the english, i'm french :S
Re: Use elements of Gamemod in FS ? -
sabretur - 26.03.2011
Why don't you put that command into gamemode script? I don't think that it's possible.
Re : Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
Because if i put in gamemode, i need to login with rcon, and i don't want.
Re: Use elements of Gamemod in FS ? -
aircombat - 26.03.2011
maybe Lux comes with an include to define administration? or maybe try merging the fs with your gamemode
Re : Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
Is there no include and i can't merging it's to huge :S
Re: Use elements of Gamemod in FS ? -
dice7 - 26.03.2011
https://sampwiki.blast.hk/wiki/Per-player_variable_system
Re : Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
Thaks but how can i use it ?
I have
Antidote[MAX_PLAYERS] in my gamemode
and in my filterscript i want to create a command for admin to set the antidote of player how can i ?
Re: Use elements of Gamemod in FS ? -
admantis - 26.03.2011
https://sampwiki.blast.hk/wiki/SetPVarInt
https://sampwiki.blast.hk/wiki/GetPVarInt
PVars work globally throught filterscripts and gamemodes, whilst memory and variables will work only locally in that script.
Re : Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
So, i need to change Antidote[Playerid] on my gamemode into SetPVarInt() and use GetPVarInt in my FS?
Re : Use elements of Gamemod in FS ? -
Vukilore - 26.03.2011
Bumps please ?