Use elements of Gamemod in FS ?
#1

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

Why don't you put that command into gamemode script? I don't think that it's possible.
Reply
#3

Because if i put in gamemode, i need to login with rcon, and i don't want.
Reply
#4

maybe Lux comes with an include to define administration? or maybe try merging the fs with your gamemode
Reply
#5

Is there no include and i can't merging it's to huge :S
Reply
#6

https://sampwiki.blast.hk/wiki/Per-player_variable_system
Reply
#7

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

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

So, i need to change Antidote[Playerid] on my gamemode into SetPVarInt() and use GetPVarInt in my FS?
Reply
#10

Bumps please ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)