SA-MP Forums Archive
OnPlayerConnect/Disconnect fs problem - 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: OnPlayerConnect/Disconnect fs problem (/showthread.php?tid=432617)



OnPlayerConnect/Disconnect fs problem - HurtLocker - 23.04.2013

If I add those callbacks inside my filterscript they do not work. I have return 1; in both, gm and fs. What causes this?


Re: OnPlayerConnect/Disconnect fs problem - NicholasA - 23.04.2013

Please post your exact script, you must have made a typo


AW: OnPlayerConnect/Disconnect fs problem - HurtLocker - 23.04.2013

There's nothing to post, all you need to know is above. I have some code in gm under those callbacks as well as in fs. The code which is located in the fs, under any of those callbacks, does not have any effect.


Re: OnPlayerConnect/Disconnect fs problem - NicholasA - 23.04.2013

Did you define it as a filterscript?


AW: OnPlayerConnect/Disconnect fs problem - HurtLocker - 23.04.2013

There's no need to do that, I 've searched about it.


AW: OnPlayerConnect/Disconnect fs problem - HurtLocker - 23.04.2013

So am I the only one who has ever faced this problem?


Re: OnPlayerConnect/Disconnect fs problem - Yashas - 23.04.2013

You have to #define FILTERSCRIPT (actually remove that comment line in the script)
Or else your filterscript will be considered as a gamemode.

And another possibility:

Wait,Wait,Wait Did you add the filterscript in server.cfg ??
You have type "filterscript [filename]" and dont add the extension of the file.
Suppose the file is abc.amx, in server.cfg it must be "filterscripts abc"


AW: OnPlayerConnect/Disconnect fs problem - HurtLocker - 12.05.2013

Some help here, I need this for my register system.


Re : OnPlayerConnect/Disconnect fs problem - thegreathom - 12.05.2013

It's can be possible to have the filterscript link?


AW: OnPlayerConnect/Disconnect fs problem - HurtLocker - 12.05.2013

It's not about a specific filterscript. If I use onplayerconncet/disconnect calback in any filterscript, the code inside them has no effect. They do work inside the gamemode though.