[AJUDA] bug /so
#1

quando eu digito algo no /so n aparece nada pra mim + pros outros aparece sendo q sou socio e eles nao lol?

pawn Код:
if(strcmp(cmd, "/socio", true) == 0 || strcmp(cmd, "/so", true) == 0)
    {
        if(PlayerInfo[playerid][pMuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Vocк nгo pode falar, pois foi calado");
            return 1;
        }
        if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: (/s)ocio [Socio Chat]");
                return 1;
            }
            if(TentouDivulgar(result))
            {
                if(cdivulgar[playerid] >= 6)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Cuidado, Poderб ser banido.");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Evite digitar muitos nъmeros consecutivos.");
                    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
                    Kick(playerid);
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
                ABroadCast(COLOR_YELLOW,string,1);
                DivulgouLog(string);
                cdivulgar[playerid] += 1;
                return 1;
            }
            else if(PlayerInfo[playerid][pVIP] == 4)
            {
                format(string, sizeof(string), "Socio Bronze %s: %s", PlayerName(playerid), result);
                ChatLider(COR_VAGOS, string, 1);
            }
            else if(PlayerInfo[playerid][pVIP] == 5)
            {
                format(string, sizeof(string), "Socio Prata %s: %s", PlayerName(playerid), result);
                ChatLider(COR_VAGOS, string, 1);
            }
            else if(PlayerInfo[playerid][pVIP] == 6)
            {
                format(string, sizeof(string), "Socio Ouro %s: %s", PlayerName(playerid), result);
                ChatLider(COR_VAGOS, string, 1);
            }
            else if(PlayerInfo[playerid][pVIP] == 7)
            {
                format(string, sizeof(string), "Socio Diamante %s: %s", PlayerName(playerid), result);
                ChatLider(COR_VAGOS, string, 1);
            }
            else if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                format(string, sizeof(string), "Admin %s: %s", PlayerName(playerid), result);
                ChatLider(COR_ADMIN, string, 1);
            }
            format(string, sizeof(string), "[%d/%d/%d] [%d:%d:%d] *%d Lideres %s: %s", v[2], v[1], v[0], v[3], v[4], v[5] , PlayerInfo[playerid][pAdmin], sendername, result);
            //AChatLog(string);
        }
        return 1;
    }
Reply
#2

alguem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)