Posts: 18
Threads: 1
Joined: Apr 2018
Quote:
Originally Posted by doodlebob666
Whenever I have a zcmd use in more than 1 filterscript file, the first filterscript that loads with a zcmd renders the next file useless, because it stops any command in the other filterscript. How do I fix this?\
ex. in my server.cfg "filterscripts acmd admin jug veh" when I try to use an "admin" filterscript command in game, nothing happens. No Server Unknown Command or nothing. but when I use "acmd" filterscript command it works.
Why is this? How do I fix it it's annoying and took me 4 hours to figure out the problem
I even tried doing this
pawn Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #define FILTERSCRIPT #include <a_samp> #include <zcmd>
CMD:test(playerid,params[]){ SendClientMessage(playerid,0x00FFFFFF,"It Works!"); return 1; }
then I made another filter script
pawn Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #define FILTERSCRIPT #include <a_samp> #include <zcmd>
CMD:mother(playerid,params[]){ SendClientMessage(playerid,0x00FFFFFF,"Your Mom!"); return 1; }
I loaded both filterscripts but when I went in game none of the cmds work.
|
add public OnFilterScriptInit()
and
OnFilterScriptExit()