Menu Armarmentos simples

| |


//ScriptBy:Cantiliano_                                                                                                                                                                 
#include    <     a_samp     > 

#if defined MAX_PLAYERS
#undef      MAX_PLAYERS
#define     MAX_PLAYERS 50
#endif

#define     COLOR_ERRO      0xFF0000AA
#define     COLOR_VERDE     0x00FF00AA

#define     MAX_BALLAS      3500 // Define Maximo de Ballas
                                                        // Altere o valor 3500 para o qual Queira.
new PlayerText: MenuArmas[ 15 ] [ MAX_PLAYERS ] ;
new MenuAberto [ MAX_PLAYERS ] ;

public OnPlayerConnect( playerid ) { CriarTextDraws( playerid ) ; MenuAberto[ playerid ] = 0;
                                     return 1 ; }

public OnPlayerDisconnect ( playerid ) { MenuAberto[ playerid ] = 0;
                                         return 1 ; }

public OnPlayerKeyStateChange ( playerid , newkeys , oldkeys ) {

    if ( newkeys & KEY_YES )
    {
        if ( MenuAberto[ playerid ] == 1 )
        {
            SendClientMessage( playerid, COLOR_ERRO, "[ > ] {FFFFFF}O Menu de armamentos ja esta aberto." );
            return 1 ;
        }
        MenuAberto[ playerid ] = 1;
        MostrarMenu( playerid ) ;
        SelectTextDraw( playerid, COLOR_ERRO );
    }
    return 1 ;
}

public OnPlayerClickPlayerTextDraw ( playerid , PlayerText:playertextid )
{
    if(_:playertextid == INVALID_TEXT_DRAW)
        return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);

    if ( playertextid == MenuArmas[ 4 ] [ playerid ] ) // AK - 47
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}AK - 47." );
        GivePlayerWeapon ( playerid, 30, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 5 ] [ playerid ] ) // Sniper Rifle
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Sniper Rifle." );
        GivePlayerWeapon ( playerid, 34, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 7 ] [ playerid ] ) // UZI
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Micro SMG/Uzi." );
        GivePlayerWeapon ( playerid, 28, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 9 ] [ playerid ] ) // MP5
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Micro MP5." );
        GivePlayerWeapon ( playerid, 29, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 12 ] [ playerid ] ) // Desert
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Desert Eagle." );
        GivePlayerWeapon ( playerid, 24, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 11 ] [ playerid ] ) // Saw-Off Shotgun
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Saw-Off Shotgun." );
        GivePlayerWeapon ( playerid, 26, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 13 ] [ playerid ] ) // Shotgun
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Shotgun." );
        GivePlayerWeapon ( playerid, 25, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 10 ] [ playerid ] ) // M4
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}M4" );
        GivePlayerWeapon ( playerid, 31, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 8 ] [ playerid ] ) // 9MM - P
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}9MM - P" );
        GivePlayerWeapon ( playerid, 23, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 6 ] [ playerid ] ) // Tec-9
    {
        SendClientMessage( playerid, COLOR_VERDE, "[ > ] {FFFFFF}Você seleciono, a arma {00FF00}Tec-9" );
        GivePlayerWeapon ( playerid, 32, MAX_BALLAS ) ;
    }
    else if ( playertextid == MenuArmas[ 14 ] [ playerid ] ) // Fechando Menu
    {
        SendClientMessage( playerid, COLOR_ERRO, "[ > ] {FFFFFF}Você acaba de fechar o menu de {FF0000}armamentos." );
        RemoverMenu( playerid ) ;
        CancelSelectTextDraw( playerid ) ;
        MenuAberto[ playerid ] = 0;
    }
    return 0;
}

