Guest User

Untitled

a guest
Jan 13th, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.14 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9.  
  10. #else
  11.  
  12. main()
  13. {}
  14.  
  15. #endif
  16.  
  17. public OnGameModeInit()
  18. {
  19.     // Don't use these lines if it's a filterscript
  20.     SetGameModeText("Blank Script");
  21.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  22.     AddStaticVehicleEx(503,3150.2002000,-1950.7002000,45.0000000,345.9980000,57,90,15); //Hotring Racer B
  23.     AddStaticVehicleEx(502,3144.5000000,-1949.2002000,45.0000000,347.9970000,109,24,15); //Hotring Racer A
  24.     AddStaticVehicleEx(494,3137.7998000,-1947.9004000,45.0000000,349.9970000,77,132,15); //Hotring
  25.     AddStaticVehicleEx(602,3181.3999000,-1927.4000000,44.9000000,168.0000000,123,10,15); //Alpha
  26.     AddStaticVehicleEx(560,3175.6001000,-1925.9000000,44.8000000,174.0000000,94,112,15); //Sultan
  27.     AddStaticVehicleEx(559,3169.2000000,-1924.9000000,44.8000000,168.0000000,88,89,15); //Jester
  28.     AddStaticVehicleEx(558,3162.7000000,-1923.8000000,44.7000000,168.0000000,81,84,15); //Uranus
  29.     AddStaticVehicleEx(541,3156.7000000,-1922.4000000,44.7000000,168.0000000,37,37,15); //Bullet
  30.     AddStaticVehicleEx(506,3150.1001000,-1921.2000000,44.8000000,170.0000000,215,142,15); //Super GT
  31.     AddStaticVehicleEx(429,3144.0000000,-1920.0000000,44.8000000,170.0000000,93,126,15); //Banshee
  32.     AddStaticVehicleEx(415,3137.9004000,-1919.0000000,44.9000000,170.0000000,102,28,15); //Cheetah
  33.     AddStaticVehicleEx(402,3131.6001000,-1917.2000000,45.0000000,170.0000000,66,31,15); //Buffalo
  34.     AddStaticVehicleEx(411,3125.3999000,-1915.4000000,44.8000000,166.0000000,98,68,15); //Infernus
  35.     AddStaticVehicleEx(451,3113.8000000,-1924.7000000,44.8000000,260.0000000,145,115,15); //Turismo
  36.     AddStaticVehicleEx(480,3112.3999000,-1930.6000000,44.9000000,260.0000000,215,142,15); //Comet
  37.     AddStaticVehicleEx(477,3115.1001000,-1918.8000000,44.9000000,260.0000000,37,37,15); //ZR-350
  38.     AddStaticVehicleEx(603,3111.0000000,-1936.3000000,45.0000000,262.0000000,132,148,15); //Phoenix
  39.     AddStaticVehicleEx(503,3156.8999000,-1951.9000000,45.0000000,345.9980000,57,90,15); //Hotring Racer B
  40.     AddStaticVehicleEx(502,3162.8999000,-1953.3000000,45.0000000,347.9970000,109,24,15); //Hotring Racer A
  41.     AddStaticVehicleEx(494,3169.2000000,-1954.7000000,45.0000000,349.9970000,77,132,15); //Hotring
  42.     CreateObject(4841,3259.0000000,-1878.2002000,47.0000000,0.0000000,0.0000000,167.9920000); //object(bchcostrd1_las) (1)
  43.     CreateObject(4841,3442.8999000,-1854.6000000,47.0000000,0.0000000,0.0000000,79.9940000); //object(bchcostrd1_las) (2)
  44.     CreateObject(8040,3148.5000000,-1935.5000000,44.8000000,0.0000000,0.0000000,348.0000000); //object(airprtcrprk02_lvs) (1)
  45.     CreateObject(4841,3280.3999000,-2063.6001000,47.0000000,0.0000000,0.0000000,259.9920000); //object(bchcostrd1_las) (3)
  46.     CreateObject(4841,3468.6001000,-2038.7000000,47.0000000,0.0000000,0.0000000,349.9870000); //object(bchcostrd1_las) (4)
  47.     CreateObject(1284,3208.7002000,-1936.5996000,47.3000000,0.0000000,0.0000000,350.0000000); //object(mtraffic2) (1)
  48.     CreateObject(3452,3184.7000000,-1886.6000000,48.8000000,0.0000000,358.0000000,262.0000000); //object(bballintvgn1) (1)
  49.     CreateObject(3452,3166.2000000,-1974.4000000,48.2000000,0.0000000,357.9950000,261.9960000); //object(bballintvgn1) (2)
  50.     CreateObject(3452,3372.3999000,-2152.1001000,47.3000000,0.0000000,357.9950000,353.9960000); //object(bballintvgn1) (3)
  51.     CreateObject(3452,3401.1001000,-2155.1001000,48.4000000,0.0000000,357.9900000,353.9960000); //object(bballintvgn1) (4)
  52.     CreateObject(3452,3558.0000000,-1938.1000000,47.4000000,0.0000000,1.9900000,79.9960000); //object(bballintvgn1) (5)
  53.     CreateObject(1238,3196.3000000,-1961.0000000,44.5000000,0.0000000,0.0000000,16.0000000); //object(trafficcone) (1)
  54.     CreateObject(1238,3196.8000000,-1959.0000000,44.5000000,0.0000000,0.0000000,15.9960000); //object(trafficcone) (2)
  55.     CreateObject(1238,3195.8999000,-1962.7000000,44.5000000,0.0000000,0.0000000,15.9960000); //object(trafficcone) (3)
  56.     CreateObject(1238,3195.6001000,-1964.4000000,44.5000000,0.0000000,0.0000000,15.9960000); //object(trafficcone) (4)
  57.     CreateObject(1238,3195.2000000,-1965.8000000,44.5000000,0.0000000,0.0000000,15.9960000); //object(trafficcone) (5)
  58.     CreateObject(1238,3194.8000000,-1967.8000000,44.5000000,0.0000000,0.0000000,15.9960000); //object(trafficcone) (6)
  59.     return 1;
  60. }
  61.  
  62. public OnGameModeExit()
  63. {
  64.     return 1;
  65. }
  66.  
  67. public OnPlayerRequestClass(playerid, classid)
  68. {
  69.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  70.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  71.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  72.     return 1;
  73. }
  74.  
  75.  
  76.  
  77. public OnPlayerCommandText(playerid, cmdtext[])
  78. {
  79.     if(strcmp(cmdtext,"/ircorrida",true)==0)
  80.     {
  81.         new vehicleid = GetPlayerVehicleID(playerid);
  82.         new State = GetPlayerState(playerid);
  83.         if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
  84.         {
  85.         GameTextForPlayer(playerid,"",4000,6);
  86.         LinkVehicleToInterior(vehicleid,0);
  87.         SetPlayerInterior(playerid,0);
  88.         return SetVehiclePos(vehicleid,5055.8726,-1806.3988,2.7397);
  89.         }
  90.         SetPlayerPos(playerid,5055.8726,-1806.3988,2.7397);
  91.         SetPlayerInterior(playerid,0);
  92.         return 1;
  93.     }
  94.     return 0;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment