Niko_boy

[0.3e]Vehicle Menu TextDrawBased [Updated]

Jun 3rd, 2012
856
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.                             _
  3.                  ___    _  |_|  _  _                    _
  4.                 |   \  | |  _  | |/ /   _____          | |___   _____   _    _
  5.                 | |\ \ | | | | |   /   |  _  |         | |_  | |  _  | \ \  / /
  6.                 | | \ \| | | | |  \ \  | |_| |         | |_| | | |_| |  \ \/ /
  7.                 |_|  \___| |_| |_| \ \ |_____| ======= |_____| |_____|   \  /
  8.                                                                        _/ /
  9.                                                                       \__/
  10.  
  11.               !!  WARNING: DO NOT MESS WITH ANY STUFF or THING will GO WRONG  !!
  12.                 < Though you can edit some stuffs Like SendClientMessage(s) >
  13. ======================================================================================================/=========
  14.         CREDITS: SA-MP for eveything,ZCMD by Zeex , Zamaroht's for TextDraw Editor
  15.             Niko_boy for this Script! And ghosty aka seifo for testing stuffs
  16.         Notes:- Special Thanks to colorpicker.com || THIS SCRIPT WILL WORK ONLY on 0.3e and ABOVE
  17. ---------------------------------- STARTING THE  SCRIPT! -------------------------------------------/--------
  18. ===================================================================================================/==========*/
  19.  
  20.  
  21.  
  22. #define FILTERSCRIPT
  23.  
  24. #include <a_samp>
  25. #include <zcmd> /* i only use this now a days so you too need to have this include */
  26.  
  27. #define CAR_RESPAWN_DELAY 1000 /* Defines the Delay for Car Spawned in this script by players*/
  28. #define N_GREEN 0x18D644FF /* Green Color define */
  29. #define N_RED 0xED002BFF /* Red Color define */
  30. #define FS_VERSION "1.1"
  31.  
  32. new spawnedCar[MAX_PLAYERS] = 0; /* Variable Carrying per player car spawned info */
  33. new gMenuCurrent[MAX_PLAYERS]; /* Variable Array to differntiate b/w all differntiate b/w CURENT menu by player */
  34.  
  35. //-------- TextDraws created and designed for per player ->
  36.  
  37. new Text:car1_1[MAX_PLAYERS], Text:car1_2[MAX_PLAYERS], Text:car1_3[MAX_PLAYERS], Text:car1_4[MAX_PLAYERS], Text:car1_5[MAX_PLAYERS], Text:car1_6[MAX_PLAYERS], Text:car1_7[MAX_PLAYERS], Text:car1_8[MAX_PLAYERS];
  38. new Text:car2_1[MAX_PLAYERS], Text:car2_2[MAX_PLAYERS], Text:car2_3[MAX_PLAYERS], Text:car2_4[MAX_PLAYERS], Text:car2_5[MAX_PLAYERS], Text:car2_6[MAX_PLAYERS], Text:car2_7[MAX_PLAYERS];
  39. new Text:Next_menu[MAX_PLAYERS], Text:header[MAX_PLAYERS], Text:box[MAX_PLAYERS];
  40.  
  41. //--------FORWARDS  ->
  42. forward DestroyPlayerSpawnedVehicles();
  43. //============================================================================================================
  44.  
  45. /* <ZCMD> Commands -> */
  46. CMD:vehiclemenu(playerid, params[])
  47. {
  48.     gMenuCurrent[playerid] = 1;
  49.     CancelSelectTextDraw( playerid );
  50.     if(GetPlayerInterior( playerid ) != 0 ) return SendClientMessage( playerid, N_RED, "You Cannot Spawn Vehicles in an Interior!");
  51.     if(IsPlayerInAnyVehicle( playerid ))    return SendClientMessage( playerid, N_RED, "You already in a vehicle!");
  52.  
  53.     HideAllCarTextDraws( playerid );
  54.     SelectTextDraw( playerid , 0xC2C2C2FF ); //HEX Color that occur when you hover mouse on textdraws ->
  55.     SendClientMessage( playerid, N_GREEN, "Click on a car name to spawn the Vehicle");
  56.     ShowCarMenu( playerid );
  57.     return 1;
  58. }
  59.  
  60. CMD:destroycars(playerid , params[])
  61. {
  62.     if(IsPlayerAdmin( playerid ))
  63.     {
  64.         DestroyPlayerSpawnedVehicles();
  65.     }else { SendClientMessage( playerid, N_RED, "ONLY RCON ADMINS have Access to this command"); }
  66.     return 1;
  67. }
  68. //---------------------------------------------------------------------------------------------------------
  69.  
  70. public OnFilterScriptInit()
  71. {
  72.     for(new p = 0; p < MAX_PLAYERS; p++)
  73.     {
  74.         gMenuCurrent[p] = 1;
  75.         CreateCarMenu( p );
  76.         TextDrawSetSelectable( box[p] , 1 );
  77.         TextDrawSetSelectable( header[p] , 1 );
  78.         TextDrawSetSelectable( car1_1[p], 1 );
  79.         TextDrawSetSelectable( car1_2[p], 1 );
  80.         TextDrawSetSelectable( car1_3[p], 1 );
  81.         TextDrawSetSelectable( car1_4[p], 1 );
  82.         TextDrawSetSelectable( car1_5[p], 1 );
  83.         TextDrawSetSelectable( car1_6[p], 1 );
  84.         TextDrawSetSelectable( car1_7[p], 1 );
  85.         TextDrawSetSelectable( car1_8[p], 1 );
  86.         TextDrawSetSelectable( car2_1[p], 1 );
  87.         TextDrawSetSelectable( car2_2[p], 1 );
  88.         TextDrawSetSelectable( car2_3[p], 1 );
  89.         TextDrawSetSelectable( car2_4[p], 1 );
  90.         TextDrawSetSelectable( car2_5[p], 1 );
  91.         TextDrawSetSelectable( car2_6[p], 1 );
  92.         TextDrawSetSelectable( car2_7[p], 1 );
  93.         TextDrawSetSelectable( Next_menu[p], 1 );
  94.     }
  95.     printf("\n  -===Niko_boy's Car Menu Based on TextDrawS (0.3e) v%s Loaded!===-\n",FS_VERSION);
  96.     return 1;
  97. }
  98.  
  99. public OnFilterScriptExit()
  100. {
  101.     for(new i = 0; i < MAX_PLAYERS; i++) CancelSelectTextDraw( i ),
  102.     HideAllCarTextDraws( i ), gMenuCurrent[ i ] = 0;
  103.     DestroyCarMenu();
  104.     DestroyPlayerSpawnedVehicles();
  105.     return 1;
  106. }
  107.  
  108.  
  109. public OnPlayerClickTextDraw(playerid,Text:clickedid)
  110. {
  111.     if( gMenuCurrent[playerid] == 1 )
  112.     {
  113.         if( clickedid == car1_1[playerid] ) { SpawnCarForPlayer( playerid , 402 ); } //Buffalo
  114.         if( clickedid == car1_2[playerid] ) { SpawnCarForPlayer( playerid , 411 ); } // infernus
  115.         if( clickedid == car1_3[playerid] ) { SpawnCarForPlayer( playerid , 412 ); } //voodo
  116.         if( clickedid == car1_4[playerid] ) { SpawnCarForPlayer( playerid , 415 ); } //cheetah
  117.         if( clickedid == car1_5[playerid] ) { SpawnCarForPlayer( playerid , 562 ); } //Elegy
  118.         if( clickedid == car1_6[playerid] ) { SpawnCarForPlayer( playerid , 429 ); } //banshee
  119.         if( clickedid == car1_7[playerid] ) { SpawnCarForPlayer( playerid , 434 ); } //hotknife
  120.         if( clickedid == car1_8[playerid] ) { SpawnCarForPlayer( playerid , 444 ); } //monster
  121.  
  122.         if( clickedid == car2_1[playerid] ) { SpawnCarForPlayer( playerid , 495 ); } //Sandking
  123.         if( clickedid == car2_2[playerid] ) { SpawnCarForPlayer( playerid , 506 ); } //Super GT
  124.         if( clickedid == car2_3[playerid] ) { SpawnCarForPlayer( playerid , 510 ); } //mountain bike
  125.         if( clickedid == car2_4[playerid] ) { SpawnCarForPlayer( playerid , 559 ); } //Jester
  126.         if( clickedid == car2_5[playerid] ) { SpawnCarForPlayer( playerid , 597 ); } //Police Car (SFPD)
  127.         if( clickedid == car2_6[playerid] ) { SpawnCarForPlayer( playerid , 603 ); } //Phoenix
  128.         if( clickedid == car2_7[playerid] ) { SpawnCarForPlayer( playerid , 561 ); } //Stratum
  129.  
  130.         if( clickedid == Next_menu[playerid] )
  131.         {
  132.             gMenuCurrent[playerid] = 2;
  133.             TextDrawSetString( car1_1[playerid], "Turismo" );  TextDrawSetString( car1_2[playerid], "PCJ-600" ); TextDrawSetString( car1_3[playerid], "Freeway" );
  134.             TextDrawSetString( car1_4[playerid], "Sanchez" );  TextDrawSetString( car1_5[playerid], "Sultan" );  TextDrawSetString( car1_6[playerid], "Hermes" );
  135.             TextDrawSetString( car1_7[playerid], "Sabre" );    TextDrawSetString( car1_8[playerid], "ZR-350" );  TextDrawSetString( car2_1[playerid], "Maverick" );
  136.             TextDrawSetString( car2_2[playerid], "Hotring1" ); TextDrawSetString( car2_3[playerid], "FCR-900" ); TextDrawSetString( car2_4[playerid], "NRG-500" );
  137.             TextDrawSetString( car2_5[playerid], "Blade" );    TextDrawSetString( car2_6[playerid], "Bullet" );  TextDrawSetString( car2_7[playerid], "Sparrow" );
  138.             TextDrawSetString( Next_menu[playerid] , "~r~<< Back" );
  139.         }
  140.     }
  141.    
  142.     else if( gMenuCurrent[playerid] == 2 )
  143.     {
  144.         if( clickedid == car1_1[playerid] ) { SpawnCarForPlayer( playerid , 451 ); } // turismo
  145.         if( clickedid == car1_2[playerid] ) { SpawnCarForPlayer( playerid , 461 ); } //pcj
  146.         if( clickedid == car1_3[playerid] ) { SpawnCarForPlayer( playerid , 463 ); } //freeway
  147.         if( clickedid == car1_4[playerid] ) { SpawnCarForPlayer( playerid , 468 ); } //sanchez
  148.         if( clickedid == car1_5[playerid] ) { SpawnCarForPlayer( playerid , 560 ); } // sultan
  149.         if( clickedid == car1_6[playerid] ) { SpawnCarForPlayer( playerid , 474 ); } //Hermes
  150.         if( clickedid == car1_7[playerid] ) { SpawnCarForPlayer( playerid , 475 ); } //sabre
  151.         if( clickedid == car1_8[playerid] ) { SpawnCarForPlayer( playerid , 477 ); } //ZR-350
  152.  
  153.         if( clickedid == car2_1[playerid] ) { SpawnCarForPlayer( playerid , 488 ); } //maverick
  154.         if( clickedid == car2_2[playerid] ) { SpawnCarForPlayer( playerid , 494 ); } //horting 1
  155.         if( clickedid == car2_3[playerid] ) { SpawnCarForPlayer( playerid , 521 ); } //fcr
  156.         if( clickedid == car2_4[playerid] ) { SpawnCarForPlayer( playerid , 522 ); } //nrg
  157.         if( clickedid == car2_5[playerid] ) { SpawnCarForPlayer( playerid , 536 ); } //blade
  158.         if( clickedid == car2_6[playerid] ) { SpawnCarForPlayer( playerid , 541 ); } //bullet
  159.         if( clickedid == car2_7[playerid] ) { SpawnCarForPlayer( playerid , 469 ); } //speraorw
  160.  
  161.         if( clickedid == Next_menu[playerid] )
  162.         {
  163.             TextDrawSetString( car1_1[playerid], "Buffalo" );   TextDrawSetString( car1_2[playerid], "Infernus" );     TextDrawSetString( car1_3[playerid], "Voodoo" );
  164.             TextDrawSetString( car1_4[playerid], "Cheetah" );   TextDrawSetString( car1_5[playerid], "Elegy" );        TextDrawSetString( car1_6[playerid], "Banshee" );
  165.             TextDrawSetString( car1_7[playerid], "HotKnife" );  TextDrawSetString( car1_8[playerid], "Monster" );      TextDrawSetString( car2_1[playerid], "Sandking" );
  166.             TextDrawSetString( car2_2[playerid], "SuperGT" );   TextDrawSetString( car2_3[playerid], "Bike" );         TextDrawSetString( car2_4[playerid], "Jester" );
  167.             TextDrawSetString( car2_5[playerid], "SFPD(Cop)" ); TextDrawSetString( car2_6[playerid], "Phoenix" );      TextDrawSetString( car2_7[playerid], "Stratum" );
  168.             TextDrawSetString( Next_menu[playerid] , "~b~Next >>" );
  169.             gMenuCurrent[playerid] = 1;
  170.         }
  171.     }
  172.     return 1;
  173. }
  174.  
  175. public DestroyPlayerSpawnedVehicles()
  176. {
  177.     for( new j; j < MAX_PLAYERS; j++ )
  178.     {
  179.         if( !IsPlayerInAnyVehicle( j ))
  180.         {
  181.             DestroyVehicle( spawnedCar[j] );
  182.         }
  183.     }
  184.     return 1;
  185. }
  186.  
  187. stock DestroyCarMenu()
  188. {
  189.     for(new i = 0; i < MAX_PLAYERS; i++)
  190.     {
  191.         CancelSelectTextDraw( i );
  192.         TextDrawDestroy( box[i] );
  193.         TextDrawDestroy( header[i] );
  194.         TextDrawDestroy( car1_1[i]);
  195.         TextDrawDestroy( car1_2[i]);
  196.         TextDrawDestroy( car1_3[i]);
  197.         TextDrawDestroy( car1_4[i]);
  198.         TextDrawDestroy( car1_5[i]);
  199.         TextDrawDestroy( car1_6[i]);
  200.         TextDrawDestroy( car1_7[i]);
  201.         TextDrawDestroy( car1_8[i]);
  202.         TextDrawDestroy( car2_1[i]);
  203.         TextDrawDestroy( car2_2[i]);
  204.         TextDrawDestroy( car2_3[i]);
  205.         TextDrawDestroy( car2_4[i]);
  206.         TextDrawDestroy( car2_5[i]);
  207.         TextDrawDestroy( car2_6[i]);
  208.         TextDrawDestroy( car2_7[i]);
  209.         TextDrawDestroy( Next_menu[i]);
  210.     }
  211.     return 1;
  212. }
  213.  
  214. stock SpawnCarForPlayer( playerid , modelid )
  215. {
  216.     CancelSelectTextDraw( playerid );
  217.     HideAllCarTextDraws( playerid );
  218.     gMenuCurrent[playerid] = 1;
  219.     if(!IsPlayerInAnyVehicle( playerid ))
  220.     {
  221.         for(new i = 0; i < MAX_PLAYERS; i++)
  222.         {
  223.             if(i == playerid)
  224.             {
  225.                 DestroyVehicle( spawnedCar[i] );
  226.                 break;
  227.             }
  228.         }
  229.         new Float:pos[4] , rC = random(300);
  230.         GetPlayerPos( playerid , pos[0] ,pos[1] ,pos[2]);
  231.         GetPlayerFacingAngle( playerid , pos[3] );
  232.         spawnedCar[playerid] = CreateVehicle( modelid, pos[0], pos[1], pos[2]+4, pos[3], rC, random(rC), CAR_RESPAWN_DELAY );
  233.         PutPlayerInVehicle( playerid , spawnedCar[playerid] , 0);
  234.     }else { SendClientMessage( playerid, -1, "You already in a car . exit and retry spawn car" ); }
  235.     return 1;
  236. }
  237.  
  238. stock ShowCarMenu( playerid )
  239. {
  240.     TextDrawSetString( car1_1[playerid], "Buffalo" );   TextDrawSetString( car1_2[playerid], "Infernus" );     TextDrawSetString( car1_3[playerid], "Voodoo" );
  241.     TextDrawSetString( car1_4[playerid], "Cheetah" );   TextDrawSetString( car1_5[playerid], "Elegy" );        TextDrawSetString( car1_6[playerid], "Banshee" );
  242.     TextDrawSetString( car1_7[playerid], "HotKnife" );  TextDrawSetString( car1_8[playerid], "Monster" );      TextDrawSetString( car2_1[playerid], "Sandking" );
  243.     TextDrawSetString( car2_2[playerid], "SuperGT" );   TextDrawSetString( car2_3[playerid], "Bike" );         TextDrawSetString( car2_4[playerid], "Jester" );
  244.     TextDrawSetString( car2_5[playerid], "SFPD(Cop)" ); TextDrawSetString( car2_6[playerid], "Phoenix" );      TextDrawSetString( car2_7[playerid], "Stratum" );
  245.     TextDrawSetString( Next_menu[playerid] , "~b~Next >>" );
  246.    
  247.     ShowAllTextDraws( playerid );
  248.     return 1;
  249. }
  250.  
  251. stock HideAllCarTextDraws( playerid )
  252. {
  253.     gMenuCurrent[playerid] = 1;
  254.     CancelSelectTextDraw( playerid );
  255.     TextDrawHideForPlayer( playerid, box[playerid] );   TextDrawHideForPlayer( playerid, header[playerid] );
  256.     TextDrawHideForPlayer( playerid , car1_1[playerid]); TextDrawHideForPlayer( playerid , car1_2[playerid]); TextDrawHideForPlayer( playerid , car1_3[playerid]);
  257.     TextDrawHideForPlayer( playerid , car1_4[playerid]); TextDrawHideForPlayer( playerid , car1_5[playerid]); TextDrawHideForPlayer( playerid , car1_6[playerid]);
  258.     TextDrawHideForPlayer( playerid , car1_7[playerid]); TextDrawHideForPlayer( playerid , car1_8[playerid]);
  259.     TextDrawHideForPlayer( playerid , car2_1[playerid]); TextDrawHideForPlayer( playerid , car2_2[playerid]); TextDrawHideForPlayer( playerid , car2_3[playerid]);
  260.     TextDrawHideForPlayer( playerid , car2_4[playerid]); TextDrawHideForPlayer( playerid , car2_5[playerid]); TextDrawHideForPlayer( playerid , car2_6[playerid]);
  261.     TextDrawHideForPlayer( playerid , car2_7[playerid]);
  262.     TextDrawHideForPlayer( playerid , Next_menu[playerid]);
  263.     return 1;
  264. }
  265.  
  266. stock ShowAllTextDraws( playerid )
  267. {
  268.     TextDrawShowForPlayer( playerid, box[playerid] );    TextDrawShowForPlayer( playerid, header[playerid] );
  269.     TextDrawShowForPlayer( playerid , car1_1[playerid]); TextDrawShowForPlayer( playerid , car1_2[playerid]); TextDrawShowForPlayer( playerid , car1_3[playerid]);
  270.     TextDrawShowForPlayer( playerid , car1_4[playerid]); TextDrawShowForPlayer( playerid , car1_5[playerid]); TextDrawShowForPlayer( playerid , car1_6[playerid]);
  271.     TextDrawShowForPlayer( playerid , car1_7[playerid]); TextDrawShowForPlayer( playerid , car1_8[playerid]);
  272.     TextDrawShowForPlayer( playerid , car2_1[playerid]); TextDrawShowForPlayer( playerid , car2_2[playerid]); TextDrawShowForPlayer( playerid , car2_3[playerid]);
  273.     TextDrawShowForPlayer( playerid , car2_4[playerid]); TextDrawShowForPlayer( playerid , car2_5[playerid]); TextDrawShowForPlayer( playerid , car2_6[playerid]);
  274.     TextDrawShowForPlayer( playerid , car2_7[playerid]);
  275.     TextDrawShowForPlayer( playerid , Next_menu[playerid]);
  276.     gMenuCurrent[playerid] = 1;
  277.     return 1;
  278. }
  279.  
  280. CreateCarMenu( playerid )
  281. {
  282.  
  283.     box[playerid] = TextDrawCreate(160.000000, 168.000000, "_");
  284.     TextDrawBackgroundColor(box[playerid], 255);
  285.     TextDrawFont(box[playerid], 1);
  286.     TextDrawLetterSize(box[playerid], 0.300000, 17.400001);
  287.     TextDrawColor(box[playerid], -1);
  288.     TextDrawSetOutline(box[playerid], 0);
  289.     TextDrawSetProportional(box[playerid], 1);
  290.     TextDrawSetShadow(box[playerid], 1);
  291.     TextDrawUseBox(box[playerid], 1);
  292.     TextDrawBoxColor(box[playerid], 16843161);
  293.     TextDrawTextSize(box[playerid], 0.000000, 0.000000);
  294.  
  295.     header[playerid] = TextDrawCreate(40.000000, 159.000000, "Car Menu");
  296.     TextDrawBackgroundColor(header[playerid], 255);
  297.     TextDrawFont(header[playerid], 1);
  298.     TextDrawLetterSize(header[playerid], 0.450000, 1.000000);
  299.     TextDrawColor(header[playerid], -65281);
  300.     TextDrawSetOutline(header[playerid], 1);
  301.     TextDrawSetProportional(header[playerid], 1);
  302.    
  303.     //===============================================================================================
  304.     //===============================================================================================
  305.    
  306.     car1_1[playerid] = TextDrawCreate(7.000000, 174.000000, "first_car");
  307.     TextDrawBackgroundColor(car1_1[playerid], 255);
  308.     TextDrawFont(car1_1[playerid], 1);
  309.     TextDrawLetterSize(car1_1[playerid], 0.380000, 1.000000);
  310.     TextDrawColor(car1_1[playerid], -1);
  311.     TextDrawSetOutline(car1_1[playerid], 0);
  312.     TextDrawSetProportional(car1_1[playerid], 1);
  313.     TextDrawSetShadow(car1_1[playerid], 1);
  314.  
  315.     car1_2[playerid] = TextDrawCreate(7.000000, 188.000000, "second_car");
  316.     TextDrawBackgroundColor(car1_2[playerid], 255);
  317.     TextDrawFont(car1_2[playerid], 1);
  318.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  319.     TextDrawColor(car1_2[playerid], -1);
  320.     TextDrawSetOutline(car1_2[playerid], 0);
  321.     TextDrawSetProportional(car1_2[playerid], 1);
  322.     TextDrawSetShadow(car1_2[playerid], 1);
  323.    
  324.     car1_3[playerid] = TextDrawCreate(7.000000, 202.000000, "third_car");
  325.     TextDrawBackgroundColor(car1_2[playerid], 255);
  326.     TextDrawFont(car1_2[playerid], 1);
  327.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  328.     TextDrawColor(car1_2[playerid], -1);
  329.     TextDrawSetOutline(car1_2[playerid], 0);
  330.     TextDrawSetProportional(car1_2[playerid], 1);
  331.     TextDrawSetShadow(car1_2[playerid], 1);
  332.    
  333.     car1_4[playerid] = TextDrawCreate(7.000000, 216.000000, "fourth_car");
  334.     TextDrawBackgroundColor(car1_2[playerid], 255);
  335.     TextDrawFont(car1_2[playerid], 1);
  336.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  337.     TextDrawColor(car1_2[playerid], -1);
  338.     TextDrawSetOutline(car1_2[playerid], 0);
  339.     TextDrawSetProportional(car1_2[playerid], 1);
  340.     TextDrawSetShadow(car1_2[playerid], 1);
  341.    
  342.     car1_5[playerid] = TextDrawCreate(7.000000, 230.000000, "fifth_car");
  343.     TextDrawBackgroundColor(car1_2[playerid], 255);
  344.     TextDrawFont(car1_2[playerid], 1);
  345.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  346.     TextDrawColor(car1_2[playerid], -1);
  347.     TextDrawSetOutline(car1_2[playerid], 0);
  348.     TextDrawSetProportional(car1_2[playerid], 1);
  349.     TextDrawSetShadow(car1_2[playerid], 1);
  350.  
  351.     car1_6[playerid] = TextDrawCreate(7.000000, 244.000000, "sixth_car");
  352.     TextDrawBackgroundColor(car1_2[playerid], 255);
  353.     TextDrawFont(car1_2[playerid], 1);
  354.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  355.     TextDrawColor(car1_2[playerid], -1);
  356.     TextDrawSetOutline(car1_2[playerid], 0);
  357.     TextDrawSetProportional(car1_2[playerid], 1);
  358.     TextDrawSetShadow(car1_2[playerid], 1);
  359.  
  360.     car1_7[playerid] = TextDrawCreate(7.000000, 258.000000, "senvth_car");
  361.     TextDrawBackgroundColor(car1_2[playerid], 255);
  362.     TextDrawFont(car1_2[playerid], 1);
  363.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  364.     TextDrawColor(car1_2[playerid], -1);
  365.     TextDrawSetOutline(car1_2[playerid], 0);
  366.     TextDrawSetProportional(car1_2[playerid], 1);
  367.     TextDrawSetShadow(car1_2[playerid], 1);
  368.  
  369.     car1_8[playerid] = TextDrawCreate(7.000000, 272.000000, "eight_car");
  370.     TextDrawBackgroundColor(car1_2[playerid], 255);
  371.     TextDrawFont(car1_2[playerid], 1);
  372.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  373.     TextDrawColor(car1_2[playerid], -1);
  374.     TextDrawSetOutline(car1_2[playerid], 0);
  375.     TextDrawSetProportional(car1_2[playerid], 1);
  376.     TextDrawSetShadow(car1_2[playerid], 1);
  377. //===================================================================
  378.  
  379. //===================================================================
  380.  
  381.     car2_1[playerid] = TextDrawCreate(86.000000, 174.000000, "second_row1");
  382.     TextDrawBackgroundColor(car1_2[playerid], 255);
  383.     TextDrawFont(car1_2[playerid], 1);
  384.     TextDrawLetterSize(car1_2[playerid], 0.380000, 1.000000);
  385.     TextDrawColor(car1_2[playerid], -1);
  386.     TextDrawSetOutline(car1_2[playerid], 0);
  387.     TextDrawSetProportional(car1_2[playerid], 1);
  388.     TextDrawSetShadow(car1_2[playerid], 1);
  389.  
  390.     car2_2[playerid] = TextDrawCreate(86.000000, 188.000000, "second_row2");
  391.     TextDrawBackgroundColor(car1_2[playerid], 255);
  392.     TextDrawFont(car2_2[playerid], 1);
  393.     TextDrawLetterSize(car2_2[playerid], 0.380000, 1.000000);
  394.     TextDrawColor(car2_2[playerid], -1);
  395.     TextDrawSetOutline(car2_2[playerid], 0);
  396.     TextDrawSetProportional(car2_2[playerid], 1);
  397.     TextDrawSetShadow(car2_2[playerid], 1);
  398.  
  399.     car2_3[playerid] = TextDrawCreate(86.000000, 202.000000, "second_row3");
  400.     TextDrawBackgroundColor(car2_3[playerid], 255);
  401.     TextDrawFont(car2_3[playerid], 1);
  402.     TextDrawLetterSize(car2_3[playerid], 0.380000, 1.000000);
  403.     TextDrawColor(car2_3[playerid], -1);
  404.     TextDrawSetOutline(car2_3[playerid], 0);
  405.     TextDrawSetProportional(car2_3[playerid], 1);
  406.     TextDrawSetShadow(car2_3[playerid], 1);
  407.  
  408.     car2_4[playerid] = TextDrawCreate(86.000000, 216.000000, "second_row4");
  409.     TextDrawBackgroundColor(car2_4[playerid], 255);
  410.     TextDrawFont(car2_4[playerid], 1);
  411.     TextDrawLetterSize(car2_4[playerid], 0.380000, 1.000000);
  412.     TextDrawColor(car2_4[playerid], -1);
  413.     TextDrawSetOutline(car2_4[playerid], 0);
  414.     TextDrawSetProportional(car2_4[playerid], 1);
  415.     TextDrawSetShadow(car2_4[playerid], 1);
  416.  
  417.     car2_5[playerid] = TextDrawCreate(86.000000, 230.000000, "second_row5");
  418.     TextDrawBackgroundColor(car2_5[playerid], 255);
  419.     TextDrawFont(car2_5[playerid], 1);
  420.     TextDrawLetterSize(car2_5[playerid], 0.380000, 1.000000);
  421.     TextDrawColor(car2_5[playerid], -1);
  422.     TextDrawSetOutline(car2_5[playerid], 0);
  423.     TextDrawSetProportional(car2_5[playerid], 1);
  424.     TextDrawSetShadow(car2_5[playerid], 1);
  425.  
  426.     car2_6[playerid] = TextDrawCreate(86.000000, 244.000000, "second_row6");
  427.     TextDrawBackgroundColor(car2_6[playerid], 255);
  428.     TextDrawFont(car2_6[playerid], 1);
  429.     TextDrawLetterSize(car2_6[playerid], 0.380000, 1.000000);
  430.     TextDrawColor(car2_6[playerid], -1);
  431.     TextDrawSetOutline(car2_6[playerid], 0);
  432.     TextDrawSetProportional(car2_6[playerid], 1);
  433.     TextDrawSetShadow(car2_6[playerid], 1);
  434.  
  435.     car2_7[playerid] = TextDrawCreate(86.000000, 258.000000, "second_row7");
  436.     TextDrawBackgroundColor(car2_7[playerid], 255);
  437.     TextDrawFont(car2_7[playerid], 1);
  438.     TextDrawLetterSize(car2_7[playerid], 0.380000, 1.000000);
  439.     TextDrawColor(car2_7[playerid], -1);
  440.     TextDrawSetOutline(car2_7[playerid], 0);
  441.     TextDrawSetProportional(car2_7[playerid], 1);
  442.     TextDrawSetShadow(car2_7[playerid], 1);
  443.    
  444.     //===================================================================================
  445.    
  446.     Next_menu[playerid] = TextDrawCreate(86.000000, 272.000000, "Next>>");
  447.     TextDrawBackgroundColor(Next_menu[playerid], 255);
  448.     TextDrawFont(Next_menu[playerid], 1);
  449.     TextDrawLetterSize(Next_menu[playerid], 0.380000, 1.000000);
  450.     TextDrawColor(Next_menu[playerid], -1);
  451.     TextDrawSetOutline(Next_menu[playerid], 0);
  452.     TextDrawSetProportional(Next_menu[playerid], 1);
  453.     TextDrawSetShadow(Next_menu[playerid], 1);
  454.    
  455.     //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  456.  
  457. }
RAW Paste Data