A Problem with clan chat.
#1

Whenever someone types in the clan chat it says the thing he wrote both on the public chat & on the clan chat, tried to fix it but couldnt do it, here is the onplayertext of the clan system-
Код:
public OnPlayerText(playerid, text[])
{
  new Name[24];
	GetPlayerName(playerid,Name,24);
	format(file,256,userfiles,Name);
	ClanName = dini_Get(file,"Clan");

  if(text[0] == '!')
	{
		if(InMuteC[playerid] == 1){ SendClientMessage(playerid,COLOR_RED," אתה לא יכול לכתוב בקלאן צ'אט כשאתה במיוט ");return 0;}
		format(file,256,clansfiles,ClanName);
		if(dini_Int(file,"ChatLock") == 1)
		{
		  format(file,256,userfiles,Name);
		  if(dini_Int(file,"ClanLevel") < 3)
		  {
		    SendClientMessage(playerid,COLOR_RED," אתה לא יכול לכתוב בקלאן צ'אט כשהצ'אט נעול ");
				return 0;
			}
		}
 		GetPlayerName(playerid,name,24);
		format(file,256,userfiles,name);
	  	if(dini_Isset(file,"Clan"))
		{
   		format(str3,sizeof(str3)," [ClanChat] [%s] %s: %s (ID: %d | Level: %d) ",dini_Get(file,"Clan"),name,text[1],playerid,dini_Int(file,"ClanLevel"));
      SendClanMessage();
      SendClanMessageToRadmin();
      return 0;
    }
  }
	return 1;
}
Thanks!
Reply
#2

if you use Custom Text , then it shows 2 times text
Reply
#3

what do you mean custom text?
Reply
#4

bump
Reply
#5

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)