Bicas

Untitled

Dec 20th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.45 KB | None | 0 0
  1.             new const Float:RandomVehicleSpawns[] [4] = { // by Renas for bičas
  2.                 {-172.3216,2731.9087,62.4501,270.3754},
  3.                 {-171.9313,2728.6748,62.4501,270.2241},
  4.                 {-171.7253,2725.3977,62.4501,269.5755},
  5.                 {-172.1965,2721.8105,62.4501,270.3423},
  6.                 {-172.4866,2718.5625,62.4501,270.6094},
  7.                 {-171.8957,2715.0366,62.4501,270.6726},
  8.                 {-171.8359,2711.5679,62.4501,270.5308},
  9.                 {-172.1529,2698.2129,62.4501,269.6235},
  10.                 {-171.6519,2695.0193,62.4501,269.3591},
  11.                 {-161.7735,2677.8557,62.4501,359.9674}
  12.             };
  13.  
  14.             new randomSpawnForVehicle = random(sizeof(RandomVehicleSpawns)); // By Renas for bičas
  15.  
  16.             VEHICLE::PosX(playerid::i) = RandomVehicleSpawns[randomSpawnForVehicle][0];
  17.             VEHICLE::PosY(playerid::i) = RandomVehicleSpawns[randomSpawnForVehicle][1];
  18.             VEHICLE::PosZ(playerid::i) = RandomVehicleSpawns[randomSpawnForVehicle][2];
  19.             VEHICLE::Angle(playerid::i) = RandomVehicleSpawns[randomSpawnForVehicle][3];
  20.  
  21.  
  22.  
  23. jei neaišku su tais 0 1 2 3 tai
  24.  
  25. new const kazkas[][4] = {
  26.     {0, 1, 2, 3}
  27. };
  28.  
  29. tavo atvėju tai reiktu mano manimu
  30.  
  31.  
  32. #define MAX_MODELIU_TURGUJ 6 //visada + 1 del to kad 0 del skaiciaus krc :D
  33. new const modeliai[MAX_MODELIU_TURGUJ] {
  34.     {0, 222, 223, 224, 225, 226}
  35. };
  36.  
  37. if perka car ir kint = 2 tai spawn car su modeliu modeliai[2]
  38.  
  39.  
  40.  
  41. Paaiškinimas for Darijus by Bičas, neesu tikras kad informacija yra tiksli - sakiau taip kaip man atrodo ir kiek prisimenu kaip man renas aiškino :D
Advertisement
Add Comment
Please, Sign In to add comment