little question
#2

In some callbacks, you need to return 0 to let other scripts handle it. (callbacks like: OnRconCommand, OnDialogResponse, and OnPlayerCommandText).
The OnPlayerKeyStateChange callback seems to act just opposite, so you'll need to return 1 to let filterscripts read from this callback.
Some callbacks' return value do something else; like OnPlayerText where you can return 0 to not allow the player to chat.
And then there are a callbacks that don't handle returns.

I think you should check the wiki before just returning 0 in all your callbacks in your filterscript.
To see a list of callbacks and what they return, check the wiki https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks.

EDIT: As callbacks like OnPlayerText first are called in the gamemode, I guess it doesn't matter if you return 0 in the filterscript, as the gamemode already made sure you send the message.
Reply


Messages In This Thread
little question - by niels44 - 22.02.2012, 17:09
Re: little question - by Mikkel_Pedersen - 22.02.2012, 19:26
Re: little question - by Babul - 22.02.2012, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)