SA-MP Forums Archive
Can i Connect 2 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)
+--- Thread: Can i Connect 2 filterscript ? (/showthread.php?tid=414723)



Can i Connect 2 filterscript ? - M3mPHi$_S3 - 10.02.2013

Huy guys ... So i am using ryder race system and i want to disable player boost while in race ... So can i connect my game mode with filterscript so that i can disable player bost

2: can you give me code like player should exit his vehicle so he should be kicked out of race.


Re: Can i Connect 2 filterscript ? - MP2 - 10.02.2013

1. pVars.
2. OnPlayerStateChange.


Re: Can i Connect 2 filterscript ? - M3mPHi$_S3 - 10.02.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
1. pVars.
2. OnPlayerStateChange.
1: did'nt get ya ?
2: post full code please


Re: Can i Connect 2 filterscript ? - Neil. - 10.02.2013

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
1: did'nt get ya ?
2: post full code please
1. One of many usage of Per-player variable system or the so called "pVars" is to communicate a filterscript and a gamemode. Basically you Set a Pvar (Int) / Set a Pvar (Str) on your Filterscript and then Get a Pvar (Int) / Get a Pvar (Str)
2. Read some tutorials and it'll be easy as a nut.

Some wiki pVar definitions:
Quote:

PVars can be shared/accessed across gamemode scripts and filterscripts, making it easier to modularise your code.

Quote:

is a new way of creating player variables in an efficient dynamically created method globally, meaning they can be used in server's gamemode and filterscripts at the same time.




Re: Can i Connect 2 filterscript ? - M3mPHi$_S3 - 10.02.2013

link of any tutorial ?