16.05.2010, 19:53
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-
Thanks!
Код:
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; }