Advertisement
Day_Mito

Untitled

Aug 25th, 2015
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. #include <a_samp>
  2. #include <DOF2>
  3. #include <zcmd>
  4. #include <sscanf>
  5.  
  6. #define FILTERSCRIPT
  7.  
  8. new Float:ArrayCoords[][3] =
  9. {
  10. {140.17, 1366.07, 1083.65}, // Grande
  11. {2324.53, -1149.54, 1050.71}, // Grande
  12. {225.68, 1021.45, 1084.02}, // Grande
  13. {234.19, 1063.73, 1084.21}, // Grande
  14. {226.30, 1114.24, 1080.99}, // Grande
  15. {235.34, 1186.68, 1080.26}, // Medio
  16. {491.07, 1398.50, 1080.26}, // Medio
  17. {24.04, 1340.17, 1084.38}, // Medio
  18. {-283.44, 1470.93, 1084.38}, // Medio
  19. {-260.49, 1456.75, 1084.37}, // Medio
  20. {83.03, 1322.28, 1083.87}, // Medio
  21. {2317.89, -1026.76, 1050.22}, // Medio
  22. {2495.98, -1692.08, 1014.74}, // Medio
  23. {2807.48, -1174.76, 1025.57}, // Medio
  24. {2196.85, -1204.25, 1049.02}, // Medio
  25. {377.15, 1417.41, 1081.33}, // Medio
  26. {2270.38, -1210.35, 1047.56}, // Medio
  27. {446.99, 1397.07, 1084.30}, // Medio
  28. {387.22, 1471.70, 1080.19}, // Medio
  29. {22.88, 1403.33, 1084.44}, // Medio
  30. {2365.31, -1135.60, 1050.88}, // Medio
  31. {2237.59, -1081.64, 1049.02}, // Medio
  32. {295.04, 1472.26, 1080.26}, // Medio
  33. {261.12, 1284.30, 1080.26}, // Medio
  34. {221.92, 1140.20, 1082.61}, // Medio
  35. {-68.81, 1351.21, 1080.21}, // Medio
  36. {260.85, 1237.24, 1084.26}, // Medio
  37. {2468.84, -1698.24, 1013.51}, // Medio
  38. {223.20, 1287.08, 1082.14}, // Pequeno
  39. {2283.04, -1140.28, 1050.90}, // Pequeno
  40. {328.05, 1477.73, 1084.44}, // Pequeno
  41. {223.20, 1287.08, 1082.14}, // Pequeno
  42. {-42.59, 1405.47, 1084.43}, // Pequeno
  43. {446.90, 506.35, 1001.42}, // Pequeno // Veja se este esta bugado
  44. {299.78, 309.89, 1003.30}, // Pequeno
  45. {2308.77, -1212.94, 1049.02}, // Pequeno
  46. {2233.64, -1115.26, 1050.88}, // Pequeno
  47. {2218.40, -1076.18, 1050.48}, // Pequeno
  48. {266.50, 304.90, 999.15}, // Pequeno
  49. {243.72, 304.91, 999.15}, // Pequeno
  50. {343.81, 304.86, 999.15}, // Pequeno
  51. {2259.38, -1135.77, 1050.64} // Pequeno
  52. };
  53. new InterioresPos[] =
  54. {
  55. 5, // Grande
  56. 12, // Grande
  57. 7, // Grande
  58. 6, // Grande
  59. 5, // Grande
  60. 3, // Medio
  61. 2, // Medio
  62. 10, // Medio
  63. 15, // Medio
  64. 4, // Medio
  65. 9, // Medio
  66. 9, // Medio
  67. 3, // Medio
  68. 8, // Medio
  69. 6, // Medio
  70. 15, // Medio
  71. 10, // Medio
  72. 2, // Medio
  73. 15, // Medio
  74. 5, // Medio
  75. 8, // Medio
  76. 2, // Medio
  77. 15, // Medio
  78. 4, // Medio
  79. 4, // Medio
  80. 6, // Medio
  81. 9, // Medio
  82. 2, // Medio
  83. 1, // Pequeno
  84. 11, // Pequeno
  85. 15, // Pequeno
  86. 1, // Pequeno
  87. 8, // Pequeno
  88. 12, // Pequeno
  89. 4, // Pequeno
  90. 6, // Pequeno
  91. 5, // Pequeno
  92. 1, // Pequeno
  93. 2, // Pequeno
  94. 1, // Pequeno
  95. 6, // Pequeno
  96. 10 // Pequeno
  97. };
  98. new CasaEditando;
  99. new bool:FezEste[43][2];
  100. new bool:first;
  101. public OnFilterScriptInit()
  102. {
  103. print("Iniciado");
  104. return true;
  105. }
  106. CMD:spawn(playerid)
  107. {
  108. new Float:Pos[4], Int;
  109. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  110. GetPlayerFacingAngle(playerid, Pos[3]);
  111. Int = GetPlayerInterior(playerid);
  112. new posicao[100], key[10];
  113. format(posicao, 100, !"%f, %f, %f, %f, %d", Pos[0], Pos[1], Pos[2], Pos[3], Int);
  114. format(key, 10, !"%d", CasaEditando);
  115. DOF2::SetString(!"ArraySpawns.ini", key, posicao);
  116. DOF2::SaveFile();
  117. FezEste[CasaEditando][0] = true;
  118. SendClientMessage(playerid, -1, !"Feito");
  119. return true;
  120. }
  121.  
  122. CMD:descricao(playerid, params[])
  123. {
  124. new desc[45];
  125. if(sscanf(params, !"s[44]", desc)) return SendClientMessage(playerid, -1, !"USO: /descricao < descricao do interior>");
  126. new key[12];
  127. format(key, 10, !"%d", CasaEditando);
  128. DOF2::SetString(!"ArrayDescricao.ini", key, desc);
  129. DOF2::SaveFile();
  130. FezEste[CasaEditando][1] = true;
  131. SendClientMessage(playerid, -1, !"Feito");
  132. return true;
  133. }
  134. CMD:proximacasa(playerid)
  135. {
  136. if(!first)
  137. {
  138. SetPlayerPos(playerid, ArrayCoords[CasaEditando][0], ArrayCoords[CasaEditando][1], ArrayCoords[CasaEditando][2]);
  139. SetPlayerInterior(playerid, InterioresPos[CasaEditando]);
  140. return true;
  141. }
  142. firt = true;
  143. if(!FezEste[CasaEditando][0]) return SendClientMessage(playerid, -1, !"{FF0000}[ERRO]:{FFFFFF}Não adcionou o local de spawn ainda..");
  144. if(!FezEste[CasaEditando][1]) return SendClientMessage(playerid, -1, !"{FF0000}[ERRO]:{FFFFFF}Não adcionou a descricao ainda..");
  145. CasaEditando ++;
  146. if(CasaEditando == 33)
  147. {
  148. SendClientMessage(playerid, -1, !"Veja se este interior ta bugado... tava escrito algo no link que eu vi");
  149. }
  150. SetPlayerPos(playerid, ArrayCoords[CasaEditando][0], ArrayCoords[CasaEditando][1], ArrayCoords[CasaEditando][2]);
  151. SetPlayerInterior(playerid, InterioresPos[CasaEditando]);
  152. SendClientMessage(playerid, -1, !"Feito");
  153. return true;
  154. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement