IRC command prefix (+rep) - 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: IRC command prefix (+rep) (
/showthread.php?tid=505989)
IRC command prefix (+rep) -
biker122 - 11.04.2014
Hey guys,
I know that we can change the prefix of irc commands by changing COMMAND_PREFIX in irc.inc. But, Is it possible to have another prefix, for example:
!say - it should work with '!' and also with `say.
You should be able to use !say and also `say.
If it is possible, then how?
Thanks in advance.
Re: IRC command prefix (+rep) -
iZN - 11.04.2014
Open up irc.inc
Change this:
pawn Код:
public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
{
if (recipient[0] == CHANNEL_PREFIX && message[0] == COMMAND_PREFIX)
{ // Remaining code
To:
pawn Код:
#define COMMAND_PREFIX_2 '`'
public IRC_OnUserSay(botid, recipient[], user[], host[], message[])
{
if (recipient[0] == CHANNEL_PREFIX && message[0] == COMMAND_PREFIX || message[0] == COMMAND_PREFIX_2)
{ // Remaining code
Re: IRC command prefix (+rep) -
biker122 - 11.04.2014
Thanks mate!