10.01.2014, 18:51
Armaments
Hello Guys. I made a simple weapon system in text draw my goal was to try to make a GTA V style
Most do not work very well .. get a little bit similar.
Most do not work very well .. get a little bit similar.
To open the weapons menu Press the Y button
It has the following weapons
- AK - 47
- Sniper Rifle
- Micro SMG/Uzi
- Micro MP5
- Desert Eagle
- Saw-Off Shotgun
- Shotgun
- M4
- 9MM - P
- Tec-9
Sorry my bad English
image
code
pawn Код:
/*
Script By: Cantiliano_
*/
#include < a_samp > // SA-MP Team
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
#endif
#define COLOR_ERRO 0xFF0000AA
#define COLOR_GREEN 0x00FF00AA
#define MAX_BALLAS 3500 // Sets Max Bullets
// Change the value to which Wanna 3500.
new PlayerText: MenuWeapons[ 15 ] [ MAX_PLAYERS ] ;
new OnpenMenu [ MAX_PLAYERS ] ;
public OnPlayerConnect( playerid ) { CreatTextDraws( playerid ) ; OnpenMenu[ playerid ] = 0;
return 1 ; }
public OnPlayerDisconnect ( playerid ) { OnpenMenu[ playerid ] = 0;
return 1 ; }
public OnPlayerKeyStateChange ( playerid , newkeys , oldkeys ) {
if ( newkeys & KEY_YES )
{
if ( OnpenMenu[ playerid ] == 1 )
{
SendClientMessage( playerid, COLOR_ERRO, "[ > ] {FFFFFF}The menu is already open arms." );
return 1 ;
}
OnpenMenu[ playerid ] = 1;
ShowMenu( 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 == MenuWeapons[ 4 ] [ playerid ] ) // AK - 47
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}AK - 47." );
GivePlayerWeapon ( playerid, 30, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 5 ] [ playerid ] ) // Sniper Rifle
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Sniper Rifle." );
GivePlayerWeapon ( playerid, 34, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 7 ] [ playerid ] ) // UZI
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Micro SMG/Uzi." );
GivePlayerWeapon ( playerid, 28, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 9 ] [ playerid ] ) // MP5
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Micro MP5." );
GivePlayerWeapon ( playerid, 29, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 12 ] [ playerid ] ) // Desert
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Desert Eagle." );
GivePlayerWeapon ( playerid, 24, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 11 ] [ playerid ] ) // Saw-Off Shotgun
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Saw-Off Shotgun." );
GivePlayerWeapon ( playerid, 26, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 13 ] [ playerid ] ) // Shotgun
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Shotgun." );
GivePlayerWeapon ( playerid, 25, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 10 ] [ playerid ] ) // M4
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}M4" );
GivePlayerWeapon ( playerid, 31, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 8 ] [ playerid ] ) // 9MM - P
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}9MM - P" );
GivePlayerWeapon ( playerid, 23, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 6 ] [ playerid ] ) // Tec-9
{
SendClientMessage( playerid, COLOR_GREEN, "[ > ] {FFFFFF}You have selected the gun {00FF00}Tec-9" );
GivePlayerWeapon ( playerid, 32, MAX_BALLAS ) ;
}
else if ( playertextid == MenuWeapons[ 14 ] [ playerid ] ) // Fechando Menu
{
SendClientMessage( playerid, COLOR_ERRO, "[ > ] {FFFFFF}You just close the menu {FF0000}armaments." );
RemoveMenu( playerid ) ;
CancelSelectTextDraw( playerid ) ;
OnpenMenu[ playerid ] = 0;
}
return 0;
}
stock CreatTextDraws( playerid )
{
MenuWeapons[ 0 ] [ playerid ] = CreatePlayerTextDraw(playerid,296.000000, 121.000000, " ");
PlayerTextDrawBackgroundColor(playerid,MenuWeapons[ 0 ] [ playerid ], 255);
PlayerTextDrawFont(playerid,MenuWeapons[ 0 ] [ playerid ], 2);
PlayerTextDrawLetterSize(playerid,MenuWeapons[ 0 ] [ playerid ], 0.159999, 1.299999);
PlayerTextDrawColor(playerid,MenuWeapons[ 0 ] [ playerid ], -1);
PlayerTextDrawSetOutline(playerid,MenuWeapons[ 0 ] [ playerid ], 1);
PlayerTextDrawSetProportional(playerid,MenuWeapons[ 0 ] [ playerid ], 1);
PlayerTextDrawSetSelectable(playerid,MenuWeapons[ 0 ] [ playerid ], 0);
MenuWeapons[ 1 ] [ playerid ] = CreatePlayerTextDraw(playerid,416.000000, 106.000000, "ld_pool:ball");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 1 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 1 ] [ playerid ] , 4);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 1 ] [ playerid ] , -0.699999, -8.000000);
PlayerTextDrawColor(playerid, MenuWeapons[ 1 ] [ playerid ] , 1684300870);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 1 ] [ playerid ] , 0);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 1 ] [ playerid ] , 1);
PlayerTextDrawSetShadow(playerid, MenuWeapons[ 1 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 1 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 1 ] [ playerid ] , 102);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 1 ] [ playerid ] , -190.000000, 208.000000);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 1 ] [ playerid ] , 0);
MenuWeapons[ 2 ] [ playerid ] = CreatePlayerTextDraw(playerid,381.000000, 143.000000, "ld_pool:ball");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 2 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 2 ] [ playerid ] , 4);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 2 ] [ playerid ] , -0.719999, -8.000000);
PlayerTextDrawColor(playerid, MenuWeapons[ 2 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 2 ] [ playerid ] , 0);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 2 ] [ playerid ] , 1);
PlayerTextDrawSetShadow(playerid, MenuWeapons[ 2 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 2 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 2 ] [ playerid ] , 102);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 2 ] [ playerid ] , -121.000000, 131.000000);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 2 ] [ playerid ] , 0);
MenuWeapons[ 3 ] [ playerid ] = CreatePlayerTextDraw(playerid,289.000000, 198.000000, "~g~~h~Armaments");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 3 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 3 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 3 ] [ playerid ] , 0.210000, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 3 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 3 ] [ playerid ] , 1);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 3 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 3 ] [ playerid ] , 0);
MenuWeapons[ 4 ] [ playerid ] = CreatePlayerTextDraw(playerid,254.000000, 145.000000, "AK - 47");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 4 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 4 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 4 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 4 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 4 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 4 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 4 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 4 ] [ playerid ] , 280.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 4 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 4 ] [ playerid ] , 1);
MenuWeapons[ 5 ] [ playerid ] = CreatePlayerTextDraw(playerid,296.000000, 121.000000, "Sniper Rifle");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 5 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 5 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 5 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 5 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 5 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 5 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 5 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 5 ] [ playerid ] , 344.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 5 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 5 ] [ playerid ] , 1);
MenuWeapons[ 6 ] [ playerid ] = CreatePlayerTextDraw(playerid,366.000000, 145.000000, "Tec-9");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 6 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 6 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 6 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 6 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 6 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 6 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 6 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 6 ] [ playerid ] , 388.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 6 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 6 ] [ playerid ] , 1);
MenuWeapons[ 7 ] [ playerid ] = CreatePlayerTextDraw(playerid,242.000000, 187.000000, "Uzi");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 7 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 7 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 7 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 7 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 7 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 7 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 7 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 7 ] [ playerid ] , 254.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 7 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 7 ] [ playerid ] , 1);
MenuWeapons[ 8 ] [ playerid ] = CreatePlayerTextDraw(playerid,382.000000, 187.000000, "9MM - P");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 8 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 8 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 8 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 8 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 8 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 8 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 8 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 8 ] [ playerid ] , 407.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 8 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 8 ] [ playerid ] , 1);
MenuWeapons[ 9 ] [ playerid ] = CreatePlayerTextDraw(playerid,245.000000, 227.000000, "MP5");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 9 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 9 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 9 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 9 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 9 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 9 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 9 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 9 ] [ playerid ] , 257.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 9 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 9 ] [ playerid ] , 1);
MenuWeapons[ 10 ] [ playerid ] = CreatePlayerTextDraw(playerid,385.000000, 227.000000, "M4");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 10 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 10 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 10 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 10 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 10 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 10 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 10 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 10 ] [ playerid ] , 396.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 10 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 10 ] [ playerid ] , 1);
MenuWeapons[ 11 ] [ playerid ] = CreatePlayerTextDraw(playerid,292.000000, 281.000000, "Saw-Off Shotgun");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 11 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 11 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 11 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 11 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 11 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 11 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 11 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 11 ] [ playerid ] , 355.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 11 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 11 ] [ playerid ] , 1);
MenuWeapons[ 12 ] [ playerid ] = CreatePlayerTextDraw(playerid,259.000000, 260.000000, "Desert");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 12 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 12 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 12 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 12 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 12 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 12 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 12 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 12 ] [ playerid ] , 285.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 12 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 12 ] [ playerid ] , 1);
MenuWeapons[ 13 ] [ playerid ] = CreatePlayerTextDraw(playerid,356.000000, 260.000000, "Shotgun");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 13 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 13 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 13 ] [ playerid ] , 0.159999, 1.299999);
PlayerTextDrawColor(playerid, MenuWeapons[ 13 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 13 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 13 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 13 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 13 ] [ playerid ] , 392.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 13 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 13 ] [ playerid ] , 1);
MenuWeapons[ 14 ] [ playerid ] = CreatePlayerTextDraw(playerid,302.000000, 227.000000, "~r~~h~close.");
PlayerTextDrawBackgroundColor(playerid, MenuWeapons[ 14 ] [ playerid ] , 255);
PlayerTextDrawFont(playerid, MenuWeapons[ 14 ] [ playerid ] , 2);
PlayerTextDrawLetterSize(playerid, MenuWeapons[ 14 ] [ playerid ] , 0.209999, 1.299998);
PlayerTextDrawColor(playerid, MenuWeapons[ 14 ] [ playerid ] , -1);
PlayerTextDrawSetOutline(playerid, MenuWeapons[ 14 ] [ playerid ] , 1);
PlayerTextDrawUseBox(playerid, MenuWeapons[ 14 ] [ playerid ] , 1);
PlayerTextDrawBoxColor(playerid, MenuWeapons[ 14 ] [ playerid ] , 0xFFFFFF00);
PlayerTextDrawTextSize(playerid, MenuWeapons[ 14 ] [ playerid ] , 339.000000, 10.000000);
PlayerTextDrawSetProportional(playerid, MenuWeapons[ 14 ] [ playerid ] , 1);
PlayerTextDrawSetSelectable(playerid, MenuWeapons[ 14 ] [ playerid ] , 1);
}
stock ShowMenu( playerid )
{
PlayerTextDrawShow( playerid, MenuWeapons[ 0 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 1 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 2 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 3 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 4 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 5 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 6 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 7 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 8 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 9 ] [ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 10 ][ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 11 ][ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 12 ][ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 13 ][ playerid ] );
PlayerTextDrawShow( playerid, MenuWeapons[ 14 ][ playerid ] );
}
stock RemoveMenu( playerid )
{
PlayerTextDrawHide( playerid, MenuWeapons[ 0 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 1 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 2 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 3 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 4 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 5 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 6 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 7 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 8 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 9 ] [ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 10 ][ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 11 ][ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 12 ][ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 13 ][ playerid ] );
PlayerTextDrawHide( playerid, MenuWeapons[ 14 ][ playerid ] );
}