SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Closed Thread
 
Thread Tools Display Modes
Old 02/02/2010, 02:08 AM   #31
shady91
High-roller
 
shady91's Avatar
 
Join Date: Nov 2008
Location: Uk
Posts: 1,783
Reputation: 5
Default Re: Server Advertisement.

Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
__________________


Want to be apart of Need For Speed Carbon Multi Player, you can join us at


Want something in PHP/HTML/PAWN coded pm me.
shady91 is offline  
Old 02/02/2010, 08:16 AM   #32
CrunkBankS
Huge Clucker
 
CrunkBankS's Avatar
 
Join Date: Feb 2009
Location: Novorossiysk
Posts: 405
Reputation: 9
Default Re: Server Advertisement.

Dont work :O
Code:
public OnPlayerText(playerid, text[])
{

HasTextIp(text);

	return 1;
}
__________________

Music Producer

CrunkBankS is offline  
Old 07/02/2010, 04:28 PM   #33
Calgon
Godfather
 
Join Date: Jan 2009
Posts: 6,210
Reputation: 835
Default Re: Server Advertisement.

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
No, I made it. But I used the same stock name as the one in Junkbuster, theirs replaced URLs too, mine just finds an IP + I updated mine (but it will return 1 if they use text, I need to add a numeric thingy):

pawn Code:
stock AdvertisementCheck( string[ ] )
{
    new count, tmc;

  for( new i = 0; i < strlen( string ); i++)
  {
    if( ! strfind( string[ i ], ".", false ) )
    {
      count++;
    }
    if( ! strfind( string[ i ], ":", false ) )
    {
      tmc++;
    }
  }

  if(count == 3)
  {
    if(tmc == 1)
    {
            return true;
        }
        else
        {
          return false;
        }
  }
  else
    {
        return false;
    }
}
__________________
If you don't know then Don't post here.

Quote:
(10:27:18 PM) dugi: hello is this the police?
(10:27:25 PM) dugi: Calgon is being mean
(10:27:31 PM) dugi: arrest him pls
Calgon is offline  
Old 07/02/2010, 06:42 PM   #34
CrunkBankS
Huge Clucker
 
CrunkBankS's Avatar
 
Join Date: Feb 2009
Location: Novorossiysk
Posts: 405
Reputation: 9
Default Re: Server Advertisement.

Working Big Thanks
__________________

Music Producer

CrunkBankS is offline  
Old 10/02/2010, 03:27 PM   #35
SiJ
High-roller
 
SiJ's Avatar
 
Join Date: Feb 2009
Location: Lithuania
Posts: 1,115
Reputation: 9
Default Re: Server Advertisement.

Quote:
Originally Posted by CalgonX
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
No, I made it. But I used the same stock name as the one in Junkbuster, theirs replaced URLs too, mine just finds an IP + I updated mine (but it will return 1 if they use text, I need to add a numeric thingy):

pawn Code:
stock AdvertisementCheck( string[ ] )
{
    new count, tmc;

  for( new i = 0; i < strlen( string ); i++)
  {
    if( ! strfind( string[ i ], ".", false ) )
    {
      count++;
    }
    if( ! strfind( string[ i ], ":", false ) )
    {
      tmc++;
    }
  }

  if(count == 3)
  {
    if(tmc == 1)
    {
            return true;
        }
        else
        {
          return false;
        }
  }
  else
    {
        return false;
    }
}
Shouldn't this:
if( ! strfind( string[ i ], ".", false ) )
be like this:
if( strfind( string[ i ], ".", false ) != -1)
?
__________________
Guess who's back...
SiJ is offline  
Old 10/02/2010, 03:36 PM   #36
DiddyBop
Gangsta
 
DiddyBop's Avatar
 
Join Date: Aug 2009
Posts: 705
Reputation: 10
Default Re: Server Advertisement.

Quote:
Originally Posted by [03
Garsino ]
Someone should make a function that replaces IP's with your server IP.
Crazybobs has this :O.


Anyways, if they come on my server and spam the ip, ill get like 3 people to spam back on there server. Simple as that. But when we spam back, we dont spam the IP. we spam commands + a bunch of jibberish! rawr.

