#1

Ok now me problem is i made a filterscript for irc. But i dont wanna put the whole FS in me gamemode. but i need

pawn Код:
forward SendToIrcAdmins(player[],reciever[],const string[]);
public SendToIrcAdmins(player[],reciever[],const string[])
{
    new ircstr[180],botid;
    IRC_JoinChannel(botid, IRC_ADMINCHANNEL);
    format(ircstr,sizeof(ircstr),"%s",string);
    IRC_GroupSay(gGroupID,IRC_ADMINCHANNEL,ircstr);
    return 1;
}
in me gamemode for the admin channel how can i fix this.? soz for bad english if you dont understand me please say me i try to explain better then,
Reply
#2

Define what you need such as channel, botid and so on and use that on your gamemode.
Reply
#3

pawn Код:
#define BOT_1_NICKNAME "DS1"
#define BOT_1_REALNAME "DS1"
#define BOT_1_USERNAME "DS1"
#define BOT_2_NICKNAME "DS2"
#define BOT_2_REALNAME "DS2"
#define BOT_2_USERNAME "DS2"
#define IRC_SERVER "irc.foco.co"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#dstest"

#define         blue                        0x375FFFFF
#define         red                         0xFF0000AA
#define         green                       0x33FF33AA
#define         ROJO                        0x33FF33AA
#define         yellow                      0xFFFF00AA
#define         grey                        0xC0C0C0AA
#define         blue1                       0x2641FEAA
#define         lightblue                   0x33CCFFAA
#define         orange                      0xFF9900AA
#define         black                       0x2C2727AA
#pragma         tabsize                     0
#define MAX_BOTS (2)
new gBotID[MAX_BOTS], gGroupID;

#define IRC_ADMINCHANNEL "#adminchannel"
This ^^?
Reply
#4

yes, copy paste this on top of your script..and copy paste that public function out of any callback, end of script?
Reply
#5

So i need only put the define`s and the SendToIrc script?
Reply
#6

Define these for now and compile. If it needs something else or it gives errors that something is undefined, then you should check the FS that it's defined and add that too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)