Hallo,
ich hab ein Problem, undzwar wenn ich ein Text in den Chat eingebe kommt, dieser 2 mal einmal das es alle sehen und einmal Baby sagt: ...
Kann mir wer helfen
public OnPlayerText(playerid, text[])
{
if(ImInterview[playerid] == 1)
{
new name[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"[Interview]%s: %s",name, text);
SendClientMessageToAll(COLOR_ORANGE,string);
return 1;
}
if(Telefoniert[playerid] == 1)
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(Anrufer[i][AnruferID] == playerid)
{
new str[128], GetName[MAX_PLAYER_NAME];
GetPlayerName(playerid,GetName,sizeof(GetName));
format(str,128,"[Handy] %s: %s",GetName,text);
SendClientMessage(playerid,COLOR_GOLD,str);
SendClientMessage(i,COLOR_GOLD,str);
return 1;
}
}
}
if(ImInterview[playerid] == 0)
{
if(Telefoniert[playerid]== 0)
{
if(InSupport[playerid] == 0)
{
new String[128];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
format(String, 128, "%s sagt: %s", PlayerName, text);
ProxDetector(20.0, playerid, String, Color_Speak1, Color_Speak2, Color_Speak3, Color_Speak4, Color_Speak5);
return 1;
}
}
}
if(InSupport[playerid] == 1)
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(DeinSupport[i] == playerid)
{
new str[128], GetName[MAX_PLAYER_NAME], str2[128];
GetPlayerName(playerid,GetName,sizeof(GetName));
format(str,sizeof(str),"%s: %s",GetName,text);
SendClientMessage(i,COLOR_GOLD,str);
format(str2,sizeof(str2),"--> %s",text);
SendClientMessage(playerid,COLOR_GOLD,str2);
return 1;
}
}
}
return 0;
}