Hallo,
wenn ich auf mein Server Connecte kann ich MANCHMAL etwas schreiben und MANCHMAL nicht.
public OnPlayerText(playerid, text[])
{
new pID;
if(GetPVarInt(pID,"Mute") >= 1) return 0;
for(new i=0;i<sizeof(SchimpfWort);i++)
{
if(strfind(text,SchimpfWort[i],true) != -1)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"[ANTI-CHEAT:] %s wurde vom ANTI-SCHIMPFWORT-TOOL gekickt. Grund: %s",playername,SchimpfWort[i]);
SendClientMessageToAll(HELLROT,string);
SetTimerEx("KickTimer",200,false,"i",pID);
}
}
new sendername[32],string[128];
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string),"{FF24AF}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==1) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{00AD68}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{FFFF00}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{AAAAAA}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{00A5FF}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{FF6E00}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
return 0;
}
Das passiert seitdem ich das hier:
new sendername[32],string[128];
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string),"{FF24AF}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==1) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{00AD68}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{FFFF00}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{AAAAAA}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{00A5FF}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
format(string, sizeof(string),"{FF6E00}%s {FAFAFA}sagt: %s",sendername,text);
if(klasse[playerid]==2) { SendClientMessageToAll(playerid,string); }
return 0;
eingefügt habe.