checking for advertising of PM ?
#1

it is verification in a general chat.

new string[256];
for(new i;i < strlen(text);i++)
{
new a[2],c=0;
for(new j = 0;j < strlen(text);j++) //5
{
strmid(a,text,i+j,i+j+1,2);
if('0' <= a[0] <= '9')c+=1;
}
if(c == 5)
{
// Mute[playerid] = 1;
mutetime[playerid] = 300;
SendClientMessage(playerid, 0xFFFFFFAA, " Reklama!!!");
SendClientMessage(playerid, 0xFFFFFFAA, " Chat off - 5 minutes!");
format(string,sizeof(string)," Warning %s wanted to send text: %s",oGetPlayerName(playerid), text);
ABroadCast(COLOR_YELLOW,string,1);
return 0;
}
}
===============================================


but as to do verification yet and in PM?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)