A Problem with clan chat. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A Problem with clan chat. (
/showthread.php?tid=148352)
A Problem with clan chat. -
Apply - 16.05.2010
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!
Re: A Problem with clan chat. -
rs2fun111 - 16.05.2010
if you use Custom Text , then it shows 2 times text
Re: A Problem with clan chat. -
Apply - 16.05.2010
what do you mean custom text?
Re: A Problem with clan chat. -
Apply - 16.05.2010
bump
Re: A Problem with clan chat. -
Apply - 16.05.2010
Anyone?