Jump to content

Trudix

Membru
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by Trudix

  1. In server.cfg la rcon in loc de parola pune 0, adica sa il dezactivezi si baga asta in script.

    [pawn]

    #include < a_samp >

    #include <  zcmd  >

    #define Second_Rcon "changeme"

    new

    iAttempt[ MAX_PLAYERS ] = 0,

    bool: iRcon[ MAX_PLAYERS ] = false;

    CMD:rlogin( playerid, params[ ] )

    {

        if ( !strcmp( Second_Rcon, params ) && !( !strlen( params ) ) )

    {

    SendClientMessage( playerid, -1, "Te-ai logat cu succes." );

    iRcon[ playerid ] = true;

    }

    else

    {

        if( iAttempt[ playerid ] >= 3 ) return Kick( playerid );

        {

        SendClientMessage( playerid, -1, "Parola gresita!" );

    iAttempt[ playerid ] ++;

    }

    }

    return 1;

    }

    CMD:test( playerid, params[ ] )

    {

    if( !iRcon[ playerid ] == false ) return SendClientMessage( playerid, -1, "Nu esti RCON!" );

    {

        SendClientMessage( playerid, -1, "Esti RCON!" );

    }

    return 1;

    }

    public OnPlayerDisconnect( playerid, reason )

    {

        iAttempt[ playerid ] = 0;

        iRcon[ playerid ] = false;

    return 1;

    }

    [/pawn]

    Imi poti spune cu ce ma ajuta acest script?

  2. Salut, sunt incepator in ceea ce tine de samp [creare,scripting]... e primul meu server si as vrea sa bag 2 parole la rcon... dupa ce te loghezi la prima, sa ti-o ceara si pe a doua.

    !Nu stiu cum, dar cineva tot imi sparge serverul si le da la toti admin si vip...etc!

    Cum pot face?

    Folosesc game mode romania real stunt

  3. Salut, sunt incepator in ceea ce tine de samp [creare,scripting]... e primul meu server si as vrea sa bag 2 parole la rcon... dupa ce te loghezi la prima, sa ti-o ceara si pe a doua.

    !Nu stiu cum, dar cineva tot imi sparge serverul si le da la toti admin si vip...etc!

    Cum pot face?

    Folosesc game mode romania real stunt

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.