Nos van egy anti reklám scriptem, asszem GameStar készítette. Így néz ki:
#include <a_samp>
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Anti Reklámozó Script Betöltve \");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerText(playerid, text[])
{
new szamok=0,pontok=0, kettospont=0;
for(new ch=0; ch<strlen(text); ch++) if(text[ch]>=\'0\' && text[ch]<=\'9\')szamok++; else if(text[ch]==\'.\')pontok++; else if(text[ch]==\':\')kettospont++;
if(szamok>=9 && pontok>=3 && kettospont==1) BanEx(playerid,\"Reklámozás\");
return 1;
}
Ezt kellene nekem úgy módosítani hogy amikor az illetõ hirdet és kibannolja akkor írja ki mindenkinek pirossal a következõ szöveget: XYZ automatikusan bannolva lett ! Indok: Reklámozás
Elõre is köszönöm
Üdv Nátha
#include <a_samp>
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Anti Reklámozó Script Betöltve \");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerText(playerid, text[])
{
new szamok=0,pontok=0, kettospont=0;
for(new ch=0; ch<strlen(text); ch++) if(text[ch]>=\'0\' && text[ch]<=\'9\')szamok++; else if(text[ch]==\'.\')pontok++; else if(text[ch]==\':\')kettospont++;
if(szamok>=9 && pontok>=3 && kettospont==1) BanEx(playerid,\"Reklámozás\");
new string[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),\"%s bannolva lett [iNDOK : Hirdetés]\",name);
SendClientMessageToAll(COLOR_GREEN,str);
return 1;
}