Guest User

Npcs Filterscript Bug -.-

a guest
Apr 13th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. enum OInfo
  4. {
  5. OB_id,
  6. Float:OB_X,
  7. Float:OB_Y,
  8. Float:OB_Z,
  9. Float:OB_rX,
  10. Float:OB_rY,
  11. Float:OB_rZ
  12. //Float:OB_DrwDis,
  13. //Float:OB_active
  14. }
  15.  
  16. new ObjectInfo[][OInfo] = {
  17. {969,266.314331,80.078887,1000.018554,0.000000,0.000000,90.056121},//LSJailDoor
  18. {969,266.287902,88.568840,999.785827,0.000000,0.000000,-89.943878},//LSJailDoor
  19. {969,266.310089,80.115180,999.785827,0.000000,0.000000,-89.943878},//LSJailDoor
  20. {969,191.583557,177.063446,1001.750976,0.000000,0.000000,0.000000},// LSJail_Door
  21. {969,200.213989,177.081176,1001.729187,0.000000,0.000000,-180.000000},// LSJail_Door
  22. {969,200.200836,160.292282,1001.729187,0.000000,0.000000,-180.000000},// LSJail_Door
  23. {969,196.640533,160.281936,1001.729187,0.000000,0.000000,-180.000000},// LSJail_Door
  24. {1703,262.950073,76.721015,1000.037292,0.000000,1.687136,1172.039062},//LSPDcouch
  25. {1703,262.952056,81.266120,1000.037292,0.000000,1.687136,1172.039062},//LSPDcouch
  26. {1703,262.981506,85.734283,1000.037292,0.000000,1.687136,1172.039062},//LSPDcouch
  27. {1703,214.238723,108.759788,998.017089,0.000000,0.000000,91.000000},// SFPDcouch
  28. {1703,218.304428,108.759788,998.017089,0.000000,0.000000,91.000000},// SFPDcouch
  29. {1703,222.289077,108.779548,998.017089,0.000000,0.000000,91.000000},// SFPDcouch
  30. {1703,226.175231,108.779548,998.017089,0.000000,0.000000,91.000000},// SFPDcouch
  31. {1703,214.197525,118.918617,998.017089,0.000000,0.000000,91.000000},// SFPDcouch
  32. {969,2145.441406,1621.066162,999.965454,0.000000,0.000000,-180.000000},// Casino Gate
  33. {3361,-1305.966918,480.911987,13.662816,-1.000000,-1.578849,-92.421875},// stair at easter basin
  34. {3361,-1306.284057,475.116790,10.091542,-1.000000,-1.578849,-92.421875},// stair at easter basin
  35. {3361,-1306.510986,469.254455,6.382112,-1.000000,-1.578849,-92.421875}// stair at easter basin
  36. };
  37.  
  38. public OnFilterScriptInit()
  39. {
  40. //NPC = Non-Playing Characters
  41. ConnectNPC("[Bot]Robert","npcidle");
  42. ConnectNPC("[Bot]Peter","npcidle");
  43. ConnectNPC("[Bot]Harry","npcidle");
  44. ConnectNPC("[Bot]Jack","npcidle");
  45. ConnectNPC("[Bot]Aaron","npcidle");
  46. ConnectNPC("[Bot]Joshua","npcidle");
  47. ConnectNPC("[Bot]Trevor","train_lv");
  48. ConnectNPC("[Bot]Gary","train_ls");
  49. ConnectNPC("[Bot]Paul","train_sf");
  50. ConnectNPC("[Bot]Qantas","at400_lv");
  51. ConnectNPC("[Bot]JetStar","at400_sf");
  52. ConnectNPC("[Bot]Virgin","at400_ls");
  53. ConnectNPC("[Bot]TramDriver","tram");
  54. ConnectNPC("[Bot]Rick","npcidle");//SF
  55. ConnectNPC("[Bot]Charlie","npcidle");//LV
  56. ConnectNPC("[Bot]Tom","npcidle");//LS
  57. ConnectNPC("[Bot]Buddy","npcidle");
  58. return 1;
  59. }
  60.  
  61.  
  62. public OnFilterScriptExit()
  63. {
  64.  
  65. return 1;
  66. }
  67.  
  68.  
  69. public OnGameModeInit()
  70. {
  71. for(new i = 0; i < sizeof(ObjectInfo); i++)
  72. {
  73. CreateObject(ObjectInfo[i][OB_id],ObjectInfo[i][OB_X],ObjectInfo[i][OB_Y],ObjectInfo[i][OB_Z],ObjectInfo[i][OB_rX],ObjectInfo[i][OB_rY],ObjectInfo[i][OB_rZ],40.0);
  74. }
  75. return 1;
  76. }
  77.  
  78. public OnGameModeExit()
  79. {
  80. for(new o = 0; o < sizeof(ObjectInfo); o++)
  81. {
  82. DestroyObject(o);
  83. }
  84. return 1;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment