@Hook_Say(const iP_ID) { read_args(iMessage, charsmax(iMessage)); remove_quotes(iMessage); if(iMessage[0] == '@' || iMessage[0] == '.' || iMessage[0] == '/' || iMessage[0] == '!' || equal(iMessage, "") || is_user_ghost(iP_ID)) return PLUGIN_CONTINUE; new iNumed[6]; num_to_str(iL_Global[Answer], iNumed, charsmax(iNumed)); if(equal(iNumed,iMessage) && !iL_Global[IsAnswered]) @TrueAnswer(iP_ID); new ret,szError[128],iResult,Regex:iSayCheck; iSayCheck = regex_compile("[0-9]", ret, szError, charsmax(szError)); iResult = regex_match_all_c(iMessage, iSayCheck, ret); regex_free(iSayCheck); if(iResult > 5) { client_print_color(iP_ID, iP_ID, "%s ^1Reklam yapmaya calistiginiz icin engellendiniz.",sD_Tag[SayTag]); return PLUGIN_HANDLED; } new isAlive,bool:isAdmin,iUID = nGetUidByID(iP_ID),iStatus = nGetUidStatus(iUID); is_user_alive(iP_ID) ? (isAlive = 1,pAlive = "^x01"):(isAlive = 0,pAlive = "^x01(x) "); isAdmin = (get_user_flags(iP_ID) & ADMIN_RESERVATION) ? true :false; static iColor[10]; get_user_team(iP_ID, iColor, charsmax(iColor)); isAdmin ? formatex(strText, charsmax(strText), "^x04%s", iMessage):formatex(strText, charsmax(strText), "^x01%s", iMessage); (iStatus == 3 || iStatus == 9) ? formatex(strName, charsmax(strName), "^x01[^x03%i ^4Level^x01] %s %s^x03%n", iL_Int[iP_ID][Level],iStatus == 9 ? "^x03(^x04Yonetici^x03)":"^x03(^x04Prime^x03)" ,pAlive,iP_ID): formatex(strName, charsmax(strName), "^1[^3%i ^4Level^1] %s^x03%n", iL_Int[iP_ID][Level],pAlive, iP_ID); formatex(iMessage, charsmax(iMessage), "^x03(^x04%s^x03) %s^x01 : %s", sD_Tag[KisaTag],strName, strText); sendMessage(iColor, isAlive); return PLUGIN_HANDLED; } @Say_Team(const iP_ID) { read_args(iMessage, charsmax(iMessage)); remove_quotes(iMessage); new iNumed = str_to_num(iMessage),NTS[7]; num_to_str(iNumed,NTS , charsmax(NTS)); if(iMessage[0] == '@' || iMessage[0] == '.' || iMessage[0] == '/' || iMessage[0] == '!' || equal(iMessage, "") || is_user_ghost(iP_ID)) return PLUGIN_CONTINUE; new ret,szError[128],iResult,Regex:iSayCheck; iSayCheck = regex_compile("[0-9]", ret, szError, charsmax(szError)); iResult = regex_match_all_c(iMessage, iSayCheck, ret); regex_free(iSayCheck); if(iResult > 5) { client_print_color(iP_ID, iP_ID, "%s ^1Reklam yapmaya calistiginiz icin engellendiniz.",sD_Tag[SayTag]); return PLUGIN_HANDLED; } new iPlayerTName[19]; switch(get_member(iP_ID, m_iTeam)) { case TEAM_SPECTATOR : copy(iPlayerTName,9,"Izleyici"); case TEAM_CT: copy(iPlayerTName,9,"Gardiyan"); case TEAM_TERRORIST: copy(iPlayerTName,7,"Mahkum"); } new isAlive,bool:isAdmin,iUID = nGetUidByID(iP_ID),iStatus = nGetUidStatus(iUID); is_user_alive(iP_ID) ? (isAlive = 1,pAlive = "^x01"):(isAlive = 0,pAlive = "^x01(x) "); isAdmin = (get_user_flags(iP_ID) & ADMIN_RESERVATION) ? true :false; static iColor[10]; get_user_team(iP_ID, iColor, charsmax(iColor)); isAdmin ? formatex(strText, charsmax(strText), "^x04%s", iMessage):formatex(strText, charsmax(strText), "^x01%s", iMessage); iStatus == 3 ? formatex(strName, charsmax(strName), "^x01[^x03%i ^4Level^x01] ^x01(^x03-^x04PRIME^x03-^x01) %s(%s) ^x03%n", iL_Int[iP_ID][Level],pAlive,iPlayerTName,iP_ID): formatex(strName, charsmax(strName), "^1[^3%i ^4Level^1] %s(%s) ^x03%n", iL_Int[iP_ID][Level],pAlive, iPlayerTName, iP_ID); formatex(iMessage, charsmax(iMessage), "^x03(^x04%s^x03) %s^x01 : %s", sD_Tag[KisaTag],strName, strText); sendTeamMessage(iColor,isAlive,int:get_member(iP_ID, m_iTeam)); return PLUGIN_HANDLED; }