[GM-ADDON] Ignore the player!
#1

Ignore that player!

Ignore that player v2.0 (Links are welcome)

this is a simple command to ignore players, its a GM addon if you can try this in a filterscript, no succes at me but w/e

Commands
/ignore [playerid]
/ignorelist
/ignorecredits

Pastebin v1.0
Pastebin v2.0 UNTESTED!
Reply
#2

Looks p cool :P
Reply
#3

Code:
public OnPlayerText(playerid, text[])
{	
	for(new i=0;i <MAX_PLAYERS; i++)
	{
		if(ignore[i][playerid] == 1)
		{
		  return 0;
		}
	}
	return 1;
}
So, if one person ignores him, he won't be able to use the chat? That isn't a good way of doing it.
Reply
#4

Quote:
Originally Posted by Jay_
Code:
public OnPlayerText(playerid, text[])
{	
	for(new i=0;i <MAX_PLAYERS; i++)
	{
		if(ignore[i][playerid] == 1)
		{
		  return 0;
		}
	}
	return 1;
}
So, if one person ignores him, he won't be able to use the chat? That isn't a good way of doing it.
posted wrong version thats my beta v2 its fucked up i know
Reply
#5

Try:


Code:
static iPlayerIgnored[MAX_PLAYERS];

public OnPlayerText(playerid,text[])
{
  for(new i; i<MAX_PLAYERS; i++)
  {
     if(iPlayerIgnored[i] == playerid) continue;
     SendPlayerMessageToPlayer(i,playerid,text);
  }
  return true;
}
That's only the text part though, not the command to ignore someone and stuff.
Reply
#6

Quote:
Originally Posted by Pandabeer1337
Quote:
Originally Posted by Jay_
Code:
public OnPlayerText(playerid, text[])
{	
	for(new i=0;i <MAX_PLAYERS; i++)
	{
		if(ignore[i][playerid] == 1)
		{
		  return 0;
		}
	}



	return 1;
}
So, if one person ignores him, he won't be able to use the chat? That isn't a good way of doing it.
posted wrong version thats my beta v2 its fucked up i know

Lol thats not a beta^^ Thats shit
But if it's better now nice idea

TheShadow
Reply
#7

well i updated it but you may look 4 yourself if its working
Reply
#8

Erm,

I tryed this in my server with a few players and I would do the following.

/ignore 1

/ignorelist |result (id: 0) (Wasn't id 1)

So in conclusion, It doesn't work if you have multiple players.
Reply
#9

Quote:
Originally Posted by [FF
Nimphious ]
Erm,

I tryed this in my server with a few players and I would do the following.

/ignore 1

/ignorelist |result (id: 0) (Wasn't id 1)

So in conclusion, It doesn't work if you have multiple players.
how do you use it, like a FS or a GM ADDON?
Reply
#10

GameMode addon
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)