Advertisement
Guest User

Untitled

a guest
Apr 14th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.21 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2015 Incognito
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16.  
  17. #include <a_samp>
  18.  
  19. // Definitions
  20.  
  21. #define STREAMER_TYPE_OBJECT (0)
  22. #define STREAMER_TYPE_PICKUP (1)
  23. #define STREAMER_TYPE_CP (2)
  24. #define STREAMER_TYPE_RACE_CP (3)
  25. #define STREAMER_TYPE_MAP_ICON (4)
  26. #define STREAMER_TYPE_3D_TEXT_LABEL (5)
  27. #define STREAMER_TYPE_AREA (6)
  28.  
  29. #define STREAMER_AREA_TYPE_CIRCLE (0)
  30. #define STREAMER_AREA_TYPE_CYLINDER (1)
  31. #define STREAMER_AREA_TYPE_SPHERE (2)
  32. #define STREAMER_AREA_TYPE_RECTANGLE (3)
  33. #define STREAMER_AREA_TYPE_CUBOID (4)
  34. #define STREAMER_AREA_TYPE_POLYGON (5)
  35.  
  36. #define STREAMER_OBJECT_TYPE_GLOBAL (0)
  37. #define STREAMER_OBJECT_TYPE_PLAYER (1)
  38. #define STREAMER_OBJECT_TYPE_DYNAMIC (2)
  39.  
  40. #define INVALID_STREAMER_ID (0)
  41.  
  42. #if !defined FLOAT_INFINITY
  43. #define FLOAT_INFINITY (Float:0x7F800000)
  44. #endif
  45.  
  46. #if !defined STREAMER_ENABLE_TAGS
  47. #define STREAMER_TAG_OBJECT
  48. #define STREAMER_TAG_PICKUP
  49. #define STREAMER_TAG_CP
  50. #define STREAMER_TAG_RACE_CP
  51. #define STREAMER_TAG_MAP_ICON
  52. #define STREAMER_TAG_AREA
  53.  
  54. #if !defined STREAMER_REMOVE_TEXT3D_TAG
  55. #if !defined STREAMER_USE_DYNAMIC_TEXT3D_TAG
  56. #define STREAMER_TAG_3D_TEXT_LABEL Text3D:
  57. #define STREAMER_ALL_TAGS {Text3D,_}:
  58. #else
  59. #define STREAMER_TAG_3D_TEXT_LABEL DynamicText3D:
  60. #define STREAMER_ALL_TAGS {DynamicText3D,_}:
  61. #endif
  62. #else
  63. #define STREAMER_TAG_3D_TEXT_LABEL
  64. #define STREAMER_ALL_TAGS
  65. #endif
  66. #else
  67. #define STREAMER_TAG_OBJECT DynamicObject:
  68. #define STREAMER_TAG_PICKUP DynamicPickup:
  69. #define STREAMER_TAG_CP DynamicCP:
  70. #define STREAMER_TAG_RACE_CP DynamicRaceCP:
  71. #define STREAMER_TAG_MAP_ICON DynamicMapIcon:
  72. #define STREAMER_TAG_3D_TEXT_LABEL DynamicText3D:
  73. #define STREAMER_TAG_AREA DynamicArea:
  74.  
  75. #define STREAMER_ALL_TAGS {DynamicObject,DynamicPickup,DynamicCP,DynamicRaceCP,DynamicMapIcon,DynamicText3D,DynamicArea,_}:
  76. #endif
  77.  
  78. // Include File Version
  79.  
  80. public Streamer_IncludeFileVersion = 0x277001;
  81.  
  82. #pragma unused Streamer_IncludeFileVersion
  83.  
  84. // Enumerator
  85.  
  86. enum
  87. {
  88. E_STREAMER_ATTACHED_OBJECT,
  89. E_STREAMER_ATTACHED_PLAYER,
  90. E_STREAMER_ATTACHED_VEHICLE,
  91. E_STREAMER_ATTACH_OFFSET_X,
  92. E_STREAMER_ATTACH_OFFSET_Y,
  93. E_STREAMER_ATTACH_OFFSET_Z,
  94. E_STREAMER_ATTACH_R_X,
  95. E_STREAMER_ATTACH_R_Y,
  96. E_STREAMER_ATTACH_R_Z,
  97. E_STREAMER_ATTACH_X,
  98. E_STREAMER_ATTACH_Y,
  99. E_STREAMER_ATTACH_Z,
  100. E_STREAMER_COLOR,
  101. E_STREAMER_DRAW_DISTANCE,
  102. E_STREAMER_EXTRA_ID,
  103. E_STREAMER_INTERIOR_ID,
  104. E_STREAMER_MAX_X,
  105. E_STREAMER_MAX_Y,
  106. E_STREAMER_MAX_Z,
  107. E_STREAMER_MIN_X,
  108. E_STREAMER_MIN_Y,
  109. E_STREAMER_MIN_Z,
  110. E_STREAMER_MODEL_ID,
  111. E_STREAMER_MOVE_R_X,
  112. E_STREAMER_MOVE_R_Y,
  113. E_STREAMER_MOVE_R_Z,
  114. E_STREAMER_MOVE_SPEED,
  115. E_STREAMER_MOVE_X,
  116. E_STREAMER_MOVE_Y,
  117. E_STREAMER_MOVE_Z,
  118. E_STREAMER_NEXT_X,
  119. E_STREAMER_NEXT_Y,
  120. E_STREAMER_NEXT_Z,
  121. E_STREAMER_PLAYER_ID,
  122. E_STREAMER_R_X,
  123. E_STREAMER_R_Y,
  124. E_STREAMER_R_Z,
  125. E_STREAMER_SIZE,
  126. E_STREAMER_STREAM_DISTANCE,
  127. E_STREAMER_STYLE,
  128. E_STREAMER_SYNC_ROTATION,
  129. E_STREAMER_TEST_LOS,
  130. E_STREAMER_TYPE,
  131. E_STREAMER_WORLD_ID,
  132. E_STREAMER_X,
  133. E_STREAMER_Y,
  134. E_STREAMER_Z
  135. }
  136.  
  137. // Natives (Settings)
  138.  
  139. native Streamer_GetTickRate();
  140. native Streamer_SetTickRate(rate);
  141. native Streamer_GetMaxItems(type);
  142. native Streamer_SetMaxItems(type, items);
  143. native Streamer_GetVisibleItems(type, playerid = -1);
  144. native Streamer_SetVisibleItems(type, items, playerid = -1);
  145. native Streamer_GetRadiusMultiplier(type, &Float:multiplier, playerid = -1);
  146. native Streamer_SetRadiusMultiplier(type, Float:multiplier, playerid = -1);
  147. native Streamer_GetCellDistance(&Float:distance);
  148. native Streamer_SetCellDistance(Float:distance);
  149. native Streamer_GetCellSize(&Float:size);
  150. native Streamer_SetCellSize(Float:size);
  151. native Streamer_ToggleErrorCallback(toggle);
  152. native Streamer_IsToggleErrorCallback();
  153.  
  154. // Natives (Updates)
  155.  
  156. native Streamer_ProcessActiveItems();
  157. native Streamer_ToggleIdleUpdate(playerid, toggle);
  158. native Streamer_IsToggleIdleUpdate(playerid);
  159. native Streamer_ToggleCameraUpdate(playerid, toggle);
  160. native Streamer_IsToggleCameraUpdate(playerid);
  161. native Streamer_ToggleItemUpdate(playerid, type, toggle);
  162. native Streamer_IsToggleItemUpdate(playerid, type);
  163. native Streamer_Update(playerid, type = -1);
  164. native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, type = -1);
  165.  
  166. // Natives (Data Manipulation)
  167.  
  168. native Streamer_GetFloatData(type, STREAMER_ALL_TAGS id, data, &Float:result);
  169. native Streamer_SetFloatData(type, STREAMER_ALL_TAGS id, data, Float:value);
  170. native Streamer_GetIntData(type, STREAMER_ALL_TAGS id, data);
  171. native Streamer_SetIntData(type, STREAMER_ALL_TAGS id, data, value);
  172. native Streamer_GetArrayData(type, STREAMER_ALL_TAGS id, data, dest[], maxdest = sizeof dest);
  173. native Streamer_SetArrayData(type, STREAMER_ALL_TAGS id, data, const src[], maxsrc = sizeof src);
  174. native Streamer_IsInArrayData(type, STREAMER_ALL_TAGS id, data, value);
  175. native Streamer_AppendArrayData(type, STREAMER_ALL_TAGS id, data, value);
  176. native Streamer_RemoveArrayData(type, STREAMER_ALL_TAGS id, data, value);
  177. native Streamer_GetUpperBound(type);
  178.  
  179. // Natives (Miscellaneous)
  180.  
  181. native Streamer_GetDistanceToItem(Float:x, Float:y, Float:z, type, STREAMER_ALL_TAGS id, &Float:distance, dimensions = 3);
  182. native Streamer_ToggleStaticItem(type, STREAMER_ALL_TAGS id, toggle);
  183. native Streamer_IsToggleStaticItem(type, STREAMER_ALL_TAGS id);
  184. native Streamer_GetItemInternalID(playerid, type, STREAMER_ALL_TAGS streamerid);
  185. native Streamer_GetItemStreamerID(playerid, type, STREAMER_ALL_TAGS internalid);
  186. native Streamer_IsItemVisible(playerid, type, STREAMER_ALL_TAGS id);
  187. native Streamer_DestroyAllVisibleItems(playerid, type, serverwide = 1);
  188. native Streamer_CountVisibleItems(playerid, type, serverwide = 1);
  189. native Streamer_DestroyAllItems(type, serverwide = 1);
  190. native Streamer_CountItems(type, serverwide = 1);
  191.  
  192. // Natives (Objects)
  193.  
  194. native STREAMER_TAG_OBJECT CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
  195. native DestroyDynamicObject(STREAMER_TAG_OBJECT objectid);
  196. native IsValidDynamicObject(STREAMER_TAG_OBJECT objectid);
  197. native SetDynamicObjectPos(STREAMER_TAG_OBJECT objectid, Float:x, Float:y, Float:z);
  198. native GetDynamicObjectPos(STREAMER_TAG_OBJECT objectid, &Float:x, &Float:y, &Float:z);
  199. native SetDynamicObjectRot(STREAMER_TAG_OBJECT objectid, Float:rx, Float:ry, Float:rz);
  200. native GetDynamicObjectRot(STREAMER_TAG_OBJECT objectid, &Float:rx, &Float:ry, &Float:rz);
  201. native SetDynamicObjectNoCameraCol(STREAMER_TAG_OBJECT objectid);
  202. native MoveDynamicObject(STREAMER_TAG_OBJECT objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);
  203. native StopDynamicObject(STREAMER_TAG_OBJECT objectid);
  204. native IsDynamicObjectMoving(STREAMER_TAG_OBJECT objectid);
  205. native AttachCameraToDynamicObject(playerid, STREAMER_TAG_OBJECT objectid);
  206. native AttachDynamicObjectToObject(STREAMER_TAG_OBJECT objectid, attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1);
  207. native AttachDynamicObjectToPlayer(STREAMER_TAG_OBJECT objectid, playerid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz);
  208. native AttachDynamicObjectToVehicle(STREAMER_TAG_OBJECT objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz);
  209. native EditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid);
  210. native IsDynamicObjectMaterialUsed(STREAMER_TAG_OBJECT objectid, materialindex);
  211. native GetDynamicObjectMaterial(STREAMER_TAG_OBJECT objectid, materialindex, &modelid, txdname[], texturename[], &materialcolor, maxtxdname = sizeof txdname, maxtexturename = sizeof texturename);
  212. native SetDynamicObjectMaterial(STREAMER_TAG_OBJECT objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0);
  213. native IsDynamicObjectMaterialTextUsed(STREAMER_TAG_OBJECT objectid, materialindex);
  214. native GetDynamicObjectMaterialText(STREAMER_TAG_OBJECT objectid, materialindex, text[], &materialsize, fontface[], &fontsize, &bold, &fontcolor, &backcolor, &textalignment, maxtext = sizeof text, maxfontface = sizeof fontface);
  215. native SetDynamicObjectMaterialText(STREAMER_TAG_OBJECT objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
  216.  
  217. // Natives (Pickups)
  218.  
  219. native STREAMER_TAG_PICKUP CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
  220. native DestroyDynamicPickup(STREAMER_TAG_PICKUP pickupid);
  221. native IsValidDynamicPickup(STREAMER_TAG_PICKUP pickupid);
  222.  
  223. // Natives (Checkpoints)
  224.  
  225. native STREAMER_TAG_CP CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
  226. native DestroyDynamicCP(STREAMER_TAG_CP checkpointid);
  227. native IsValidDynamicCP(STREAMER_TAG_CP checkpointid);
  228. native TogglePlayerDynamicCP(playerid, STREAMER_TAG_CP checkpointid, toggle);
  229. native TogglePlayerAllDynamicCPs(playerid, toggle);
  230. native IsPlayerInDynamicCP(playerid, STREAMER_TAG_CP checkpointid);
  231. native GetPlayerVisibleDynamicCP(playerid);
  232.  
  233. // Natives (Race Checkpoints)
  234.  
  235. native STREAMER_TAG_RACE_CP CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
  236. native DestroyDynamicRaceCP(STREAMER_TAG_RACE_CP checkpointid);
  237. native IsValidDynamicRaceCP(STREAMER_TAG_RACE_CP checkpointid);
  238. native TogglePlayerDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid, toggle);
  239. native TogglePlayerAllDynamicRaceCPs(playerid, toggle);
  240. native IsPlayerInDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid);
  241. native GetPlayerVisibleDynamicRaceCP(playerid);
  242.  
  243. // Natives (Map Icons)
  244.  
  245. native STREAMER_TAG_MAP_ICON CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);
  246. native DestroyDynamicMapIcon(STREAMER_TAG_MAP_ICON iconid);
  247. native IsValidDynamicMapIcon(STREAMER_TAG_MAP_ICON iconid);
  248.  
  249. // Natives (3D Text Labels)
  250.  
  251. native STREAMER_TAG_3D_TEXT_LABEL CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
  252. native DestroyDynamic3DTextLabel(STREAMER_TAG_3D_TEXT_LABEL id);
  253. native IsValidDynamic3DTextLabel(STREAMER_TAG_3D_TEXT_LABEL id);
  254. native GetDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL id, text[], maxtext = sizeof text);
  255. native UpdateDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL id, color, const text[]);
  256.  
  257. // Natives (Areas)
  258.  
  259. native STREAMER_TAG_AREA CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
  260. native STREAMER_TAG_AREA CreateDynamicCylinder(Float:x, Float:y, Float:minz, Float:maxz, Float:size, worldid = -1, interiorid = -1, playerid = -1);
  261. native STREAMER_TAG_AREA CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
  262. native STREAMER_TAG_AREA CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
  263. native STREAMER_TAG_AREA CreateDynamicCuboid(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
  264. native STREAMER_TAG_AREA CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
  265. native STREAMER_TAG_AREA CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);
  266. native DestroyDynamicArea(STREAMER_TAG_AREA areaid);
  267. native IsValidDynamicArea(STREAMER_TAG_AREA areaid);
  268. native GetDynamicPolygonPoints(STREAMER_TAG_AREA areaid, Float:points[], maxpoints = sizeof points);
  269. native GetDynamicPolygonNumberPoints(STREAMER_TAG_AREA areaid);
  270. native TogglePlayerDynamicArea(playerid, STREAMER_TAG_AREA areaid, toggle);
  271. native TogglePlayerAllDynamicAreas(playerid, toggle);
  272. native IsPlayerInDynamicArea(playerid, STREAMER_TAG_AREA areaid, recheck = 0);
  273. native IsPlayerInAnyDynamicArea(playerid, recheck = 0);
  274. native IsAnyPlayerInDynamicArea(STREAMER_TAG_AREA areaid, recheck = 0);
  275. native IsAnyPlayerInAnyDynamicArea(recheck = 0);
  276. native GetPlayerDynamicAreas(playerid, STREAMER_TAG_AREA areas[], maxareas = sizeof areas);
  277. native GetPlayerNumberDynamicAreas(playerid);
  278. native IsPointInDynamicArea(STREAMER_TAG_AREA areaid, Float:x, Float:y, Float:z);
  279. native IsPointInAnyDynamicArea(Float:x, Float:y, Float:z);
  280. native GetDynamicAreasForPoint(Float:x, Float:y, Float:z, STREAMER_TAG_AREA areas[], maxareas = sizeof areas);
  281. native GetNumberDynamicAreasForPoint(Float:x, Float:y, Float:z);
  282. native AttachDynamicAreaToObject(STREAMER_TAG_AREA areaid, STREAMER_ALL_TAGS objectid, type = STREAMER_OBJECT_TYPE_DYNAMIC, playerid = INVALID_PLAYER_ID);
  283. native AttachDynamicAreaToPlayer(STREAMER_TAG_AREA areaid, playerid);
  284. native AttachDynamicAreaToVehicle(STREAMER_TAG_AREA areaid, vehicleid);
  285.  
  286. // Natives (Extended)
  287.  
  288. native STREAMER_TAG_OBJECT CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 0.0, Float:streamdistance = 200.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  289. native STREAMER_TAG_PICKUP CreateDynamicPickupEx(modelid, type, Float:x, Float:y, Float:z, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  290. native STREAMER_TAG_CP CreateDynamicCPEx(Float:x, Float:y, Float:z, Float:size, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  291. native STREAMER_TAG_RACE_CP CreateDynamicRaceCPEx(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  292. native STREAMER_TAG_MAP_ICON CreateDynamicMapIconEx(Float:x, Float:y, Float:z, type, color, style = MAPICON_LOCAL, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  293. native STREAMER_TAG_3D_TEXT_LABEL CreateDynamic3DTextLabelEx(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, Float:streamdistance = 100.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  294. native STREAMER_TAG_AREA CreateDynamicCircleEx(Float:x, Float:y, Float:size, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  295. native STREAMER_TAG_AREA CreateDynamicCylinderEx(Float:x, Float:y, Float:minz, Float:maxz, Float:size, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  296. native STREAMER_TAG_AREA CreateDynamicSphereEx(Float:x, Float:y, Float:z, Float:size, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  297. native STREAMER_TAG_AREA CreateDynamicRectangleEx(Float:minx, Float:miny, Float:maxx, Float:maxy, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  298. native STREAMER_TAG_AREA CreateDynamicCuboidEx(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  299. native STREAMER_TAG_AREA CreateDynamicCubeEx(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  300. native STREAMER_TAG_AREA CreateDynamicPolygonEx(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
  301.  
  302. // Natives (Deprecated)
  303.  
  304. native Streamer_TickRate(rate);
  305. native Streamer_MaxItems(type, items);
  306. native Streamer_VisibleItems(type, items, playerid = -1);
  307. native Streamer_CellDistance(Float:distance);
  308. native Streamer_CellSize(Float:size);
  309. native Streamer_CallbackHook(callback, {Float,_}:...);
  310.  
  311. native DestroyAllDynamicObjects();
  312. native CountDynamicObjects();
  313. native DestroyAllDynamicPickups();
  314. native CountDynamicPickups();
  315. native DestroyAllDynamicCPs();
  316. native CountDynamicCPs();
  317. native DestroyAllDynamicRaceCPs();
  318. native CountDynamicRaceCPs();
  319. native DestroyAllDynamicMapIcons();
  320. native CountDynamicMapIcons();
  321. native DestroyAllDynamic3DTextLabels();
  322. native CountDynamic3DTextLabels();
  323. native DestroyAllDynamicAreas();
  324. native CountDynamicAreas();
  325.  
  326. // Callbacks
  327.  
  328. forward OnDynamicObjectMoved(STREAMER_TAG_OBJECT objectid);
  329. forward OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);
  330. forward OnPlayerSelectDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, modelid, Float:x, Float:y, Float:z);
  331. forward OnPlayerShootDynamicObject(playerid, weaponid, STREAMER_TAG_OBJECT objectid, Float:x, Float:y, Float:z);
  332. forward OnPlayerPickUpDynamicPickup(playerid, STREAMER_TAG_PICKUP pickupid);
  333. forward OnPlayerEnterDynamicCP(playerid, STREAMER_TAG_CP checkpointid);
  334. forward OnPlayerLeaveDynamicCP(playerid, STREAMER_TAG_CP checkpointid);
  335. forward OnPlayerEnterDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid);
  336. forward OnPlayerLeaveDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid);
  337. forward OnPlayerEnterDynamicArea(playerid, STREAMER_TAG_AREA areaid);
  338. forward OnPlayerLeaveDynamicArea(playerid, STREAMER_TAG_AREA areaid);
  339. forward Streamer_OnPluginError(error[]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement