[Ajuda] Enviar comando ao logar
#8

pawn Код:
public OnPlayerText(playerid, text[])
{
            ChatLog(playerid, text);
            if(EstaAFK[playerid] == 0)
        {
        TFora[playerid] = SetTimerEx("Fora", 60000, 1, "i", playerid);
        EstaAFK[playerid] = 1;
        return 1;
        }
        else if(EstaAFK[playerid] == 1)
        {
            KillTimer(TFora[playerid]);
            TFora[playerid] = SetTimerEx("Fora", 60000, 1, "i", playerid);
            EstaAFK[playerid] = 1;
            return 1;
        }
    new giver[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];

    new tmp[128];
    new string[360];
    new giveplayerid;
    PlayerInactivity[playerid] = 0;
    if(TentouDivulgar(text))
    {
        if(cdivulgar[playerid] >= 4)
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
            Kick(playerid);
        }
        format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,PlayerName(playerid),text);
        ABroadCast(COLOR_YELLOW,string,1);
        DivulgouLog(string);
        cdivulgar[playerid] += 1;
        return 0;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
        SendClientMessage(playerid, TEAM_CYAN_COLOR, "Vocк nгo pode falar, vocк foi calado");
        return 0;
    }
   
        else if ((strcmp("Confirma", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Confirma")))
        {
            if(IsAtClothShop(playerid))
            {
                PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
                SelectCharPlace[playerid] = 0;
                SelectCharID[playerid] = 0;
                SelectChar[playerid] = 0;
                return 0;
            }
            if(ChangePos2[playerid][1] == 1)
            {
                PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
                SetPlayerInterior(playerid, ChangePos2[playerid][0]);
                SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
                ChangePos2[playerid][1] = 0;
                return 0;
            }
            PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
            //PlayerInfo[playerid][pSpawn] = 0;
            SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
            gTeam[playerid] = PlayerInfo[playerid][pTeam];
            SetPlayerToTeamColor(playerid);
            MedicBill[playerid] = 0;
            SpawnPlayer(playerid);
            SelectCharPlace[playerid] = 0;
            SelectCharID[playerid] = 0;
            SelectChar[playerid] = 0;
            return 0;
        }
        else
        {
            SendClientMessage(playerid, TEAM_VAGOS_COLOR, "* Use 'Proximo', ou 'Confirma'.");
            return 0;
        }
    }
pode ter algum erro ai,pois eu apaguei a parte de escolher skin.
Reply


Messages In This Thread
[Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 04:50
Re: [Ajuda] Enviar comando ao logar - by Lуs - 22.04.2012, 04:58
Re: [Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 05:09
Re: [Ajuda] Enviar comando ao logar - by Lуs - 22.04.2012, 05:13
Re: [Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 05:20
Re: [Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 05:25
Re: [Ajuda] Enviar comando ao logar - by Lуs - 22.04.2012, 05:25
Re: [Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 05:38
Re: [Ajuda] Enviar comando ao logar - by Lуs - 22.04.2012, 05:39
Re: [Ajuda] Enviar comando ao logar - by Senhor_Azul - 22.04.2012, 05:42

Forum Jump:


Users browsing this thread: 3 Guest(s)