daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // credits to aRoach,[LHT]Bally Do Not Remove These
  2. #include <a_samp>
  3. #include <streamer>
  4. #define Public:%0(%1) forward %0(%1);\
  5.                 public %0(%1)
  6.  
  7. new
  8.     cTimer[ MAX_PLAYERS ]
  9. ;
  10.                
  11. public OnFilterScriptInit( )
  12. {
  13.     print( "\n--------------------------------------" );
  14.     print( "Weight Bridge By aRoach and [LHT]Bally "  );
  15.     print( "Loading [v0.5]" );
  16.     print( "--------------------------------------\n" );
  17.  
  18.     CreateDynamicObject(3406, 1286, 836.40002441406, 4.9000000953674, 0, 0, 1);
  19.     CreateDynamicObject(3406, 1286, 834.40002441406, 4.9000000953674, 0, 0, 0.999755859375);
  20.     CreateDynamicObject(3406, 1286, 833.09997558594, 4.9000000953674, 0, 0, 0.999755859375);
  21.     CreateDynamicObject(3406, 1294.6999511719, 836.59997558594, 4.9000000953674, 0, 0, 0.999755859375);
  22.     CreateDynamicObject(3406, 1294.6999511719, 834.59997558594, 4.9000000953674, 0, 0, 0.999755859375);
  23.     CreateDynamicObject(3406, 1294.8000488281, 833.29998779297, 4.9000000953674, 0, 0, 0.999755859375);
  24.     CreateDynamicObject(3406, 1283.1999511719, 836.29998779297, 4.9000000953674, 0, 0, 0.999755859375);
  25.     CreateDynamicObject(3406, 1283.1999511719, 834.29998779297, 4.9000000953674, 0, 0, 0.999755859375);
  26.     CreateDynamicObject(3406, 1283.1999511719, 833, 4.9000000953674, 0, 0, 0.999755859375);
  27.     CreateDynamicObject(3578, 1283.4000244141, 831.5, 7.5, 0, 0, 1.75);
  28.     CreateDynamicObject(3578, 1293.6999511719, 831.79998779297, 7.5, 0, 0, 1.746826171875);
  29.     CreateDynamicObject(3578, 1293.8000488281, 827.70001220703, 7.5, 0, 0, 1.746826171875);
  30.     CreateDynamicObject(3578, 1283.5999755859, 827.40002441406, 7.5, 0, 0, 1.746826171875);
  31.     CreateDynamicObject(973, 1275.1999511719, 824.20001220703, 7.8000001907349, 0, 0, 42);
  32.     CreateDynamicObject(3406, 1294.5999755859, 838.40002441406, 4.9000000953674, 0, 0, 0.999755859375);
  33.     CreateDynamicObject(3406, 1285.8000488281, 838.29998779297, 4.9000000953674, 0, 0, 0.999755859375);
  34.     CreateDynamicObject(3406, 1283.1999511719, 838.20001220703, 4.9000000953674, 0, 0, 0.999755859375);
  35.     CreateDynamicObject(3578, 1293.4000244141, 839, 7.5, 0, 0, 1.496826171875);
  36.     CreateDynamicObject(3578, 1283.0999755859, 838.70001220703, 7.5, 0, 0, 1.746826171875);
  37.     CreateDynamicObject(973, 1275.4000244141, 842.20001220703, 7.8000001907349, 0, 0, 126.99523925781);
  38.     CreateDynamicObject(8168, 1294.8000488281, 842, 8.6999998092651, 0, 0, 18);
  39.     CreateDynamicObject(8168, 1295.4000244141, 824.70001220703, 8.6999998092651, 0, 0, 197.74562072754);
  40.     CreateDynamicObject(8843, 1278.5999755859, 829.20001220703, 6.9000000953674, 359.75, 0, 272);
  41.     CreateDynamicObject(8843, 1268.8000488281, 834.5, 7.0999999046326, 359.74731445313, 0, 271.99951171875);
  42.     CreateDynamicObject(1298, 1278.9000244141, 832.20001220703, 10.300000190735, 0, 0, 257.75);
  43.     CreateDynamicObject(1298, 1280.9000244141, 832.20001220703, 10.300000190735, 0, 0, 257.74963378906);
  44.     CreateDynamicObject(1298, 1283.4000244141, 832.20001220703, 10.300000190735, 0, 0, 257.74475097656);
  45.     CreateDynamicObject(1298, 1288.0999755859, 832.40002441406, 10.300000190735, 0, 0, 257.74475097656);
  46.     CreateDynamicObject(1298, 1291.5999755859, 832.5, 10.300000190735, 0, 0, 257.74475097656);
  47.     CreateDynamicObject(1298, 1296.9000244141, 832.59997558594, 10.300000190735, 0, 0, 257.74475097656);
  48.     CreateDynamicObject(1298, 1297.5, 828.59997558594, 10.300000190735, 0, 0, 257.74475097656);
  49.     CreateDynamicObject(1298, 1293.1999511719, 828.40002441406, 10.300000190735, 0, 0, 257.74475097656);
  50.     CreateDynamicObject(1298, 1289.4000244141, 828.40002441406, 10.300000190735, 0, 0, 257.74475097656);
  51.     CreateDynamicObject(1298, 1289.3994140625, 828.3994140625, 10.300000190735, 0, 0, 257.74475097656);
  52.     CreateDynamicObject(1298, 1286.4000244141, 828.20001220703, 10.300000190735, 0, 0, 257.74475097656);
  53.     CreateDynamicObject(1298, 1283.4000244141, 828, 10.300000190735, 0, 0, 257.74475097656);
  54.     CreateDynamicObject(1298, 1279.5999755859, 828, 10.300000190735, 0, 0, 257.74475097656);
  55.     CreateDynamicObject(1215, 1278.0999755859, 831.29998779297, 7.4000000953674, 0, 0, 0);
  56.     CreateDynamicObject(1215, 1277.8000488281, 838.29998779297, 7.4000000953674, 0, 0, 0);
  57.     CreateDynamicObject(1215, 1278.3000488281, 827.59997558594, 7.4000000953674, 0, 0, 0);
  58.     CreateDynamicObject(3877, 1299.1999511719, 831.90002441406, 6.5999999046326, 0, 0, 0);
  59.     CreateDynamicObject(3877, 1299.1999511719, 827.90002441406, 6.5999999046326, 0, 0, 0);
  60.     CreateDynamicObject(3877, 1298.9000244141, 839.09997558594, 6.5999999046326, 0, 0, 0);
  61.    
  62.     for( new i = 0; i < MAX_PLAYERS; i ++ ) cTimer[ i ] = SetTimerEx( "StartTruckCheck", 1000, true, "i", i );
  63.     return ( 1 );
  64. }
  65.  
  66. Public:StartTruckCheck( playerid )
  67. {
  68.     new
  69.         vehicleid = GetPlayerVehicleID( playerid )
  70.     ;
  71.     if( IsPlayerInRangeOfPoint( playerid, 15.0, 1288.0256,835.3664,7.9708 ) )
  72.     {
  73.         if( GetVehicleModel( vehicleid ) == 403 || GetVehicleModel( vehicleid ) == 514 || GetVehicleModel( vehicleid ) == 515 )
  74.         {
  75.             TogglePlayerControllable( playerid, 0 );
  76.             KillTimer( cTimer[ playerid ] );
  77.            
  78.             SendClientMessage( playerid, -1, "Please wait while we check your load" );
  79.             SetTimerEx( "TruckChecking", 3000, ( true ), "i", playerid );
  80.         }
  81.         return ( 1 );
  82.     }
  83.     return ( 1 );
  84. }
  85.  
  86. Public:TruckChecking( playerid )
  87. {
  88.     if( IsPlayerInRangeOfPoint( playerid, 15.0, 1288.0256,835.3664,7.9708 ) )
  89.     {
  90.         TogglePlayerControllable( playerid, 1 );
  91.         cTimer[ playerid ] = SetTimerEx( "StartTruckCheck", 1000, ( true ), "i", playerid );
  92.  
  93.         switch( random( 2 ) )
  94.         {
  95.             case 0: SendClientMessage( playerid, -1, "Under the Limit Thankyou" );
  96.             case 1:
  97.             {
  98.                 GivePlayerMoney( playerid, - 2000 ); // 2500$ You can change it ;)
  99.                 SetPlayerWantedLevel( playerid, 2 ); // 2 - The Wanted Stars
  100.                 SendClientMessage( playerid, -1, "{ff0000}YOU ARE OVERLOADED 2 STARS AND A FINE" );
  101.             }
  102.         }
  103.     }
  104.     return ( 1 );
  105. }
RAW Paste Data
Top