SA-MP Forums Archive
It's possible to detect commands? - 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: It's possible to detect commands? (/showthread.php?tid=558321)



It's possible to detect commands? - aoEXE - 16.01.2015

commands ehm... eg.

/headmove /timestamp /fpslimit etc the default commands?


Re: It's possible to detect commands? - n0minal - 16.01.2015

@Topic: you can try to detect with OnPlayerCommandText, i dont know if its called after the game command process, you can try...

I have an question too, is there any way to force an player do an cmd like /audiomessage?


Re: It's possible to detect commands? - WLSF - 16.01.2015

Quote:
Originally Posted by aoEXE
Посмотреть сообщение
commands ehm... eg.

/headmove /timestamp /fpslimit etc the default commands?
cmds from sa-mp like /dl won't call the default callback OnPlayerCommandText, so you can't detect it, otherwise, you can detect on this callback.

Quote:
Originally Posted by n0minal
Посмотреть сообщение
I have an question too, is there any way to force an player do an cmd like /audiomessage?
Yes


Re: It's possible to detect commands? - xVIP3Rx - 16.01.2015

Quote:
Originally Posted by n0minal
Посмотреть сообщение
@Topic: you can try to detect with OnPlayerCommandText, i dont know if its called after the game command process, you can try...

I have an question too, is there any way to force an player do an cmd like /audiomessage?
Yes, depends on your command processor too, and I think you should make another thread for your question..


Respuesta: It's possible to detect commands? - aoEXE - 17.01.2015

mmm ok, so there is no way? because I try with OnPlayerText, OnPlayerCommandText and with more commands processors and not work


Re: Respuesta: It's possible to detect commands? - Ironboy - 17.01.2015

Quote:
Originally Posted by aoEXE
Посмотреть сообщение
mmm ok, so there is no way? because I try with OnPlayerText, OnPlayerCommandText and with more commands processors and not work
Give it a try with "OnPlayerCommandPerformed" too.


Respuesta: It's possible to detect commands? - aoEXE - 17.01.2015

nothing. This callback is not called when typed these commands


Re: It's possible to detect commands? - xVIP3Rx - 18.01.2015

//EDIT, you're talking about default commands, just noticed, I don't know about them and I don't think there's a way to detect them, why would you even detect them ?


Re: It's possible to detect commands? - Abagail - 18.01.2015

I agree the [/audiomessage] should be of a server side approach how-ever as 0.3z it's not possible.


Respuesta: It's possible to detect commands? - aoEXE - 18.01.2015

ehm, why? because I want. Problem? xD (sorry) I want have control of them too but I think can't