pawn Code:
public OnPlayerText(playerid, text[])
{
    new dotcount =0;
  new coloncount =0;
  for(new a=1; a <strlen(text); a++)
  {
    if(text[a] == ':')
    {
      coloncount ++;
    }
    else
    if(text[a] == '.')
    {
      dotcount ++;
    }
  }
  if(dotcount == 3 && coloncount == 1)
  {
    SendClientMessage(playerid, COLOR_RED, "No advertising on Stunt Planet!");
    return 0;
  }
    return 1;
}
DiddyBop is offline  
Old 11/02/2010, 06:43 AM   #37
Calgon
Godfather
 
Join Date: Jan 2009
Posts: 6,210
Reputation: 835
Default Re: Server Advertisement.

Quote:
Originally Posted by SiJ
Quote:
Originally Posted by CalgonX
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by CalgonX
Agreed. I ban them too, as most of them are completely retarded spammers. Though I made a stock to check if an IP is mentioned in a message:

pawn Code:
stock AdvertisementCheck( string[ ] )
{
new count;
   
for( new i = 0; i < strlen( string ); i++)
{
if( strfind( string[ i ], ".", true ) )
{
count++;
}
}
 
if( count == 3 )
{
if( strfind( string, ":", true ) )
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
you didnt make this, this was made ages ago i remember when i first saw it.
No, I made it. But I used the same stock name as the one in Junkbuster, theirs replaced URLs too, mine just finds an IP + I updated mine (but it will return 1 if they use text, I need to add a numeric thingy):

pawn Code:
stock AdvertisementCheck( string[ ] )
{
    new count, tmc;

  for( new i = 0; i < strlen( string ); i++)
  {
    if( ! strfind( string[ i ], ".", false ) )
    {
      count++;
    }
    if( ! strfind( string[ i ], ":", false ) )
    {
      tmc++;
    }
  }

  if(count == 3)
  {
    if(tmc == 1)
    {
            return true;
        }
        else
        {
          return false;
        }
  }
  else
    {
        return false;
    }
}
Shouldn't this:
if( ! strfind( string[ i ], ".", false ) )
be like this:
if( strfind( string[ i ], ".", false ) != -1)
?
It doesn't matter, it works.
__________________
If you don't know then Don't post here.

Quote:
(10:27:18 PM) dugi: hello is this the police?
(10:27:25 PM) dugi: Calgon is being mean
(10:27:31 PM) dugi: arrest him pls
Calgon is offline  
Old 11/02/2010, 07:51 AM   #38
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,468
Reputation: 1012
Default Re: Server Advertisement.

I spam /explode on them xD then they soon leave lolz
[HLF]Southclaw is offline  
Old 11/02/2010, 08:44 AM   #39
Aur0nX390
Big Clucker
 
Join Date: Sep 2009
Posts: 58
Reputation: 0
Default Re: Server Advertisement.

Quote:
Originally Posted by [SP
LilGunna ę ]
Anyways, if they come on my server and spam the ip, ill get like 3 people to spam back on there server. Simple as that. But when we spam back, we dont spam the IP. we spam commands + a bunch of jibberish! rawr.
That just makes you as immature as they are... :/
Aur0nX390 is offline  
Old 11/02/2010, 04:19 PM   #40
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,468
Reputation: 1012
Default Re: Server Advertisement.

Well if someone comes on and spams then the most illogical thing to do is spam back, because you're still putting spam in the chatbox thus not solving the problem, my advice:
/akill /explode /glitch /drop /mute <<<[boring!:P]
[HLF]Southclaw is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advertisement InsaneESN Help Archive 4 29/05/2010 12:24 AM
Anti Advertisement not 100 % help please jame20702 Help Archive 5 23/05/2010 12:30 AM
Do you like my Server Advertisement Video? clean180ollie Screenshots and Videos 19 20/07/2009 01:58 AM
Do you like my Server Advertisement ( diffrent vid, I edited it) clean180ollie Screenshots and Videos 10 17/07/2009 02:38 PM
SA-MP Server Advertisement Mystic General 3 02/04/2009 01:14 PM


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.