Advertisement
Guest User

Mine Sweeper System

a guest
Sep 26th, 2017
1,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 52.94 KB | None | 0 0
  1. /*
  2.     <FilterScript Mine Sweeper>
  3.     Credits: Edison - [ https://www.youtube.com/c/EdisonNZ ]
  4.     <Thanks for everything - 2 years of YouTube>
  5. */
  6.  
  7.  
  8. // Includes
  9. #define FILTERSCRIPT
  10. #include <a_samp>
  11. #include <zcmd>
  12. #include <foreach>
  13.  
  14. #define function%0(%1) forward %0(%1); public %0(%1)
  15.  
  16. // Colors
  17. #define COLOR_LGREEN 0xD7FFB3FF
  18. #define COLOR_PURPLE 0xC2A2DAAA
  19.  
  20. // Dialog
  21. #define DIALOG_BETCASINO 999
  22.  
  23. //
  24. new
  25.     PlayerText: CasinoPTD[ 33 ],
  26.     Text: CasinoTD[ 15 ],
  27.     MineActive[ MAX_PLAYERS ][ 30 ],
  28.     MineBomb[ MAX_PLAYERS ][ 30 ]
  29. ;
  30.  
  31. public OnFilterScriptInit(  ) {
  32.     print("\n\n<FilterScript> Mine Sweeper by Edison loaded.\n\n");
  33.    
  34.     GlobalTextDraw(  );
  35.     foreach( Player, i ) {
  36.         if( IsPlayerConnected( i ) ) PlayerTextDraw( i );
  37.     }
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerConnect( playerid ) return PlayerTextDraw( playerid );
  42.  
  43. public OnPlayerDisconnect( playerid, reason ) {
  44.     if( GetPVarInt( playerid, "PlayMine" ) == 1 ) HideCasinoTDs( playerid );
  45.     DeletePVar( playerid, "PlayMine" );
  46.     DeletePVar( playerid, "BetAmount" );
  47.     DeletePVar( playerid, "Mines" );
  48.     DeletePVar( playerid, "StartedGame" );
  49.     DeletePVar( playerid, "MineType" );
  50.     DeletePVar( playerid, "MoneyEarned" );
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerClickPlayerTextDraw( playerid, PlayerText:playertextid ) {  
  55.     if( GetPVarInt( playerid, "PlayMine" ) == 1 ) {
  56.         if( GetPVarInt( playerid, "StartedGame" ) == 1 && GetPVarInt( playerid, "Loser" ) == 0 ) {
  57.             new string[ 126 ];
  58.             for( new i = 0; i < 30; i++ ) {
  59.                 if( playertextid == CasinoPTD[ i ] && MineActive[ playerid ][ i ] == 0 ) {
  60.                     MineActive[ playerid ][ i ] = 1;
  61.                     SetPVarInt( playerid, "Mines", 1+GetPVarInt( playerid, "Mines" ) );
  62.                     if( MineBomb[ playerid ][ i ] == 0 ) {
  63.                         PlayerTextDrawBoxColor( playerid, CasinoPTD[ i ], 0x80FF00FF );
  64.                         PlayerTextDrawShow( playerid, CasinoPTD[ i ] );
  65.                         new money, bet = GetPVarInt( playerid, "BetAmount" );
  66.                         if( GetPVarInt( playerid, "MineType" ) == 1 ) money += bet/8;
  67.                         else if( GetPVarInt( playerid, "MineType" ) == 3 ) money += bet/5;
  68.                         else if( GetPVarInt( playerid, "MineType" ) == 6 ) money += bet/3;
  69.                         SetPVarInt( playerid, "MoneyEarned", money+GetPVarInt( playerid, "MoneyEarned" ) );
  70.                        
  71.                         PlayerTextDrawSetString( playerid, CasinoPTD[ 30 ], "~g~Ai castigat! : )" );                           
  72.                         format( string, sizeof( string ), "Played times: ~g~%d~w~~h~~n~Money earned: ~g~$%s", GetPVarInt( playerid, "Mines" ), FormatNumber( GetPVarInt( playerid, "MoneyEarned" ) ) );
  73.                         PlayerTextDrawSetString( playerid, CasinoPTD[ 31 ], string );                  
  74.                     } else {
  75.                         PlayerTextDrawSetString( playerid, CasinoPTD[ 30 ], "~r~Ai pierdut!~n~Mai poti juca peste 5 secunde" );
  76.                        
  77.                         format( string, sizeof( string ), "* %s a pierdut $%s in Mine Sweeper.", GetName( playerid ), FormatNumber( GetPVarInt( playerid, "BetAmount" ) ) );
  78.                         ProxDetector( 30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE );
  79.                        
  80.                         for( new x = 0; x < 30; x++ ) {
  81.                             if( MineBomb[ playerid ][ x ] == 1 ) {
  82.                                 PlayerTextDrawBoxColor( playerid, CasinoPTD[ x ], 0xFF0000FF );
  83.                                 PlayerTextDrawShow( playerid, CasinoPTD[ x ] );
  84.                             }  
  85.                         }
  86.                        
  87.                         format( string, sizeof( string ), "Played times: ~g~%d~w~~h~~n~Money earned: ~g~$%s", GetPVarInt( playerid, "Mines" ), FormatNumber( GetPVarInt( playerid, "MoneyEarned" ) ) );
  88.                         PlayerTextDrawSetString( playerid, CasinoPTD[ 31 ], string );  
  89.  
  90.                         SetTimerEx( "ShowMine", 5000, 0, "i", playerid );  
  91.                         SetPVarInt( playerid, "Loser", 1 );
  92.                     }
  93.                     PlayerTextDrawShow( playerid, CasinoPTD[ 30 ] );
  94.                     PlayerTextDrawShow( playerid, CasinoPTD[ 31 ] );
  95.                 }
  96.             }
  97.         }  
  98.         if( playertextid == CasinoPTD[ 32 ] && GetPVarInt( playerid, "BetAmount" ) == 0 ) ShowPlayerDialog( playerid, DIALOG_BETCASINO, DIALOG_STYLE_INPUT, "Bet amount", "Seteaza suma cu care vrei sa joci.\nPoti pune minim $1.000 si maxim $50,000.", "Select", "Close" );
  99.     }  
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerClickTextDraw( playerid, Text:clickedid ) {
  104.     if( GetPVarInt( playerid, "PlayMine" ) == 1 && GetPVarInt( playerid, "Loser" ) == 0 ) {
  105.         new string[ 128 ];
  106.         if( clickedid == CasinoTD[ 4 ] ) {
  107.             if( GetPVarInt( playerid, "StartedGame" ) == 1 && GetPVarInt( playerid, "Mines" ) > 0 ) return SendClientMessage( playerid, COLOR_LGREEN, "Eroare: Pentru a inchide jocul, trebuie sa dai 'Cash out'!" );
  108.             HideCasinoTDs( playerid );
  109.         }  
  110.         if( clickedid == CasinoTD[ 6 ] && GetPVarInt( playerid, "StartedGame" ) == 1 && GetPVarInt( playerid, "Mines" ) > 0 ) {
  111.             GivePlayerMoney( playerid, GetPVarInt( playerid, "MoneyEarned" ) );
  112.             format( string, sizeof( string ), "* %s a castigat $%s in Mine Sweeper.", GetName( playerid ), FormatNumber( GetPVarInt( playerid, "MoneyEarned" ) ) );
  113.             ProxDetector( 30.0,playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE );               
  114.             format( string, sizeof( string ), "~g~Felicitari! Ai castigat $%s.", FormatNumber( GetPVarInt( playerid, "MoneyEarned" ) ) );          
  115.             ShowCasinoTDs( playerid );
  116.             PlayerTextDrawSetString( playerid, CasinoPTD[ 30 ], string );
  117.             PlayerTextDrawShow( playerid, CasinoPTD[ 30 ] );
  118.             format( string, sizeof( string ), "Played times: ~g~%d~w~~h~~n~Money earned: ~g~$%s", GetPVarInt( playerid, "Mines" ), FormatNumber( GetPVarInt( playerid, "MoneyEarned" ) ) );
  119.             PlayerTextDrawSetString( playerid, CasinoPTD[ 31 ], string );
  120.             PlayerTextDrawShow( playerid, CasinoPTD[ 31 ] );   
  121.             return 1;
  122.         }
  123.         if( GetPVarInt( playerid, "StartedGame" ) == 1 ) return SendClientMessage( playerid, COLOR_LGREEN, "Eroare: Jocul a inceput! Nu se mai pot face modificari pana ce nu dai Cash out." );
  124.         if( clickedid == CasinoTD[ 9 ] && GetPVarInt( playerid, "MineType" ) == 0 ) SetPVarInt( playerid, "MineType", 1 ), TextDrawColor( CasinoTD[ 9 ], 0x80FF00FF ), TextDrawShowForPlayer( playerid, CasinoTD[ 9 ] );
  125.         if( clickedid == CasinoTD[ 7 ] && GetPVarInt( playerid, "MineType" ) == 0 ) SetPVarInt( playerid, "MineType", 3 ), TextDrawColor( CasinoTD[ 7 ], 0x80FF00FF ), TextDrawShowForPlayer( playerid, CasinoTD[ 7 ] );
  126.         if( clickedid == CasinoTD[ 12 ] && GetPVarInt( playerid, "MineType" ) == 0 ) SetPVarInt( playerid, "MineType", 6 ), TextDrawColor( CasinoTD[ 12 ], 0x80FF00FF ), TextDrawShowForPlayer( playerid, CasinoTD[ 12 ] );
  127.        
  128.         if( clickedid == CasinoTD[ 5 ] ) {
  129.             if( GetPVarInt( playerid, "MineType" ) == 0 || GetPVarInt( playerid, "BetAmount" ) == 0 ) return SendClientMessage( playerid, COLOR_LGREEN, "Eroare: Jocul nu a inceput deoarece nu ai pariat o suma / nu ai ales numarul de bombe." );
  130.             for( new i = 0; i < 30; i++ ) MineBomb[ playerid ][ i ] = 0;
  131.            
  132.             new
  133.                 rand1 = random( 30 ),
  134.                 rand2 = random( 30 ),
  135.                 rand3 = random( 30 ),
  136.                 rand4 = random( 30 ),
  137.                 rand5 = random( 30 ),
  138.                 rand6 = random( 30 );
  139.            
  140.             if( rand1 == rand2 || rand1 == rand3 || rand1 == rand4 || rand1 == rand5 || rand1 == rand6 ) rand1 = random( 30 );
  141.             if( rand2 == rand1 || rand2 == rand3 || rand2 == rand4 || rand2 == rand5 || rand2 == rand6 ) rand2 = random( 30 );
  142.             if( rand3 == rand1 || rand3 == rand2 || rand3 == rand4 || rand3 == rand5 || rand3 == rand6 ) rand3 = random( 30 );
  143.             if( rand4 == rand1 || rand4 == rand2 || rand4 == rand3 || rand4 == rand5 || rand4 == rand6 ) rand4 = random( 30 );
  144.             if( rand5 == rand1 || rand5 == rand2 || rand5 == rand3 || rand5 == rand4 || rand5 == rand6 ) rand5 = random( 30 );
  145.             if( rand6 == rand1 || rand6 == rand2 || rand6 == rand3 || rand6 == rand4 || rand6 == rand5 ) rand6 = random( 30 );
  146.  
  147.             if( rand1 == rand2 || rand1 == rand3 || rand1 == rand4 || rand1 == rand5 || rand1 == rand6 ) rand1 = random( 30 );
  148.             if( rand2 == rand1 || rand2 == rand3 || rand2 == rand4 || rand2 == rand5 || rand2 == rand6 ) rand2 = random( 30 );
  149.             if( rand3 == rand1 || rand3 == rand2 || rand3 == rand4 || rand3 == rand5 || rand3 == rand6 ) rand3 = random( 30 );
  150.             if( rand4 == rand1 || rand4 == rand2 || rand4 == rand3 || rand4 == rand5 || rand4 == rand6 ) rand4 = random( 30 );
  151.             if( rand5 == rand1 || rand5 == rand2 || rand5 == rand3 || rand5 == rand4 || rand5 == rand6 ) rand5 = random( 30 );
  152.             if( rand6 == rand1 || rand6 == rand2 || rand6 == rand3 || rand6 == rand4 || rand6 == rand5 ) rand6 = random( 30 );
  153.  
  154.             if( rand1 == rand2 || rand1 == rand3 || rand1 == rand4 || rand1 == rand5 || rand1 == rand6 ) rand1 = random( 30 );
  155.             if( rand2 == rand1 || rand2 == rand3 || rand2 == rand4 || rand2 == rand5 || rand2 == rand6 ) rand2 = random( 30 );
  156.             if( rand3 == rand1 || rand3 == rand2 || rand3 == rand4 || rand3 == rand5 || rand3 == rand6 ) rand3 = random( 30 );
  157.             if( rand4 == rand1 || rand4 == rand2 || rand4 == rand3 || rand4 == rand5 || rand4 == rand6 ) rand4 = random( 30 );
  158.             if( rand5 == rand1 || rand5 == rand2 || rand5 == rand3 || rand5 == rand4 || rand5 == rand6 ) rand5 = random( 30 );
  159.             if( rand6 == rand1 || rand6 == rand2 || rand6 == rand3 || rand6 == rand4 || rand6 == rand5 ) rand6 = random( 30 );
  160.  
  161.             if( GetPVarInt( playerid, "MineType" ) >= 1 ) MineBomb[ playerid ][ rand1 ] = 1;
  162.             if( GetPVarInt( playerid, "MineType" ) >= 3 ) {
  163.                 MineBomb[ playerid ][ rand2 ] = 1;
  164.                 MineBomb[ playerid ][ rand3 ] = 1;
  165.             }
  166.             if( GetPVarInt( playerid, "MineType" ) == 6 ) {
  167.                 MineBomb[ playerid ][ rand4 ] = 1;
  168.                 MineBomb[ playerid ][ rand5 ] = 1;
  169.                 MineBomb[ playerid ][ rand6 ] = 1;
  170.             }
  171.            
  172.             SetPVarInt( playerid, "StartedGame", 1 );  
  173.             PlayerTextDrawSetString( playerid, CasinoPTD[ 30 ], "Jocul a inceput!" );
  174.             PlayerTextDrawShow( playerid, CasinoPTD[ 30 ] );           
  175.         }  
  176.     }  
  177.    
  178.     if(clickedid == Text:INVALID_TEXT_DRAW) {
  179.         if(GetPVarInt(playerid, "PlayMine") == 1 || GetPVarInt(playerid, "StartedGame") == 1) SelectTextDraw(playerid, 0x80FF00FF);
  180.     }
  181.     return 1;
  182. }  
  183.    
  184. public OnPlayerSpawn( playerid ) {
  185.     if( GetPVarInt( playerid, "PlayMine" ) == 1 ) HideCasinoTDs( playerid );
  186.     return 1;
  187. }
  188.  
  189. public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[  ] ) {
  190.     switch( dialogid ) {
  191.         case DIALOG_BETCASINO: {
  192.             if( !response ) return 1;
  193.             new string[ 128 ];
  194.             if( strval( inputtext ) < 1000 || strval( inputtext ) > 50000 ) return SendClientMessage( playerid, COLOR_LGREEN, "Eroare: Suma invalida! Poti pune minim $1.000 si maxim $50,000." );
  195.             if( GetPlayerMoney( playerid ) < strval( inputtext ) ) return SendClientMessage( playerid, COLOR_LGREEN, "Eroare: Nu ai aceasta suma de bani!" );
  196.             SetPVarInt( playerid, "BetAmount", strval( inputtext ) );
  197.             GivePlayerMoney( playerid, -strval( inputtext ) );
  198.             format( string, sizeof( string ), "~w~~h~Bet: ~g~$%s", FormatNumber( strval( inputtext ) ) );
  199.             PlayerTextDrawSetString( playerid, CasinoPTD[ 32 ], string );
  200.             PlayerTextDrawShow( playerid, CasinoPTD[ 32 ] );
  201.         }
  202.     }
  203.     return 1;
  204. }
  205.  
  206. CMD:minesweeper( playerid, params[  ] ) {
  207.     //if( !IsPlayerInRangeOfPoint( playerid, 100.0, 2016.1156,1017.1541,996.875 ) ) return SendClientMessage( playerid, -1, "Nu esti la casino!" );
  208.     if( GetPVarInt( playerid, "PlayMine" ) == 1 ) return 1;
  209.     ShowCasinoTDs( playerid );
  210.     SetPVarInt( playerid, "PlayMine", 1 );
  211.     return 1;
  212. }
  213.  
  214. stock GetName( playerid ) {
  215.     new playerName[ MAX_PLAYER_NAME ];
  216.     GetPlayerName( playerid, playerName, sizeof( playerName ) );
  217.     return playerName;
  218. }
  219.  
  220. FormatNumber( number ) {
  221.    new Str[ 15 ];
  222.    format( Str, 15, "%d", number );
  223.    if( strlen( Str ) < sizeof( Str ) ) {
  224.       if( number >= 1000 && number < 10000 ) strins(  Str, ",", 1, sizeof( Str ) );
  225.       else if( number >= 10000 && number < 100000 ) strins( Str, ",", 2, sizeof( Str ) );
  226.       else if( number >= 100000 && number < 1000000 ) strins( Str, ",", 3, sizeof( Str ) );
  227.       else if( number >= 1000000 && number < 10000000 ) strins( Str, ",", 1, sizeof( Str ) ),strins( Str, ",", 5, sizeof( Str ) );
  228.       else if( number >= 10000000 && number < 100000000 ) strins( Str, ",", 2, sizeof( Str ) ),strins( Str, ",", 6, sizeof( Str ) );
  229.       else if( number >= 100000000 && number < 1000000000 ) strins( Str, ",", 3, sizeof( Str ) ),strins( Str, ",", 7, sizeof( Str ) );
  230.       else if( number >= 1000000000 && number < 10000000000 )
  231.            strins( Str, ",", 1, sizeof( Str ) ),
  232.            strins( Str, ",", 5, sizeof( Str ) ),
  233.            strins( Str, ",", 9, sizeof( Str ) );
  234.       else format( Str, 10, "%d", number );
  235.    }
  236.    return Str;
  237. }
  238.  
  239. function ShowMine( playerid ) {
  240.     if( GetPVarInt( playerid, "StartedGame" ) == 1 ) {
  241.         ShowCasinoTDs( playerid );
  242.         PlayerTextDrawSetString( playerid, CasinoPTD[ 31 ], "Played times: ~g~0~w~~h~~n~Money earned: ~g~0" ); 
  243.     }                  
  244.     return 1;
  245. }  
  246.  
  247. function ShowCasinoTDs( playerid ) {
  248.     ResetColorTD( playerid );
  249.     PlayerTextDrawSetString( playerid, CasinoPTD[ 32 ], "Enter bet amount" );
  250.     TextDrawColor( CasinoTD[ 9 ], -1 );
  251.     TextDrawColor( CasinoTD[ 7 ], -1 );
  252.     TextDrawColor( CasinoTD[ 12 ], -1 );
  253.     for( new i = 0; i < 33; i++ ) PlayerTextDrawShow( playerid, CasinoPTD[ i ] );
  254.     for( new i = 0; i < 15; i++ ) TextDrawShowForPlayer( playerid, CasinoTD[ i ] );
  255.     PlayerTextDrawHide( playerid, CasinoPTD[ 30 ] );
  256.     SelectTextDraw( playerid, 0x80FF00FF );
  257.     SetPVarInt( playerid, "MoneyEarned", 0 );
  258.     SetPVarInt( playerid, "Mines", 0 );
  259.     SetPVarInt( playerid, "MineType", 0 ); 
  260.     SetPVarInt( playerid, "BetAmount", 0 );
  261.     SetPVarInt( playerid, "StartedGame", 0 );  
  262.     SetPVarInt( playerid, "Loser", 0 );
  263.     for( new i = 0; i < 30; i++ ) MineActive[ playerid ][ i ] = 0;
  264.     return 1;
  265. }
  266.  
  267. function ResetColorTD( playerid ) {
  268.     for( new i = 0; i < 33; i++ ) {
  269.         PlayerTextDrawBoxColor( playerid, CasinoPTD[ i ], -123 );
  270.         PlayerTextDrawShow( playerid, CasinoPTD[ i ] );
  271.     }
  272.     return 1;
  273. }
  274.  
  275. function HideCasinoTDs( playerid ) {
  276.     for( new i = 0; i < 33; i++ ) PlayerTextDrawHide( playerid, CasinoPTD[ i ] );
  277.     for( new i = 0; i < 15; i++ ) TextDrawHideForPlayer( playerid, CasinoTD[ i ] );
  278.     CancelSelectTextDraw( playerid );
  279.     SetPVarInt( playerid, "PlayMine", 0 );
  280.     SetPVarInt( playerid, "BetAmount", 0 );
  281.     SetPVarInt( playerid, "Mines", 0 );
  282.     SetPVarInt( playerid, "StartedGame", 0 );
  283.     SetPVarInt( playerid, "MineType", 0 );
  284.     return 1;
  285. }
  286.  
  287. function GlobalTextDraw(  ) {
  288.     CasinoTD[ 0 ] = TextDrawCreate( 156.666671, 160.962982, "box" );
  289.     TextDrawLetterSize( CasinoTD[ 0 ], 0.000000, 19.700004 );
  290.     TextDrawTextSize( CasinoTD[ 0 ], 461.000000, 0.000000 );
  291.     TextDrawAlignment( CasinoTD[ 0 ], 1 );
  292.     TextDrawColor( CasinoTD[ 0 ], -1 );
  293.     TextDrawUseBox( CasinoTD[ 0 ], 1 );
  294.     TextDrawBoxColor( CasinoTD[ 0 ], 103 );
  295.     TextDrawSetShadow( CasinoTD[ 0 ], 0 );
  296.     TextDrawSetOutline( CasinoTD[ 0 ], 0 );
  297.     TextDrawBackgroundColor( CasinoTD[ 0 ], 255 );
  298.     TextDrawFont( CasinoTD[ 0 ], 1 );
  299.     TextDrawSetProportional( CasinoTD[ 0 ], 1 );
  300.     TextDrawSetShadow( CasinoTD[ 0 ], 0 );
  301.  
  302.     CasinoTD[ 1 ] = TextDrawCreate( 155.000000, 159.303726, "box" );
  303.     TextDrawLetterSize( CasinoTD[ 1 ], 0.000000, 20.094011 );
  304.     TextDrawTextSize( CasinoTD[ 1 ], 462.949951, 0.000000 );
  305.     TextDrawAlignment( CasinoTD[ 1 ], 1 );
  306.     TextDrawColor( CasinoTD[ 1 ], -1 );
  307.     TextDrawUseBox( CasinoTD[ 1 ], 1 );
  308.     TextDrawBoxColor( CasinoTD[ 1 ], 103 );
  309.     TextDrawSetShadow( CasinoTD[ 1 ], 0 );
  310.     TextDrawSetOutline( CasinoTD[ 1 ], 0 );
  311.     TextDrawBackgroundColor( CasinoTD[ 1 ], 255 );
  312.     TextDrawFont( CasinoTD[ 1 ], 1 );
  313.     TextDrawSetProportional( CasinoTD[ 1 ], 1 );
  314.     TextDrawSetShadow( CasinoTD[ 1 ], 0 );
  315.  
  316.     CasinoTD[ 2 ] = TextDrawCreate( 170.000061, 182.948135, "box" );
  317.     TextDrawLetterSize( CasinoTD[ 2 ], 0.000000, 15.033333 );
  318.     TextDrawTextSize( CasinoTD[ 2 ], 275.000000, 0.000000 );
  319.     TextDrawAlignment( CasinoTD[ 2 ], 1 );
  320.     TextDrawColor( CasinoTD[ 2 ], -1 );
  321.     TextDrawUseBox( CasinoTD[ 2 ], 1 );
  322.     TextDrawBoxColor( CasinoTD[ 2 ], 100 );
  323.     TextDrawSetShadow( CasinoTD[ 2 ], 0 );
  324.     TextDrawSetOutline( CasinoTD[ 2 ], 0 );
  325.     TextDrawBackgroundColor( CasinoTD[ 2 ], 255 );
  326.     TextDrawFont( CasinoTD[ 2 ], 1 );
  327.     TextDrawSetProportional( CasinoTD[ 2 ], 1 );
  328.     TextDrawSetShadow( CasinoTD[ 2 ], 0 );
  329.  
  330.     CasinoTD[ 3 ] = TextDrawCreate( 308.000061, 146.444427, "Casino - Mine Sweeper" );
  331.     TextDrawLetterSize( CasinoTD[ 3 ], 0.463999, 1.828148 );
  332.     TextDrawAlignment( CasinoTD[ 3 ], 2 );
  333.     TextDrawColor( CasinoTD[ 3 ], -1 );
  334.     TextDrawSetShadow( CasinoTD[ 3 ], 0 );
  335.     TextDrawSetOutline( CasinoTD[ 3 ], 1 );
  336.     TextDrawBackgroundColor( CasinoTD[ 3 ], 82 );
  337.     TextDrawFont( CasinoTD[ 3 ], 0 );
  338.     TextDrawSetProportional( CasinoTD[ 3 ], 1 );
  339.     TextDrawSetShadow( CasinoTD[ 3 ], 0 );
  340.  
  341.     CasinoTD[ 4 ] = TextDrawCreate( 457.333343, 153.755554, "LD_BEAT:cross" );
  342.     TextDrawLetterSize( CasinoTD[ 4 ], 0.000000, 0.000000 );
  343.     TextDrawTextSize( CasinoTD[ 4 ], 11.000000, 13.000000 );
  344.     TextDrawAlignment( CasinoTD[ 4 ], 1 );
  345.     TextDrawColor( CasinoTD[ 4 ], -1 );
  346.     TextDrawSetShadow( CasinoTD[ 4 ], 0 );
  347.     TextDrawSetOutline( CasinoTD[ 4 ], 0 );
  348.     TextDrawBackgroundColor( CasinoTD[ 4 ], 255 );
  349.     TextDrawFont( CasinoTD[ 4 ], 4 );
  350.     TextDrawSetProportional( CasinoTD[ 4 ], 0 );
  351.     TextDrawSetShadow( CasinoTD[ 4 ], 0 );
  352.     TextDrawSetSelectable( CasinoTD[ 4 ], true );
  353.  
  354.     CasinoTD[ 5 ] = TextDrawCreate( 366.666748, 263.007293, "Start game" );
  355.     TextDrawLetterSize( CasinoTD[ 5 ], 0.363999, 1.562666 );
  356.     TextDrawTextSize( CasinoTD[ 5 ], 15.000000, 105.000000 );
  357.     TextDrawAlignment( CasinoTD[ 5 ], 2 );
  358.     TextDrawColor( CasinoTD[ 5 ], -1 );
  359.     TextDrawUseBox( CasinoTD[ 5 ], 1 );
  360.     TextDrawBoxColor( CasinoTD[ 5 ], 16711935 );
  361.     TextDrawSetShadow( CasinoTD[ 5 ], 0 );
  362.     TextDrawSetOutline( CasinoTD[ 5 ], 1 );
  363.     TextDrawBackgroundColor( CasinoTD[ 5 ], 255 );
  364.     TextDrawFont( CasinoTD[ 5 ], 2 );
  365.     TextDrawSetProportional( CasinoTD[ 5 ], 1 );
  366.     TextDrawSetShadow( CasinoTD[ 5 ], 0 );
  367.     TextDrawSetSelectable( CasinoTD[ 5 ], true );
  368.  
  369.     CasinoTD[ 6 ] = TextDrawCreate( 366.666748, 285.822204, "Cash out" );
  370.     TextDrawLetterSize( CasinoTD[ 6 ], 0.363999, 1.562666 );
  371.     TextDrawTextSize( CasinoTD[ 6 ], 15.000000, 105.000000 );
  372.     TextDrawAlignment( CasinoTD[ 6 ], 2 );
  373.     TextDrawColor( CasinoTD[ 6 ], -1 );
  374.     TextDrawUseBox( CasinoTD[ 6 ], 1 );
  375.     TextDrawBoxColor( CasinoTD[ 6 ], -16776961 );
  376.     TextDrawSetShadow( CasinoTD[ 6 ], 0 );
  377.     TextDrawSetOutline( CasinoTD[ 6 ], 1 );
  378.     TextDrawBackgroundColor( CasinoTD[ 6 ], 255 );
  379.     TextDrawFont( CasinoTD[ 6 ], 2 );
  380.     TextDrawSetProportional( CasinoTD[ 6 ], 1 );
  381.     TextDrawSetShadow( CasinoTD[ 6 ], 0 );
  382.     TextDrawSetSelectable( CasinoTD[ 6 ], true );
  383.  
  384.     CasinoTD[ 7 ] = TextDrawCreate( 350.666534, 194.562988, "3x" );
  385.     TextDrawLetterSize( CasinoTD[ 7 ], 0.400000, 1.600000 );
  386.     TextDrawTextSize( CasinoTD[ 7 ], 368.000000, 15.000000 );
  387.     TextDrawAlignment( CasinoTD[ 7 ], 1 );
  388.     TextDrawColor( CasinoTD[ 7 ], -1 );
  389.     TextDrawSetShadow( CasinoTD[ 7 ], 0 );
  390.     TextDrawSetOutline( CasinoTD[ 7 ], 1 );
  391.     TextDrawBackgroundColor( CasinoTD[ 7 ], 255 );
  392.     TextDrawFont( CasinoTD[ 7 ], 1 );
  393.     TextDrawSetProportional( CasinoTD[ 7 ], 1 );
  394.     TextDrawSetShadow( CasinoTD[ 7 ], 0 );
  395.     TextDrawSetSelectable( CasinoTD[ 7 ], true );
  396.  
  397.     CasinoTD[ 8 ] = TextDrawCreate( 315.666931, 192.074050, "box" );
  398.     TextDrawLetterSize( CasinoTD[ 8 ], 0.000000, 1.866665 );
  399.     TextDrawTextSize( CasinoTD[ 8 ], 418.000000, 0.000000 );
  400.     TextDrawAlignment( CasinoTD[ 8 ], 1 );
  401.     TextDrawColor( CasinoTD[ 8 ], -1 );
  402.     TextDrawUseBox( CasinoTD[ 8 ], 1 );
  403.     TextDrawBoxColor( CasinoTD[ 8 ], -233 );
  404.     TextDrawSetShadow( CasinoTD[ 8 ], 0 );
  405.     TextDrawSetOutline( CasinoTD[ 8 ], 0 );
  406.     TextDrawBackgroundColor( CasinoTD[ 8 ], 255 );
  407.     TextDrawFont( CasinoTD[ 8 ], 1 );
  408.     TextDrawSetProportional( CasinoTD[ 8 ], 1 );
  409.     TextDrawSetShadow( CasinoTD[ 8 ], 0 );
  410.  
  411.     CasinoTD[ 9 ] = TextDrawCreate( 316.999969, 194.562942, "1x" );
  412.     TextDrawLetterSize( CasinoTD[ 9 ], 0.400000, 1.600000 );
  413.     TextDrawTextSize( CasinoTD[ 9 ], 350.000000, 15.000000 );
  414.     TextDrawAlignment( CasinoTD[ 9 ], 1 );
  415.     TextDrawColor( CasinoTD[ 9 ], -1 );
  416.     TextDrawSetShadow( CasinoTD[ 9 ], 0 );
  417.     TextDrawSetOutline( CasinoTD[ 9 ], 1 );
  418.     TextDrawBackgroundColor( CasinoTD[ 9 ], 255 );
  419.     TextDrawFont( CasinoTD[ 9 ], 1 );
  420.     TextDrawSetProportional( CasinoTD[ 9 ], 1 );
  421.     TextDrawSetShadow( CasinoTD[ 9 ], 0 );
  422.     TextDrawSetSelectable( CasinoTD[ 9 ], true );
  423.  
  424.     CasinoTD[ 10 ] = TextDrawCreate( 302.666717, 167.859405, "" );
  425.     TextDrawLetterSize( CasinoTD[ 10 ], 0.000000, 0.000000 );
  426.     TextDrawTextSize( CasinoTD[ 10 ], 89.000000, 68.000000 );
  427.     TextDrawAlignment( CasinoTD[ 10 ], 1 );
  428.     TextDrawColor( CasinoTD[ 10 ], -1 );
  429.     TextDrawSetShadow( CasinoTD[ 10 ], 0 );
  430.     TextDrawSetOutline( CasinoTD[ 10 ], 0 );
  431.     TextDrawBackgroundColor( CasinoTD[ 10 ], 0 );
  432.     TextDrawFont( CasinoTD[ 10 ], 5 );
  433.     TextDrawSetProportional( CasinoTD[ 10 ], 0 );
  434.     TextDrawSetShadow( CasinoTD[ 10 ], 0 );
  435.     TextDrawSetPreviewModel( CasinoTD[ 10 ], 342 );
  436.     TextDrawSetPreviewRot( CasinoTD[ 10 ], 0.000000, 0.000000, 0.000000, 1.000000 );
  437.  
  438.     CasinoTD[ 11 ] = TextDrawCreate( 338.333312, 167.444595, "" );
  439.     TextDrawLetterSize( CasinoTD[ 11 ], 0.000000, 0.000000 );
  440.     TextDrawTextSize( CasinoTD[ 11 ], 89.000000, 68.000000 );
  441.     TextDrawAlignment( CasinoTD[ 11 ], 1 );
  442.     TextDrawColor( CasinoTD[ 11 ], -1 );
  443.     TextDrawSetShadow( CasinoTD[ 11 ], 0 );
  444.     TextDrawSetOutline( CasinoTD[ 11 ], 0 );
  445.     TextDrawBackgroundColor( CasinoTD[ 11 ], 0 );
  446.     TextDrawFont( CasinoTD[ 11 ], 5 );
  447.     TextDrawSetProportional( CasinoTD[ 11 ], 0 );
  448.     TextDrawSetShadow( CasinoTD[ 11 ], 0 );
  449.     TextDrawSetPreviewModel( CasinoTD[ 11 ], 342 );
  450.     TextDrawSetPreviewRot( CasinoTD[ 11 ], 0.000000, 0.000000, 0.000000, 1.000000 );
  451.  
  452.     CasinoTD[ 12 ] = TextDrawCreate( 385.333190, 194.562988, "6x" );
  453.     TextDrawLetterSize( CasinoTD[ 12 ], 0.400000, 1.600000 );
  454.     TextDrawTextSize( CasinoTD[ 12 ], 400.000000, 15.000000 );
  455.     TextDrawAlignment( CasinoTD[ 12 ], 1 );
  456.     TextDrawColor( CasinoTD[ 12 ], -1 );
  457.     TextDrawSetShadow( CasinoTD[ 12 ], 0 );
  458.     TextDrawSetOutline( CasinoTD[ 12 ], 1 );
  459.     TextDrawBackgroundColor( CasinoTD[ 12 ], 255 );
  460.     TextDrawFont( CasinoTD[ 12 ], 1 );
  461.     TextDrawSetProportional( CasinoTD[ 12 ], 1 );
  462.     TextDrawSetShadow( CasinoTD[ 12 ], 0 );
  463.     TextDrawSetSelectable( CasinoTD[ 12 ], true );
  464.  
  465.     CasinoTD[ 13 ] = TextDrawCreate( 372.000030, 167.444610, "" );
  466.     TextDrawLetterSize( CasinoTD[ 13 ], 0.000000, 0.000000 );
  467.     TextDrawTextSize( CasinoTD[ 13 ], 89.000000, 68.000000 );
  468.     TextDrawAlignment( CasinoTD[ 13 ], 1 );
  469.     TextDrawColor( CasinoTD[ 13 ], -1 );
  470.     TextDrawSetShadow( CasinoTD[ 13 ], 0 );
  471.     TextDrawSetOutline( CasinoTD[ 13 ], 0 );
  472.     TextDrawBackgroundColor( CasinoTD[ 13 ], 0 );
  473.     TextDrawFont( CasinoTD[ 13 ], 5 );
  474.     TextDrawSetProportional( CasinoTD[ 13 ], 0 );
  475.     TextDrawSetShadow( CasinoTD[ 13 ], 0 );
  476.     TextDrawSetPreviewModel( CasinoTD[ 13 ], 342 );
  477.     TextDrawSetPreviewRot( CasinoTD[ 13 ], 0.000000, 0.000000, 0.000000, 1.000000 );
  478.  
  479.     CasinoTD[ 14 ] = TextDrawCreate( 315.666931, 214.059249, "box" );
  480.     TextDrawLetterSize( CasinoTD[ 14 ], 0.000000, 1.866665 );
  481.     TextDrawTextSize( CasinoTD[ 14 ], 418.000000, 0.000000 );
  482.     TextDrawAlignment( CasinoTD[ 14 ], 1 );
  483.     TextDrawColor( CasinoTD[ 14 ], -1 );
  484.     TextDrawUseBox( CasinoTD[ 14 ], 1 );
  485.     TextDrawBoxColor( CasinoTD[ 14 ], -233 );
  486.     TextDrawSetShadow( CasinoTD[ 14 ], 0 );
  487.     TextDrawSetOutline( CasinoTD[ 14 ], 0 );
  488.     TextDrawBackgroundColor( CasinoTD[ 14 ], 255 );
  489.     TextDrawFont( CasinoTD[ 14 ], 1 );
  490.     TextDrawSetProportional( CasinoTD[ 14 ], 1 );
  491.     TextDrawSetShadow( CasinoTD[ 14 ], 0 );
  492.     return 1;
  493. }
  494.  
  495. function PlayerTextDraw( playerid ) {
  496.     CasinoPTD[ 0 ] = CreatePlayerTextDraw( playerid, 183.333343, 190.000000, "box" );
  497.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 0 ], 0.000000, 1.633334 );
  498.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 0 ], 15.000000, 13.000000 );
  499.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 0 ], 2 );
  500.     PlayerTextDrawColor( playerid, CasinoPTD[ 0 ], -1 );
  501.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 0 ], 1 );
  502.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 0 ], -123 );
  503.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 0 ], 0 );
  504.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 0 ], 0 );
  505.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 0 ], 255 );
  506.     PlayerTextDrawFont( playerid, CasinoPTD[ 0 ], 1 );
  507.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 0 ], 1 );
  508.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 0 ], 0 );
  509.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 0 ], true );
  510.  
  511.     CasinoPTD[ 1 ] = CreatePlayerTextDraw( playerid, 202.666671, 190.000000, "box" );
  512.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 1 ], 0.000000, 1.633334 );
  513.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 1 ], 15.000000, 13.000000 );
  514.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 1 ], 2 );
  515.     PlayerTextDrawColor( playerid, CasinoPTD[ 1 ], -1 );
  516.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 1 ], 1 );
  517.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 1 ], -123 );
  518.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 1 ], 0 );
  519.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 1 ], 0 );
  520.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 1 ], 255 );
  521.     PlayerTextDrawFont( playerid, CasinoPTD[ 1 ], 1 );
  522.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 1 ], 1 );
  523.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 1 ], 0 );
  524.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 1 ], true );
  525.  
  526.     CasinoPTD[ 2 ] = CreatePlayerTextDraw( playerid, 222.333419, 190.000000, "box" );
  527.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 2 ], 0.000000, 1.633334 );
  528.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 2 ], 15.000000, 13.000000 );
  529.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 2 ], 2 );
  530.     PlayerTextDrawColor( playerid, CasinoPTD[ 2 ], -1 );
  531.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 2 ], 1 );
  532.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 2 ], -123 );
  533.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 2 ], 0 );
  534.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 2 ], 0 );
  535.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 2 ], 255 );
  536.     PlayerTextDrawFont( playerid, CasinoPTD[ 2 ], 1 );
  537.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 2 ], 1 );
  538.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 2 ], 0 );
  539.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 2 ], true );
  540.  
  541.     CasinoPTD[ 3 ] = CreatePlayerTextDraw( playerid, 242.333480, 190.000030, "box" );
  542.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 3 ], 0.000000, 1.633334 );
  543.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 3 ], 15.000000, 13.000000 );
  544.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 3 ], 2 );
  545.     PlayerTextDrawColor( playerid, CasinoPTD[ 3 ], -1 );
  546.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 3 ], 1 );
  547.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 3 ], -123 );
  548.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 3 ], 0 );
  549.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 3 ], 0 );
  550.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 3 ], 255 );
  551.     PlayerTextDrawFont( playerid, CasinoPTD[ 3 ], 1 );
  552.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 3 ], 1 );
  553.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 3 ], 0 );
  554.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 3 ], true );
  555.  
  556.     CasinoPTD[ 4 ] = CreatePlayerTextDraw( playerid, 261.333465, 190.000030, "box" );
  557.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 4 ], 0.000000, 1.633334 );
  558.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 4 ], 15.000000, 13.000000 );
  559.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 4 ], 2 );
  560.     PlayerTextDrawColor( playerid, CasinoPTD[ 4 ], -1 );
  561.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 4 ], 1 );
  562.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 4 ], -123 );
  563.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 4 ], 0 );
  564.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 4 ], 0 );
  565.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 4 ], 255 );
  566.     PlayerTextDrawFont( playerid, CasinoPTD[ 4 ], 1 );
  567.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 4 ], 1 );
  568.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 4 ], 0 );
  569.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 4 ], true );
  570.  
  571.     CasinoPTD[ 5 ] = CreatePlayerTextDraw( playerid, 183.333450, 211.985229, "box" );
  572.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 5 ], 0.000000, 1.633334 );
  573.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 5 ], 15.000000, 13.000000 );
  574.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 5 ], 2 );
  575.     PlayerTextDrawColor( playerid, CasinoPTD[ 5 ], -1 );
  576.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 5 ], 1 );
  577.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 5 ], -123 );
  578.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 5 ], 0 );
  579.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 5 ], 0 );
  580.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 5 ], 255 );
  581.     PlayerTextDrawFont( playerid, CasinoPTD[ 5 ], 1 );
  582.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 5 ], 1 );
  583.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 5 ], 0 );
  584.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 5 ], true );
  585.  
  586.     CasinoPTD[ 6 ] = CreatePlayerTextDraw( playerid, 202.666793, 211.570388, "box" );
  587.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 6 ], 0.000000, 1.633334 );
  588.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 6 ], 15.000000, 13.000000 );
  589.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 6 ], 2 );
  590.     PlayerTextDrawColor( playerid, CasinoPTD[ 6 ], -1 );
  591.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 6 ], 1 );
  592.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 6 ], -123 );
  593.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 6 ], 0 );
  594.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 6 ], 0 );
  595.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 6 ], 255 );
  596.     PlayerTextDrawFont( playerid, CasinoPTD[ 6 ], 1 );
  597.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 6 ], 1 );
  598.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 6 ], 0 );
  599.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 6 ], true );
  600.  
  601.     CasinoPTD[ 7 ] = CreatePlayerTextDraw( playerid, 222.333465, 211.570373, "box" );
  602.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 7 ], 0.000000, 1.633334 );
  603.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 7 ], 15.000000, 13.000000 );
  604.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 7 ], 2 );
  605.     PlayerTextDrawColor( playerid, CasinoPTD[ 7 ], -1 );
  606.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 7 ], 1 );
  607.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 7 ], -123 );
  608.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 7 ], 0 );
  609.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 7 ], 0 );
  610.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 7 ], 255 );
  611.     PlayerTextDrawFont( playerid, CasinoPTD[ 7 ], 1 );
  612.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 7 ], 1 );
  613.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 7 ], 0 );
  614.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 7 ], true );
  615.  
  616.     CasinoPTD[ 8 ] = CreatePlayerTextDraw( playerid, 242.333480, 211.570388, "box" );
  617.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 8 ], 0.000000, 1.633334 );
  618.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 8 ], 15.000000, 13.000000 );
  619.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 8 ], 2 );
  620.     PlayerTextDrawColor( playerid, CasinoPTD[ 8 ], -1 );
  621.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 8 ], 1 );
  622.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 8 ], -123 );
  623.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 8 ], 0 );
  624.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 8 ], 0 );
  625.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 8 ], 255 );
  626.     PlayerTextDrawFont( playerid, CasinoPTD[ 8 ], 1 );
  627.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 8 ], 1 );
  628.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 8 ], 0 );
  629.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 8 ], true );
  630.  
  631.     CasinoPTD[ 9 ] = CreatePlayerTextDraw( playerid, 261.666778, 211.570388, "box" );
  632.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 9 ], 0.000000, 1.633334 );
  633.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 9 ], 15.000000, 13.000000 );
  634.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 9 ], 2 );
  635.     PlayerTextDrawColor( playerid, CasinoPTD[ 9 ], -1 );
  636.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 9 ], 1 );
  637.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 9 ], -123 );
  638.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 9 ], 0 );
  639.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 9 ], 0 );
  640.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 9 ], 255 );
  641.     PlayerTextDrawFont( playerid, CasinoPTD[ 9 ], 1 );
  642.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 9 ], 1 );
  643.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 9 ], 0 );
  644.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 9 ], true );
  645.  
  646.     CasinoPTD[ 10 ] = CreatePlayerTextDraw( playerid, 183.333435, 233.555557, "box" );
  647.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 10 ], 0.000000, 1.633334 );
  648.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 10 ], 15.000000, 13.000000 );
  649.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 10 ], 2 );
  650.     PlayerTextDrawColor( playerid, CasinoPTD[ 10 ], -1 );
  651.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 10 ], 1 );
  652.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 10 ], -123 );
  653.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 10 ], 0 );
  654.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 10 ], 0 );
  655.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 10 ], 255 );
  656.     PlayerTextDrawFont( playerid, CasinoPTD[ 10 ], 1 );
  657.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 10 ], 1 );
  658.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 10 ], 0 );
  659.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 10 ], true );
  660.  
  661.     CasinoPTD[ 11 ] = CreatePlayerTextDraw( playerid, 202.666763, 233.555557, "box" );
  662.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 11 ], 0.000000, 1.633334 );
  663.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 11 ], 15.000000, 13.000000 );
  664.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 11 ], 2 );
  665.     PlayerTextDrawColor( playerid, CasinoPTD[ 11 ], -1 );
  666.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 11 ], 1 );
  667.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 11 ], -123 );
  668.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 11 ], 0 );
  669.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 11 ], 0 );
  670.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 11 ], 255 );
  671.     PlayerTextDrawFont( playerid, CasinoPTD[ 11 ], 1 );
  672.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 11 ], 1 );
  673.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 11 ], 0 );
  674.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 11 ], true );
  675.  
  676.     CasinoPTD[ 12 ] = CreatePlayerTextDraw( playerid, 222.333419, 233.555572, "box" );
  677.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 12 ], 0.000000, 1.633334 );
  678.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 12 ], 15.000000, 13.000000 );
  679.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 12 ], 2 );
  680.     PlayerTextDrawColor( playerid, CasinoPTD[ 12 ], -1 );
  681.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 12 ], 1 );
  682.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 12 ], -123 );
  683.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 12 ], 0 );
  684.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 12 ], 0 );
  685.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 12 ], 255 );
  686.     PlayerTextDrawFont( playerid, CasinoPTD[ 12 ], 1 );
  687.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 12 ], 1 );
  688.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 12 ], 0 );
  689.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 12 ], true );
  690.  
  691.     CasinoPTD[ 13 ] = CreatePlayerTextDraw( playerid, 242.333404, 233.555572, "box" );
  692.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 13 ], 0.000000, 1.633334 );
  693.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 13 ], 15.000000, 13.000000 );
  694.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 13 ], 2 );
  695.     PlayerTextDrawColor( playerid, CasinoPTD[ 13 ], -1 );
  696.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 13 ], 1 );
  697.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 13 ], -123 );
  698.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 13 ], 0 );
  699.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 13 ], 0 );
  700.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 13 ], 255 );
  701.     PlayerTextDrawFont( playerid, CasinoPTD[ 13 ], 1 );
  702.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 13 ], 1 );
  703.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 13 ], 0 );
  704.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 13 ], true );
  705.  
  706.     CasinoPTD[ 14 ] = CreatePlayerTextDraw( playerid, 261.333435, 233.555572, "box" );
  707.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 14 ], 0.000000, 1.633334 );
  708.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 14 ], 15.000000, 13.000000 );
  709.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 14 ], 2 );
  710.     PlayerTextDrawColor( playerid, CasinoPTD[ 14 ], -1 );
  711.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 14 ], 1 );
  712.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 14 ], -123 );
  713.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 14 ], 0 );
  714.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 14 ], 0 );
  715.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 14 ], 255 );
  716.     PlayerTextDrawFont( playerid, CasinoPTD[ 14 ], 1 );
  717.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 14 ], 1 );
  718.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 14 ], 0 );
  719.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 14 ], true );
  720.  
  721.     CasinoPTD[ 15 ] = CreatePlayerTextDraw( playerid, 183.333419, 255.125930, "box" );
  722.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 15 ], 0.000000, 1.633334 );
  723.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 15 ], 15.000000, 13.000000 );
  724.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 15 ], 2 );
  725.     PlayerTextDrawColor( playerid, CasinoPTD[ 15 ], -1 );
  726.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 15 ], 1 );
  727.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 15 ], -123 );
  728.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 15 ], 0 );
  729.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 15 ], 0 );
  730.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 15 ], 255 );
  731.     PlayerTextDrawFont( playerid, CasinoPTD[ 15 ], 1 );
  732.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 15 ], 1 );
  733.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 15 ], 0 );
  734.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 15 ], true );
  735.  
  736.     CasinoPTD[ 16 ] = CreatePlayerTextDraw( playerid, 203.000091, 255.125930, "box" );
  737.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 16 ], 0.000000, 1.633334 );
  738.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 16 ], 15.000000, 13.000000 );
  739.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 16 ], 2 );
  740.     PlayerTextDrawColor( playerid, CasinoPTD[ 16 ], -1 );
  741.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 16 ], 1 );
  742.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 16 ], -123 );
  743.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 16 ], 0 );
  744.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 16 ], 0 );
  745.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 16 ], 255 );
  746.     PlayerTextDrawFont( playerid, CasinoPTD[ 16 ], 1 );
  747.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 16 ], 1 );
  748.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 16 ], 0 );
  749.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 16 ], true );
  750.  
  751.     CasinoPTD[ 17 ] = CreatePlayerTextDraw( playerid, 222.333450, 255.125930, "box" );
  752.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 17 ], 0.000000, 1.633334 );
  753.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 17 ], 15.000000, 13.000000 );
  754.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 17 ], 2 );
  755.     PlayerTextDrawColor( playerid, CasinoPTD[ 17 ], -1 );
  756.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 17 ], 1 );
  757.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 17 ], -123 );
  758.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 17 ], 0 );
  759.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 17 ], 0 );
  760.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 17 ], 255 );
  761.     PlayerTextDrawFont( playerid, CasinoPTD[ 17 ], 1 );
  762.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 17 ], 1 );
  763.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 17 ], 0 );
  764.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 17 ], true );
  765.  
  766.     CasinoPTD[ 18 ] = CreatePlayerTextDraw( playerid, 242.333450, 255.125930, "box" );
  767.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 18 ], 0.000000, 1.633334 );
  768.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 18 ], 15.000000, 13.000000 );
  769.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 18 ], 2 );
  770.     PlayerTextDrawColor( playerid, CasinoPTD[ 18 ], -1 );
  771.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 18 ], 1 );
  772.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 18 ], -123 );
  773.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 18 ], 0 );
  774.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 18 ], 0 );
  775.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 18 ], 255 );
  776.     PlayerTextDrawFont( playerid, CasinoPTD[ 18 ], 1 );
  777.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 18 ], 1 );
  778.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 18 ], 0 );
  779.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 18 ], true );
  780.  
  781.     CasinoPTD[ 19 ] = CreatePlayerTextDraw( playerid, 261.000122, 255.125930, "box" );
  782.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 19 ], 0.000000, 1.633334 );
  783.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 19 ], 15.000000, 13.000000 );
  784.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 19 ], 2 );
  785.     PlayerTextDrawColor( playerid, CasinoPTD[ 19 ], -1 );
  786.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 19 ], 1 );
  787.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 19 ], -123 );
  788.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 19 ], 0 );
  789.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 19 ], 0 );
  790.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 19 ], 255 );
  791.     PlayerTextDrawFont( playerid, CasinoPTD[ 19 ], 1 );
  792.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 19 ], 1 );
  793.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 19 ], 0 );
  794.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 19 ], true );
  795.  
  796.     CasinoPTD[ 20 ] = CreatePlayerTextDraw( playerid, 183.333480, 276.281433, "box" );
  797.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 20 ], 0.000000, 1.633334 );
  798.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 20 ], 15.000000, 13.000000 );
  799.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 20 ], 2 );
  800.     PlayerTextDrawColor( playerid, CasinoPTD[ 20 ], -1 );
  801.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 20 ], 1 );
  802.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 20 ], -123 );
  803.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 20 ], 0 );
  804.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 20 ], 0 );
  805.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 20 ], 255 );
  806.     PlayerTextDrawFont( playerid, CasinoPTD[ 20 ], 1 );
  807.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 20 ], 1 );
  808.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 20 ], 0 );
  809.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 20 ], true );
  810.  
  811.     CasinoPTD[ 21 ] = CreatePlayerTextDraw( playerid, 203.333465, 276.281433, "box" );
  812.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 21 ], 0.000000, 1.633334 );
  813.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 21 ], 15.000000, 13.000000 );
  814.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 21 ], 2 );
  815.     PlayerTextDrawColor( playerid, CasinoPTD[ 21 ], -1 );
  816.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 21 ], 1 );
  817.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 21 ], -123 );
  818.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 21 ], 0 );
  819.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 21 ], 0 );
  820.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 21 ], 255 );
  821.     PlayerTextDrawFont( playerid, CasinoPTD[ 21 ], 1 );
  822.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 21 ], 1 );
  823.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 21 ], 0 );
  824.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 21 ], true );
  825.  
  826.     CasinoPTD[ 22 ] = CreatePlayerTextDraw( playerid, 222.666793, 276.696228, "box" );
  827.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 22 ], 0.000000, 1.633334 );
  828.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 22 ], 15.000000, 13.000000 );
  829.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 22 ], 2 );
  830.     PlayerTextDrawColor( playerid, CasinoPTD[ 22 ], -1 );
  831.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 22 ], 1 );
  832.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 22 ], -123 );
  833.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 22 ], 0 );
  834.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 22 ], 0 );
  835.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 22 ], 255 );
  836.     PlayerTextDrawFont( playerid, CasinoPTD[ 22 ], 1 );
  837.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 22 ], 1 );
  838.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 22 ], 0 );
  839.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 22 ], true );
  840.  
  841.     CasinoPTD[ 23 ] = CreatePlayerTextDraw( playerid, 242.333465, 276.696228, "box" );
  842.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 23 ], 0.000000, 1.633334 );
  843.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 23 ], 15.000000, 13.000000 );
  844.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 23 ], 2 );
  845.     PlayerTextDrawColor( playerid, CasinoPTD[ 23 ], -1 );
  846.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 23 ], 1 );
  847.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 23 ], -123 );
  848.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 23 ], 0 );
  849.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 23 ], 0 );
  850.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 23 ], 255 );
  851.     PlayerTextDrawFont( playerid, CasinoPTD[ 23 ], 1 );
  852.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 23 ], 1 );
  853.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 23 ], 0 );
  854.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 23 ], true );
  855.  
  856.     CasinoPTD[ 24 ] = CreatePlayerTextDraw( playerid, 261.333404, 276.696228, "box" );
  857.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 24 ], 0.000000, 1.633334 );
  858.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 24 ], 15.000000, 13.000000 );
  859.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 24 ], 2 );
  860.     PlayerTextDrawColor( playerid, CasinoPTD[ 24 ], -1 );
  861.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 24 ], 1 );
  862.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 24 ], -123 );
  863.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 24 ], 0 );
  864.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 24 ], 0 );
  865.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 24 ], 255 );
  866.     PlayerTextDrawFont( playerid, CasinoPTD[ 24 ], 1 );
  867.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 24 ], 1 );
  868.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 24 ], 0 );
  869.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 24 ], true );
  870.  
  871.     CasinoPTD[ 25 ] = CreatePlayerTextDraw( playerid, 183.333404, 297.436981, "box" );
  872.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 25 ], 0.000000, 1.633334 );
  873.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 25 ], 15.000000, 13.000000 );
  874.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 25 ], 2 );
  875.     PlayerTextDrawColor( playerid, CasinoPTD[ 25 ], -1 );
  876.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 25 ], 1 );
  877.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 25 ], -123 );
  878.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 25 ], 0 );
  879.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 25 ], 0 );
  880.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 25 ], 255 );
  881.     PlayerTextDrawFont( playerid, CasinoPTD[ 25 ], 1 );
  882.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 25 ], 1 );
  883.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 25 ], 0 );
  884.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 25 ], true );
  885.  
  886.     CasinoPTD[ 26 ] = CreatePlayerTextDraw( playerid, 203.666656, 297.436981, "box" );
  887.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 26 ], 0.000000, 1.633334 );
  888.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 26 ], 15.000000, 13.000000 );
  889.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 26 ], 2 );
  890.     PlayerTextDrawColor( playerid, CasinoPTD[ 26 ], -1 );
  891.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 26 ], 1 );
  892.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 26 ], -123 );
  893.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 26 ], 0 );
  894.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 26 ], 0 );
  895.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 26 ], 255 );
  896.     PlayerTextDrawFont( playerid, CasinoPTD[ 26 ], 1 );
  897.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 26 ], 1 );
  898.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 26 ], 0 );
  899.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 26 ], true );
  900.  
  901.     CasinoPTD[ 27 ] = CreatePlayerTextDraw( playerid, 222.666671, 297.436981, "box" );
  902.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 27 ], 0.000000, 1.633334 );
  903.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 27 ], 15.000000, 13.000000 );
  904.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 27 ], 2 );
  905.     PlayerTextDrawColor( playerid, CasinoPTD[ 27 ], -1 );
  906.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 27 ], 1 );
  907.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 27 ], -123 );
  908.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 27 ], 0 );
  909.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 27 ], 0 );
  910.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 27 ], 255 );
  911.     PlayerTextDrawFont( playerid, CasinoPTD[ 27 ], 1 );
  912.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 27 ], 1 );
  913.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 27 ], 0 );
  914.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 27 ], true );
  915.  
  916.     CasinoPTD[ 28 ] = CreatePlayerTextDraw( playerid, 242.333282, 297.436981, "box" );
  917.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 28 ], 0.000000, 1.633334 );
  918.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 28 ], 15.000000, 13.000000 );
  919.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 28 ], 2 );
  920.     PlayerTextDrawColor( playerid, CasinoPTD[ 28 ], -1 );
  921.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 28 ], 1 );
  922.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 28 ], -123 );
  923.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 28 ], 0 );
  924.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 28 ], 0 );
  925.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 28 ], 255 );
  926.     PlayerTextDrawFont( playerid, CasinoPTD[ 28 ], 1 );
  927.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 28 ], 1 );
  928.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 28 ], 0 );
  929.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 28 ], true );
  930.  
  931.     CasinoPTD[ 29 ] = CreatePlayerTextDraw( playerid, 261.333282, 297.436950, "box" );
  932.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 29 ], 0.000000, 1.633334 );
  933.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 29 ], 15.000000, 13.000000 );
  934.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 29 ], 2 );
  935.     PlayerTextDrawColor( playerid, CasinoPTD[ 29 ], -1 );
  936.     PlayerTextDrawUseBox( playerid, CasinoPTD[ 29 ], 1 );
  937.     PlayerTextDrawBoxColor( playerid, CasinoPTD[ 29 ], -123 );
  938.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 29 ], 0 );
  939.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 29 ], 0 );
  940.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 29 ], 255 );
  941.     PlayerTextDrawFont( playerid, CasinoPTD[ 29 ], 1 );
  942.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 29 ], 1 );
  943.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 29 ], 0 );
  944.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 29 ], true );
  945.  
  946.     CasinoPTD[ 30 ] = CreatePlayerTextDraw( playerid, 367.000061, 312.785186, "~r~Ai pierdut! :( " );
  947.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 30 ], 0.254666, 1.085628 );
  948.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 30 ], 2 );
  949.     PlayerTextDrawColor( playerid, CasinoPTD[ 30 ], -1 );
  950.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 30 ], 0 );
  951.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 30 ], 1 );
  952.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 30 ], 136 );
  953.     PlayerTextDrawFont( playerid, CasinoPTD[ 30 ], 1 );
  954.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 30 ], 1 );
  955.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 30 ], 0 );
  956.  
  957.     CasinoPTD[ 31 ] = CreatePlayerTextDraw( playerid, 366.666961, 236.044342, "Played times: 0~n~Money earned: ~g~$0~w~~h~~n~" );
  958.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 31 ], 0.254666, 1.085628 );
  959.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 31 ], 2 );
  960.     PlayerTextDrawColor( playerid, CasinoPTD[ 31 ], -1 );
  961.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 31 ], 0 );
  962.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 31 ], 1 );
  963.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 31 ], 136 );
  964.     PlayerTextDrawFont( playerid, CasinoPTD[ 31 ], 1 );
  965.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 31 ], 1 );
  966.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 31 ], 0 );
  967.  
  968.     CasinoPTD[ 32 ] = CreatePlayerTextDraw( playerid, 318.999969, 217.377777, "Enter bet amount" );
  969.     PlayerTextDrawLetterSize( playerid, CasinoPTD[ 32 ], 0.252000, 1.098074 );
  970.     PlayerTextDrawTextSize( playerid, CasinoPTD[ 32 ], 396.000000, 10.000000 );
  971.     PlayerTextDrawAlignment( playerid, CasinoPTD[ 32 ], 1 );
  972.     PlayerTextDrawColor( playerid, CasinoPTD[ 32 ], -1 );
  973.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 32 ], 0 );
  974.     PlayerTextDrawSetOutline( playerid, CasinoPTD[ 32 ], 1 );
  975.     PlayerTextDrawBackgroundColor( playerid, CasinoPTD[ 32 ], 122 );
  976.     PlayerTextDrawFont( playerid, CasinoPTD[ 32 ], 1 );
  977.     PlayerTextDrawSetProportional( playerid, CasinoPTD[ 32 ], 1 );
  978.     PlayerTextDrawSetShadow( playerid, CasinoPTD[ 32 ], 0 );
  979.     PlayerTextDrawSetSelectable( playerid, CasinoPTD[ 32 ], true );
  980.     return 1;
  981. }
  982.  
  983. function ProxDetector( Float:radi, playerid, string[  ],col1,col2,col3,col4,col5 ) {
  984.     new Float:posx, Float:posy, Float:posz;
  985.     new Float:oldposx, Float:oldposy, Float:oldposz;
  986.     new Float:tempposx, Float:tempposy, Float:tempposz;
  987.     GetPlayerPos( playerid, oldposx, oldposy, oldposz );
  988.     foreach( Player,i ) {
  989.         if( GetPlayerInterior( playerid ) == GetPlayerInterior( i ) && GetPlayerVirtualWorld( playerid ) == GetPlayerVirtualWorld( i ) ) {
  990.             GetPlayerPos( i, posx, posy, posz );
  991.             tempposx = ( oldposx -posx );
  992.             tempposy = ( oldposy -posy );
  993.             tempposz = ( oldposz -posz );
  994.             if( ( ( tempposx < radi/16 ) && ( tempposx > -radi/16 ) ) && ( ( tempposy < radi/16 ) && ( tempposy > -radi/16 ) ) && ( ( tempposz < radi/16 ) && ( tempposz > -radi/16 ) ) )
  995.                 SendClientMessage( i, col1, string );
  996.             else if( ( ( tempposx < radi/8 ) && ( tempposx > -radi/8 ) ) && ( ( tempposy < radi/8 ) && ( tempposy > -radi/8 ) ) && ( ( tempposz < radi/8 ) && ( tempposz > -radi/8 ) ) )
  997.                 SendClientMessage( i, col2, string );
  998.             else if( ( ( tempposx < radi/4 ) && ( tempposx > -radi/4 ) ) && ( ( tempposy < radi/4 ) && ( tempposy > -radi/4 ) ) && ( ( tempposz < radi/4 ) && ( tempposz > -radi/4 ) ) )
  999.                 SendClientMessage( i, col3, string );
  1000.             else if( ( ( tempposx < radi/2 ) && ( tempposx > -radi/2 ) ) && ( ( tempposy < radi/2 ) && ( tempposy > -radi/2 ) ) && ( ( tempposz < radi/2 ) && ( tempposz > -radi/2 ) ) )
  1001.                 SendClientMessage( i, col4, string );
  1002.             else if( ( ( tempposx < radi ) && ( tempposx > -radi ) ) && ( ( tempposy < radi ) && ( tempposy > -radi ) ) && ( ( tempposz < radi ) && ( tempposz > -radi ) ) )
  1003.                 SendClientMessage( i, col5, string );
  1004.         }
  1005.     }
  1006.     return 1;
  1007. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement