[Ajuda] Probleminha.
#3

Код:
public OnPlayerText(playerid, text[]) {
	new TextCheck[100], Str[128];

    if(IsPlayerConnected(playerid)) {

        for(new i = 0; i < sizeof(IpantiDivulgador); i++) {

            if(strfind(text, IpantiDivulgador[i], true) != -1) {
    		  format(TextCheck, sizeof(TextCheck), "-AdminChat- Player: %s(%d) digitou o ip: %s", Nome(playerid), playerid, text);
    		  SendMessageToAdmins(COR_OPER4, TextCheck);
              return 0;
            }
		}
	}

	if(Player[playerid][pMute] == true) return SendClientMessage(playerid, VERMELHO, "ERRO: Vocк estб mutado | Periodo: 1 minuto.");

	GetPVarString (playerid, "UltimoTexto", TextCheck, sizeof TextCheck);

	if(strlen(TextCheck) && !strcmp(TextCheck, text)) {
	    SendClientMessage(playerid, VERMELHO, "[ADMIN BOT] Detectado flood, o proximo vocк serб kickado.");
	    return 0;
	}

	SetPVarString(playerid, "UltimoTexto", text);

 	if(Player[playerid][pLogged] == false) return 0;
    if(Player[playerid][pMute] == true) {
        SendClientMessage(playerid, VERMELHO, "[ADMIN BOT] Vocк foi mutado por 1 minuto, aguarde..");
        return 0;
    }

    new String[128];
    if(text[0] == '!' || text[0] == '@' || text[0] == '#') {

        for(new i=0; i < MAX_PLAYERS; i++) {

            if(Player[playerid][pGang] == 1) {
                format(String,sizeof(String),"[Chat Grove Street Families] %s (%d): {FFFFFF}%s", Nome(playerid), playerid, text[1]);
		    	if(Player[i][pGang] == 1)
		        SendClientMessage(i, COR_GROVE, String);
	        }

	    	if(Player[playerid][pGang] == 2) {
		    	format(String,sizeof(String),"[Chat The Ballas] %s (%d): {FFFFFF}%s", Nome(playerid), playerid, text[1]);
		    	if(Player[i][pGang] == 2)
		        SendClientMessage(i, COR_BALAS, String);
	        }

	    	if(Player[playerid][pGang] == 3) {
		    	format(String,sizeof(String),"[Chat Los Vagos] %s (%d): {FFFFFF}%s", Nome(playerid), playerid, text[1]);
		    	if(Player[i][pGang] == 3)
		        SendClientMessage(i, COR_VAGOS, String);
	        }

	      	if(Player[playerid][pGang] == 4) {
		    	format(String,sizeof(String),"[Chat LSPD] %s (%d): {FFFFFF}%s", Nome(playerid), playerid, text[1]);
		    	if(Player[i][pGang] == 4)
		        SendClientMessage(i, COR_LSPD, String);
	        }
		}
		return 0;
  	}
	if(strfind(text, "xiter", true) == 0)     { SendClientMessage(playerid, COR_CYAN, "Viu algo ilegal [Cheats/Hacks/Fora das Regras] use '/report [id] [motivo]'."); }
  	if(strfind(text, "sv lixo", true) == 0)   { SendClientMessage(playerid, 0xFF0000AA,"Faзa melhor, BANIDO !"); Ban(playerid); return 0; }
    SetPlayerChatBubble(playerid, text, -1, 100.0, 10000);
    format(Str, sizeof(Str), "[ID:%d]:{FFFFFF} %s", playerid, text);
    SendPlayerMessageToAll(playerid, Str);
    return 0;
}
Reply


Messages In This Thread
Probleminha. - by BieeelEvolution - 20.10.2013, 20:24
Re: Probleminha. - by PT - 20.10.2013, 20:37
Re: Probleminha. - by BieeelEvolution - 20.10.2013, 20:40
Re: Probleminha. - by Schocc - 20.10.2013, 20:49
Re: Probleminha. - by BieeelEvolution - 20.10.2013, 22:18
Re: Probleminha. - by Gii - 20.10.2013, 22:36
Re: Probleminha. - by Don_Speed - 20.10.2013, 22:40
Re: Probleminha. - by BieeelEvolution - 20.10.2013, 22:43
Respuesta: Re: Probleminha. - by DanDRT - 20.10.2013, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)