daily pastebin goal
33%
SHARE
TWEET

Untitled

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