08.04.2011, 23:33
You mean that code part ?
SOrry for the delay , had RL problem .
pawn Код:
RecordPlayerText(playerid,text);
new namer[24],string[156];
GetPlayerName(playerid,namer,sizeof(namer));
format(string,sizeof(string),"13%s[%d] Got Kicked - Reason: Advertising",namer,playerid);
if(FindIP(text)) { ircSay(EchoConnection,EchoChan,string); return kick4IP(playerid); }
OR--------------------------
This
stock RecordPlayerText(playerid,lolstra[])
{
if(PLAYERLIST_authed[playerid])
{
new fname[100], final[500];
format(fname,sizeof(fname),"playertext/%s.txt",PlayerName(playerid));
format(final,sizeof(final),"%s\r\n",lolstra);
if(!fexist(fname))
{
fcreate(fname);
}
new File:razz = fopen(fname, io_append);
fwrite(razz,final);
fclose(razz);
}
}