Found these using google cache, i am still searching for executable file.
Add this to your script:
[pawn]//------------------------------------------------------------------------------------------------------
PerformSQLquery(str[]) // PSA function for performing queries.
{
new File: filex;
filex = fopen("sql_input.psa");
fwrite(filex,str);
fclose(filex);
return false;
}
//------------------------------------------------------------------------------------------------------
PerformSQLquerySelect(qid[], str[]) // PSA function for performing "select" queries.
{
format(str,sizeof(str),"%d %s",qid,str);
new File: filex;
filex = fopen("sql_input.psa");
fwrite(filex,str);
fclose(filex);
return false;
}
//------------------------------------------------------------------------------------------------------
OnQueryResult(qid[], str[]){ // Function for outputting "select" queries results. qid is the one from PerformSQLquerySelect.
printf("Received query %s: %s",qid,str);
}
//------------------------------------------------------------------------------------------------------
SendToIRC(str[]) // PSA function for sending things to IRC.
{
new File: filex;
filex = fopen("irc_input.psa");
fwrite(filex,str);
fclose(filex);
return false;
}
//------------------------------------------------------------------------------------------------------
public PSAtimer() // PSA timer for reading things from IRC.
{
new cont[1024], str[256], msg[256], File: filex;
if(fexist("irc_output.psa")){
filex = fopen("irc_output.psa");
fread(filex,cont,sizeof(cont));
fclose(filex);
while(strfind(cont,"\n")>0){
strmid(str,cont,0,strfind(cont,"\n"));
strdel(cont,0,strfind(cont,"\n"));
format(msg,sizeof(msg),"**(I-R-C)**::=> %s ",str);
SendClientMessageToAll(0xFFFFFFAA,msg);
print(msg);
}
fremove("irc_output.psa");
}
if(fexist("sql_output.psa")){
new qid[256];
filex = fopen("sql_output.psa");
fread(filex,cont,sizeof(cont));
fclose(filex);
while(strfind(cont,"\n")>0){
strmid(str,cont,0,strfind(cont,"\n"));
strdel(cont,0,strfind(cont,"\n"));
new space = strfind(qid," ");
strmid(qid,str,0,space);
strdel(str,0,space);
OnQueryResult(qid,str);
format(msg,sizeof(msg),"OnIrc>> %s: %s ",qid,str);
SendClientMessageToAll(0xFFFFFFAA,msg);
print(msg);
}
fremove("irc_output.psa");
}
}
forward PSAtimer();
public OnGameModeInit()
{
SetTimer("PSAtimer",500,1);return 1;
}
[/pawn]
PSA.cfg
irc_enabled true
irc_serv irc.gtanet.com
irc_port 6667
irc_nick ServerBotz
irc_pass 12345
irc_chan #(you channel)
Downloadhttp://www.solidfiles.com/d/87f0d177fe/ (by seebby)
UPDATED the 1st post thanks to seebby for link.