stock CriarTextDraws( playerid )
{
    MenuArmas[ 0 ] [ playerid ] = CreatePlayerTextDraw(playerid,296.000000, 121.000000, " ");
    PlayerTextDrawBackgroundColor(playerid,MenuArmas[ 0 ] [ playerid ], 255);
    PlayerTextDrawFont(playerid,MenuArmas[ 0 ] [ playerid ], 2);
    PlayerTextDrawLetterSize(playerid,MenuArmas[ 0 ] [ playerid ], 0.159999, 1.299999);
    PlayerTextDrawColor(playerid,MenuArmas[ 0 ] [ playerid ], -1);
    PlayerTextDrawSetOutline(playerid,MenuArmas[ 0 ] [ playerid ], 1);
    PlayerTextDrawSetProportional(playerid,MenuArmas[ 0 ] [ playerid ], 1);
    PlayerTextDrawSetSelectable(playerid,MenuArmas[ 0 ] [ playerid ], 0);

    MenuArmas[ 1 ] [ playerid ] = CreatePlayerTextDraw(playerid,416.000000, 106.000000, "ld_pool:ball");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 1 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 1 ] [ playerid ] , 4);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 1 ] [ playerid ] , -0.699999, -8.000000);
    PlayerTextDrawColor(playerid, MenuArmas[ 1 ] [ playerid ] , 1684300870);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 1 ] [ playerid ] , 0);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 1 ] [ playerid ] , 1);
    PlayerTextDrawSetShadow(playerid, MenuArmas[ 1 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 1 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 1 ] [ playerid ] , 102);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 1 ] [ playerid ] , -190.000000, 208.000000);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 1 ] [ playerid ] , 0);

    MenuArmas[ 2 ] [ playerid ] = CreatePlayerTextDraw(playerid,381.000000, 143.000000, "ld_pool:ball");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 2 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 2 ] [ playerid ] , 4);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 2 ] [ playerid ] , -0.719999, -8.000000);
    PlayerTextDrawColor(playerid, MenuArmas[ 2 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 2 ] [ playerid ] , 0);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 2 ] [ playerid ] , 1);
    PlayerTextDrawSetShadow(playerid, MenuArmas[ 2 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 2 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 2 ] [ playerid ] , 102);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 2 ] [ playerid ] , -121.000000, 131.000000);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 2 ] [ playerid ] , 0);

    MenuArmas[ 3 ] [ playerid ] = CreatePlayerTextDraw(playerid,289.000000, 198.000000, "~g~~h~Armamentos");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 3 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 3 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 3 ] [ playerid ] , 0.210000, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 3 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 3 ] [ playerid ] , 1);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 3 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 3 ] [ playerid ] , 0);

    MenuArmas[ 4 ] [ playerid ] = CreatePlayerTextDraw(playerid,254.000000, 145.000000, "AK - 47");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 4 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 4 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 4 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 4 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 4 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 4 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 4 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 4 ] [ playerid ] , 280.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 4 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 4 ] [ playerid ] , 1);

    MenuArmas[ 5 ] [ playerid ] = CreatePlayerTextDraw(playerid,296.000000, 121.000000, "Sniper Rifle");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 5 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 5 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 5 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 5 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 5 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 5 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 5 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 5 ] [ playerid ] , 344.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 5 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 5 ] [ playerid ] , 1);

    MenuArmas[ 6 ] [ playerid ] = CreatePlayerTextDraw(playerid,366.000000, 145.000000, "Tec-9");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 6 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 6 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 6 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 6 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 6 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 6 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 6 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 6 ] [ playerid ] , 388.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 6 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 6 ] [ playerid ] , 1);

    MenuArmas[ 7 ] [ playerid ] = CreatePlayerTextDraw(playerid,242.000000, 187.000000, "Uzi");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 7 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 7 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 7 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 7 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 7 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 7 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 7 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 7 ] [ playerid ] , 254.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 7 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 7 ] [ playerid ] , 1);

    MenuArmas[ 8 ] [ playerid ] = CreatePlayerTextDraw(playerid,382.000000, 187.000000, "9MM - P");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 8 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 8 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 8 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 8 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 8 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 8 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 8 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 8 ] [ playerid ] , 407.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 8 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 8 ] [ playerid ] , 1);

    MenuArmas[ 9 ] [ playerid ] = CreatePlayerTextDraw(playerid,245.000000, 227.000000, "MP5");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 9 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 9 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 9 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 9 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 9 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 9 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 9 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 9 ] [ playerid ] , 257.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 9 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 9 ] [ playerid ] , 1);

    MenuArmas[ 10 ] [ playerid ] = CreatePlayerTextDraw(playerid,385.000000, 227.000000, "M4");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 10 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 10 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 10 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 10 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 10 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 10 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 10 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 10 ] [ playerid ] , 396.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 10 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 10 ] [ playerid ] , 1);

    MenuArmas[ 11 ] [ playerid ] = CreatePlayerTextDraw(playerid,292.000000, 281.000000, "Saw-Off Shotgun");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 11 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 11 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 11 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 11 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 11 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 11 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 11 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 11 ] [ playerid ] , 355.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 11 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 11 ] [ playerid ] , 1);

    MenuArmas[ 12 ] [ playerid ] = CreatePlayerTextDraw(playerid,259.000000, 260.000000, "Desert");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 12 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 12 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 12 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 12 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 12 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 12 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 12 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 12 ] [ playerid ] , 285.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 12 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 12 ] [ playerid ] , 1);

    MenuArmas[ 13 ] [ playerid ] = CreatePlayerTextDraw(playerid,356.000000, 260.000000, "Shotgun");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 13 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 13 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 13 ] [ playerid ] , 0.159999, 1.299999);
    PlayerTextDrawColor(playerid, MenuArmas[ 13 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 13 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 13 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 13 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 13 ] [ playerid ] , 392.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 13 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 13 ] [ playerid ] , 1);
   
    MenuArmas[ 14 ] [ playerid ] = CreatePlayerTextDraw(playerid,302.000000, 227.000000, "~r~~h~Fechar");
    PlayerTextDrawBackgroundColor(playerid, MenuArmas[ 14 ] [ playerid ] , 255);
    PlayerTextDrawFont(playerid, MenuArmas[ 14 ] [ playerid ] , 2);
    PlayerTextDrawLetterSize(playerid, MenuArmas[ 14 ] [ playerid ] , 0.209999, 1.299998);
    PlayerTextDrawColor(playerid, MenuArmas[ 14 ] [ playerid ] , -1);
    PlayerTextDrawSetOutline(playerid, MenuArmas[ 14 ] [ playerid ] , 1);
    PlayerTextDrawUseBox(playerid, MenuArmas[ 14 ] [ playerid ] , 1);
    PlayerTextDrawBoxColor(playerid, MenuArmas[ 14 ] [ playerid ] , 0xFFFFFF00);
    PlayerTextDrawTextSize(playerid, MenuArmas[ 14 ] [ playerid ] , 339.000000, 10.000000);
    PlayerTextDrawSetProportional(playerid, MenuArmas[ 14 ] [ playerid ] , 1);
    PlayerTextDrawSetSelectable(playerid, MenuArmas[ 14 ] [ playerid ] , 1);

}

stock MostrarMenu( playerid )
{
    PlayerTextDrawShow( playerid, MenuArmas[ 0 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 1 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 2 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 3 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 4 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 5 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 6 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 7 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 8 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 9 ] [ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 10 ][ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 11 ][ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 12 ][ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 13 ][ playerid ] );
    PlayerTextDrawShow( playerid, MenuArmas[ 14 ][ playerid ] );
}

stock RemoverMenu ( playerid )
{
    PlayerTextDrawHide( playerid, MenuArmas[ 0 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 1 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 2 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 3 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 4 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 5 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 6 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 7 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 8 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 9 ] [ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 10 ][ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 11 ][ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 12 ][ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 13 ][ playerid ] );
    PlayerTextDrawHide( playerid, MenuArmas[ 14 ][ playerid ] );
}

0 comentários:

Postar um comentário