12.07.2014, 15:42
I have a problem, I am in fashion something has deleted and when I write in chat, I see what I write, but when other people write or PM me I can't see what they write and current are shown Nicky them!
We cannot help you unless you show us your code.
Post your OnPlayerText |
public OnPlayerText(playerid, text[]) { if(strval(text) == Viktorina) { new str[128],name[24],prize; GetPlayerName(playerid,name,sizeof name); prize = random(vMaxP); format(str,sizeof str,"{FFA500}Викторина: {ffffff}Игрок {FFA500}%s[id: %d]{ffffff} угадал! Ответ был: {FFA500}%d{ffffff}. Он получает: {00ff00}%d$",name,playerid,Viktorina,prize); SendClientMessageToAll(1,str); GivePlayerMoney(playerid,prize); Viktorina = -5415614561541; } if((GetTickCount() - GetPVarInt(playerid,"Flood_Text")) <= 2000 && GetPVarInt(playerid,"Level") < 1)//[KrYpToDeN] { SetPVarInt(playerid,"FlooderIntoChat",GetPVarInt(playerid,"FlooderIntoChat")+1); if(GetPVarInt(playerid,"FlooderIntoChat") > 10) return BanEx(playerid,"Flooder_Into_Chat"); return SendClientMessage(playerid,-1,"Вы можете писать сообщения в чат не чаще,чем раз в 2 секунды!")?0:0; } SetPVarInt(playerid,"Flood_Text",GetTickCount()); SetPVarInt(playerid,"FlooderIntoChat",0); if(pStats[playerid][pLogged] == 0) { SendClientMessage(playerid, 0xF6F600AA, "{00CCFF}| Samp_World™ |{0099CC} Введите свой пароль"); return false; } if(Mute[playerid] == 1) { SendClientMessage(playerid, 0xF60000AA, "Ты не можешь говорить, тебе дали бан чата"); return false; } if(IsMessageSent[playerid] == 1) { SendClientMessage(playerid,admin2, "[ Анти-флуд ] Сообщения можно писать 1 раз в 3 секунды"); return false; } else { IsMessageSent[playerid] = 1; SetTimerEx("UnMutedX",interval*1000,0,"d",playerid);} UpperToLower(text); new count; for (new i; i < strlen(text); i++) { if (text[i] >= '0' && text[i] <= '9') { count++; if(count == 4) { SendClientMessage(playerid, admin2,"' В вашем сообщении слишком много цифр, сообщение не отправлено '"); format(GlobalInfo, sizeof(GlobalInfo), "```'%s'[%d] хотел написать в чат (%s)", PlayerEx[playerid][pNameEx],playerid, text); ABroadCast(COLOR_LIGHTRED,GlobalInfo, 1); return false; } } } for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(text,Swears[s],true)) != -1) for(new i = pos, j = pos + strlen(Swears[s]); i < j; i++){ text[i] = '*'; } } regex_replace_exid(text, antiReklama, REPLACE_TEXT, message); new string[256]; if(PGang[playerid] > 0) { GetPlayerColor(playerid); format(string, sizeof(string), " %s | %s{00FD00}[ID: %d]{FFFFFF}: %s",GName[PGang[playerid]], PlayerName(playerid), playerid, text); SendClientMessageToAll(GetPlayerColor(playerid), string); return false; } switch(pStats[playerid][ChatColor]) { case 0: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 1: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 2: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 3: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 4: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 5: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 6: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 7: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 8: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 9: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 10: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 11: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 12: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 13: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 14: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 15: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 16: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 17: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 18: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 19: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 20: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 21: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 22: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 23: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 24: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 25: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 26: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 27: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 28: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 29: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 30: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 31: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 32: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 33: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 34: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 35: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 36: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 37: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 38: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } case 39: { format(string, sizeof(string), "%s(%d): {FFFAFA}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string); } } /*format(string, sizeof(string), "%s(%d): {FFFFFF}%s", PlayerEx[playerid][pNameEx], playerid, message); SendClientMessageToAll(GetPlayerColor(playerid), string);*/ return 0; }