25.06.2012, 16:31
Hello .. I got a problem in chat whatever i write in chat nothing appears .. what mistake i did if anyone knows it kindly give a reply .. thanks
regards ,
Ryan_Petersons
regards ,
Ryan_Petersons
public OnPlayerText(playerid, text[])
{
//=============================== Anti Swear ===================================
if(ServerInfo[AntiSwear] == 1 && User[playerid][Level] < ServerInfo[MaxAdminLevel])
for(new s = 0; s < BadWordsCount; s++)
{
new pos;
while((pos = strfind(text,BadWords[s],true)) != -1)
for(new i = pos, j = pos + strlen(BadWords[s]); i < j; i++) text[i] = '*';
}
//=============================== Admin Chat ===================================
if(text[0] == '#' && User[playerid][Level] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
MessageToAdmins(Green,string);
SaveIn("AdmChatLog",string);
return 1;
}
//=============================== Vip Chat =====================================
if(text[0] == '*' && User[playerid][Vip] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Vip Chat: %s: %s",string,text[1]);
MessageToVips(Green,string);
SaveIn("VipChatLog",string);
return 1;
}
//=============================== ServerTeam Chat ==============================
if(text[0] == '-' && User[playerid][ServerTeam] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"ServerTeam Chat: %s: %s",string,text[1]);
MessageToServerTeam(Green,string);
SaveIn("ServerTeamChatLog",string);
return 1;
}
//================================ Muted =======================================
if(User[playerid][Muted] == 1)
{
SendClientMessage(playerid, Red, "==--You are muted, noone can hear you!--==");
}
return 1;
}
//================================ Muted =======================================
if(User[playerid][Muted] == 1)
{
SendClientMessage(playerid, Red, "==--You are muted, noone can hear you!--==");
return 1;
}