Help. - 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: Help. (
/showthread.php?tid=393684)
Help. -
[HM]Nicky - 19.11.2012
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,
Re: Help. -
Konstantinos - 19.11.2012
Define what you need such as channel, botid and so on and use that on your gamemode.
Re: Help. -
[HM]Nicky - 19.11.2012
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 ^^?
Re: Help. -
[HK]Ryder[AN] - 19.11.2012
yes, copy paste this on top of your script..and copy paste that public function out of any callback, end of script?
Re: Help. -
[HM]Nicky - 19.11.2012
So i need only put the define`s and the SendToIrc script?
Re: Help. -
Konstantinos - 19.11.2012
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.