ZCMD & Filterscripts - 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: ZCMD & Filterscripts (
/showthread.php?tid=644320)
ZCMD & Filterscripts -
SupperRobin6394 - 05.11.2017
Hey,
Simple case:
- I use a filterscript for Admin commands with ZCMD
- I use a gamemode with the normal stuff, also ZCMD commands in there
When I have the filterscript loaded, I can not use any commands from the gamemode, if I disable the filterscript, it works.
The CMDs from the filterscript work flawlessly.
Any idea?
Re: ZCMD & Filterscripts -
SupperRobin6394 - 06.11.2017
Anyone?
Re: ZCMD & Filterscripts -
Escobabe - 06.11.2017
Try replacing
with
on your filterscript.
Re: ZCMD & Filterscripts -
SupperRobin6394 - 07.11.2017
Quote:
Originally Posted by Escobabe
Try replacing with on your filterscript.
|
At the end of every command?
Re: ZCMD & Filterscripts -
Escobabe - 07.11.2017
Try replacing just one command with that code, so you can test it In Game, if it works, put return 0; on all of your commands.
Re: ZCMD & Filterscripts -
igord - 07.11.2017
I don't think it's a good practice to use
for a command if the command was completed successfully. As I recall I was able to put commands in both filterscripts and the gamemode with ZCMD. If you could provide some examples (feel free to hide the logic in the commands with comments showing fairly what the command is ment to do) and maybe I could tell you something more. But I'll check into it when reach my home computer.
Re: ZCMD & Filterscripts -
Banditul18 - 07.11.2017
https://sampforum.blast.hk/showthread.php?tid=91354
Read the Note#1
Re: ZCMD & Filterscripts -
kAn3 - 07.11.2017
Check if there are commands with same name, if yes try changing their names.
Re: ZCMD & Filterscripts -
SupperRobin6394 - 07.11.2017
Quote:
Originally Posted by igord
I don't think it's a good practice to use for a command if the command was completed successfully. As I recall I was able to put commands in both filterscripts and the gamemode with ZCMD. If you could provide some examples (feel free to hide the logic in the commands with comments showing fairly what the command is ment to do) and maybe I could tell you something more. But I'll check into it when reach my home computer.
|
I will make a /test CMD on the GM and on the FS (/fstest on the FS) and see if they work in general with a simple SendClientMessage.
Quote:
Originally Posted by Banditul18
|
Already done, no luck sadly...
Quote:
Originally Posted by kAn3
Check if there are commands with same name, if yes try changing their names.
|
Not a single command matches one another on the GM/FS.
Re: ZCMD & Filterscripts -
igord - 07.11.2017
Quote:
Originally Posted by SupperRobin6394
I will make a /test CMD on the GM and on the FS (/fstest on the FS) and see if they work in general with a simple SendClientMessage.
|
I've done the same thing and it worked just fine for me. I've also used
in the FS based command.