[GM-ADDON] Ignore the player! -
Think - 13.02.2009
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!
Re: [GM-ADDON] Ignore the player! -
Nimphious - 13.02.2009
Looks p cool :P
Re: [GM-ADDON] Ignore the player! -
Grove - 13.02.2009
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.
Re: [GM-ADDON] Ignore the player! -
Think - 13.02.2009
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
Re: [GM-ADDON] Ignore the player! -
Grove - 13.02.2009
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.
Re: [GM-ADDON] Ignore the player! -
]NM[TheShadow - 03.03.2009
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
Re: [GM-ADDON] Ignore the player! -
Think - 03.03.2009
well i updated it but you may look 4 yourself if its working
Re: [GM-ADDON] Ignore the player! -
Nimphious - 03.03.2009
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.
Re: [GM-ADDON] Ignore the player! -
Think - 03.03.2009
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?
Re: [GM-ADDON] Ignore the player! -
Nimphious - 03.03.2009
GameMode addon