• 0

    posted a message on Player Handle - Ban System

    Quote from ScorpSCII:
    nvm.
    ----

    Up !!!!!!!!

    Posted in: General Chat
  • 0

    posted a message on Player Handle - Ban System

    Hello everyone,i post because i need a serious help >_<,

    i created a trigger for my map to have the name+Id account (handle of player 1)
    so here my question how can i display the Name of the player+the account id of the player on the same line ??
    And i really want to create a ban system so,that's display the name+account id it's cool but,i want to make an auto-kick
    like a trigger who need to read the account id then that's Display the name of the player who has the id (banned) with a message like (playername) Is on
    the blacklist ! then the player defeat and leave.
    If soneone can make me a test map.

    That's what i want: if the player account id is 2-S2-11926474 and the trigger has identified the player ACCOUNT ID 2-S2-11926474: i want: a display message with PlayerName(color if possible)+Is Banned then the defeat trigger to kick the banned (handle) player.

    Sorry for my bad english. Thanks !
     //--------------------------------------------------------------------------------------------------
    // Trigger: !player1
    //--------------------------------------------------------------------------------------------------
    bool gt_player1_Func (bool testConds, bool runActions) {
        // Actions
        if (!runActions) {
            return true;
        }

        UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, PlayerName(1));
        Wait(4.0, c_timeGame);
        UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(PlayerHandle(1)));
        return true;
    }

    //--------------------------------------------------------------------------------------------------
    void gt_player1_Init () {
        gt_player1 = TriggerCreate("gt_player1_Func");
        TriggerAddEventChatMessage(gt_player1, c_playerAny, "!player1", true);
    }

    i've find that in a map if that's can help ?

    if (((StringEqual(PlayerHandle(lp_ply), "2-S2-1-1524655", c_stringCase) == true)

    but in GUI how that's look ??

    Posted in: General Chat
  • To post a comment, please or register a new account.