SendClient
#1

Hi,

i have a problem

If someone types a sentence with a point like this

Test.

than it looks like this screen

http://www.ur-upload.de/?v=zTxYf.jpg

The name is in the colour of the namecolor and there is a double point and the sentence what he typed
and everybody can read it.

I checked everything in my script but i cant find anything... Do you have any ideas?
Reply
#2

Type /timestamp in-game and check yourserver.cfg for a line : Timestamp. Delete it.
Reply
#3

And for what should this be good? I didnt understand what this should do

That has nothing to do with the timestamp
Reply
#4

Quote:
Originally Posted by Master_FM
View Post
Hi,

i have a problem

If someone types a sentence with a point like this

Test.

than it looks like this screen

http://www.ur-upload.de/?v=zTxYf.jpg

The name is in the colour of the namecolor and there is a double point and the sentence what he typed
and everybody can read it.

I checked everything in my script but i cant find anything... Do you have any ideas?
What do you mean?
Also show us your OnPlayerText callback.
Reply
#5

I found the mistake here


Code:
public CheckPlayerText(playerid,string[])
{
new countit = 0;
for(new x=0; x<strlen(string); x++)
{
if(string[x] == '.' && string[x+1] <= '9' && string[x+1] >= '0') // Es wurde ein Punkt und eine Zahl dahinter geschrieben!
{
countit++;
}
else if(string[x] == '.' && string[x+2] <= '9' && string[x+2] >= '0') // Es wurde ein Punkt, Leerzeichen und eine Zahl dahinter geschrieben!
{
countit++;
}
}
if(countit >= 3) // Dreimal und eine IP wird erkannt
{
new textstring[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(textstring,sizeof(textstring)," [ANTI-IP] %s wird verdдchtigt eine IP zu verschicken!",name);
SendAdminMessage(0xFF0000FF,textstring);
format(textstring,sizeof(textstring)," [ANTI-IP] %s: %s",name,string);
SendAdminMessage(0xFF0000FF,textstring);
SendClientMessage(playerid,0xFF0000FF," [ANTI-IP] Wir dulden kein Abwerben bzw. Serverwerbungen! ");
pIPWarns[playerid]++;
if(pIPWarns[playerid] >= 3)
{
format(textstring,sizeof(textstring)," [ANTI-IP] %s wegen Verdacht auf Abwerben gebannt! IP: %d",name);
BanLog(textstring);
SendClientMessageToAll(0xFF0000FF,textstring);
Ban(playerid);
}
return 0;
}
return 1;
}

OnPlayerText....

if(CheckPlayerText(playerid,text) == 0)
	{
		return 1;
	}
If i let the CheckPlayerText under OnPlayerText in i have the mistake...

But i cant find anything in the public
Reply
#6

And the problem is?
Reply
#7

Read my text in the first post...
Reply
#8

Quote:
Originally Posted by Master_FM
View Post
Read my text in the first post...
I did, but I don't get it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)