IRC Echoing help!
#1

Hi,
I am trying to work out a IRC filterscript that would also forward players commands and their params
e.g. [15]Oscar_Cunt:/cad Fuck You Jason!

And I don't know what kind of an public I should use.
I have tried "OnPlayerCommandPerformed"
and several others, any help?
Reply
#2

You would have to edit the OnPlayerCommandText in your ZCMD include.
Reply
#3

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
You would have to edit the OnPlayerCommandText in your ZCMD include.
Any idea on how to do it?
Reply
#4

No, you shouldn't need to edit the include. Either use OnPlayerCommandReceived (called before executing) or OnPlayerCommandPerformed (called after executing).
Reply
#5

Well, here is my code, still it doesn't show commands on IRC

PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    new 
name[MAX_PLAYER_NAME], ircMsg[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(ircMsgsizeof(ircMsg), "02[%d] 07%s: %s"playeridnamecmdtext);
    
IRC_GroupSay(groupIDIRC_CHANNELircMsg);
    return 
1;

Reply
#6

Completely forgot the callbacks had a cmdtext parameter, sorry about that.

@AlexTm - how doesn't it work? try printing cmdtext
Reply
#7

IT doesn't give me an compile error, it just doesn't print on IRC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)