ZCMD & Filterscripts
#1

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

Anyone?
Reply
#3

Try replacing
PHP код:
return 1
with
PHP код:
 return 0
on your filterscript.
Reply
#4

Quote:
Originally Posted by Escobabe
Посмотреть сообщение
Try replacing
PHP код:
return 1
with
PHP код:
 return 0
on your filterscript.
At the end of every command?
Reply
#5

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

I don't think it's a good practice to use
Quote:

return 0;

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

https://sampforum.blast.hk/showthread.php?tid=91354
Read the Note#1
Reply
#8

Check if there are commands with same name, if yes try changing their names.
Reply
#9

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

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
Quote:

return 1;

in the FS based command.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)