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,779
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:

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.
__________________
if you like uk hip pop check us out https://www.youtube.com/watch?v=7_7xG6RvhOU LIKE if you like subscribe if you live it
shady91 is offline  
Old 02/02/2010, 08:16 AM   #32
CrunkBankS
Huge Clucker
 
CrunkBankS's Avatar
 
Join Date: Feb 2009
Location: Novorossiysk
Posts: 393
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
 
Calgon's Avatar
 
Join Date: Jan 2009
Posts: 6,207
Reputation: 870
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:

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):

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;
	}
}
__________________
Calgon is online now  
Old 07/02/2010, 06:42 PM   #34
CrunkBankS
Huge Clucker
 
CrunkBankS's Avatar
 
Join Date: Feb 2009
Location: Novorossiysk
Posts: 393
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,106
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:

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):

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: 694
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.

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
 
Calgon's Avatar
 
Join Date: Jan 2009
Posts: 6,207
Reputation: 870
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:

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):

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.
__________________
Calgon is online now  
Old 11/02/2010, 07:51 AM   #38
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,393
Reputation: 1089
Default Re: Server Advertisement.

I spam /explode on them xD then they soon leave lolz
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.


Check my GitHub account by clicking the icon above for some of Y_Less' open source work
[HLF]Southclaw is online now  
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,393
Reputation: 1089
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]
__________________
Scavenge and Survive: PvP Survival Server: 37.59.116.108
More information
Scavenge and Survive Tutorial Video #1

A PvP survival game where everyone is pitched against each other.
Supplies are scarce and everyone is willing to kill for the same goals!
Safety in numbers is key to survival, but trust is hard to find.


Check my GitHub account by clicking the icon above for some of Y_Less' open source work
[HLF]Southclaw is online now  
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 08:45 AM.


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