03.12.2016, 12:35
So I am coding a gamemode, and there is a separated filterscript acting as the main system. The problem is, I have two OnPlayerText - from the gamemode and filterscript itself. If I return 0 to both of them then OnPlayerText's on gamemode doesn't work but OnPlayerText's filterscript work. When I return 1; on filterscript's OnPlayerText then both of OnPlayerText work except the default chat message of SA-MP is being sent first then the coded chat message.
Is there any way round to fix this otherwise I would have to move my filterscript's OnPlayerText on my gamemode's OnPlayerText
Is there any way round to fix this otherwise I would have to move my filterscript's OnPlayerText on my gamemode's OnPlayerText