Advertisement
Guest User

Untitled

a guest
Mar 1st, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. forward VehProtection(vehicleid);
  2. public VehProtection(vehicleid)
  3. {
  4. for(new i = 0; i < sizeof(VoziloInfo); i++)
  5. {
  6. new Fajl[64];
  7. format(Fajl, sizeof(Fajl), AUTO_FILE, i);
  8. if(!fexist(Fajl))
  9. {
  10. if(VoziloInfo[i][vID] == vehicleid)
  11. {
  12. if(VoziloInfo[i][vSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
  13. }
  14. }
  15. }
  16. for(new i = 0; i < sizeof(MotorInfo); i++)
  17. {
  18. new Fajl[64];
  19. format(Fajl, sizeof(Fajl), MOTOR_FILE, i);
  20. if(!fexist(Fajl))
  21. {
  22. if(MotorInfo[i][mID] == vehicleid)
  23. {
  24. if(MotorInfo[i][mSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
  25. }
  26. }
  27. }
  28. for(new i = 0; i < sizeof(AvionInfo); i++)
  29. {
  30. new Fajl[64];
  31. format(Fajl, sizeof(Fajl), AVION_FILE, i);
  32. if(!fexist(Fajl))
  33. {
  34. if(AvionInfo[i][avID] == vehicleid)
  35. {
  36. if(AvionInfo[i][avSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
  37. }
  38. }
  39. }
  40. for(new i = 0; i < sizeof(PlovilaInfo); i++)
  41. {
  42. new Fajl[64];
  43. format(Fajl, sizeof(Fajl), PLOVILA_FILE, i);
  44. if(!fexist(Fajl))
  45. {
  46. if(PlovilaInfo[i][plID] == vehicleid)
  47. {
  48. if(PlovilaInfo[i][plSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
  49. }
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement