public OnPlayerText(playerid, text[]) { new str2[256]; if((strfind(text, "7777", true) != -1) || (strfind(text, "7788", true) != -1) || (strfind(text, "189.", true) != -1) || (strfind(text, "187.", true) != -1) || (strfind(text, "185.", true) != -1) || (strfind(text, "7575", true) != -1) || (strfind(text, "75.", true) != -1)) { MensagemFormatadaParaTodos(AZUL_CLARO, "O Jogador {FB0000}%s{00C2EC} Foi Banido por divulgar IP.\r\n", Nome(playerid)); EscreverLog("LLADMIN/Logs/Banidos.log", String); format(String, sizeof(String), "LLADMIN/Banidos/Contas/%s.txt", Nome(playerid)); getdate(Ano, Mes, Dia); gettime(Hora, Minuto, Segundo); DOF2_CreateFile(String); DOF2_SetString(String, "Admin", "Admin automatico"); DOF2_SetString(String, "Motivo", "Divulgaзгo de IP"); DOF2_SetInt(String, "Ano", Ano); DOF2_SetInt(String, "Mes", Mes); DOF2_SetInt(String, "Dia", Dia); DOF2_SetInt(String, "Hora", Hora); DOF2_SetInt(String, "Minuto", Minuto); Kick(playerid); } format(String, sizeof(String), "LLADMIN/Teleportes/%s.txt", text); if(DOF2_FileExists(String)) { format(str2, sizeof(str2), "O Jogador %s foi para o 'te %s' [Teleporte Criado pelo Admin: %s] (para ir basta digitar as palavras entre aspas)", Nome(playerid), DOF2_GetString(String, "Comando"), DOF2_GetString(String, "Admin")); SendClientMessageToAll(AMARELO, str2); SetPlayerPos(playerid, DOF2_GetFloat(String, "X"), DOF2_GetFloat(String, "Y"), DOF2_GetFloat(String, "Z")); return 0; } if(PlayerDados[playerid][Calado] == true) { SendClientMessage(playerid, BRANCO, "Vocк Estб calado e nгo pode falar!"); return 0; } #if DESTAQUE_ADMINS == 1 if(GetarDado(playerid, Admin) > 1) { if(GetarDado(playerid, Disfarcado) == true) { format(String, sizeof(String), "%s: %s", Nome(playerid), text); MsgAll(GetPlayerColor(playerid), String); return 0; } format(String, sizeof(String), "[ADM] %s: %s", Nome(playerid), text); MsgAll(GetPlayerColor(playerid), String); return 0; } #endif return 1; } |
// Em OnplayerText
new Float:Pos[3],String[128],Nome[MAX_PLAYER_NAME];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(String, 128, "%s diz: %s", Nome,text);
for(new i; i != GetMaxPlayers(); i++){if(IsPlayerInRangeOfPoint(i, 20, Pos[0], Pos[1], Pos[2])){SendClientMessage(i, -1, String);}}
public OnPlayerText(playerid, text[])
{
new str[100];
GetPlayerName(playerid, Name, sizeof(Name));
format(str, sizeof(str), "%s : %s", Name, text);
ProxDetector(4.0, playerid, str, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA, 0xFFFFFFAA);
return 0;
}