introspect-natives.inc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. #include <a_samp>
  2. #if !defined HTTP
  3. #include <a_http>
  4. #endif
  5. forward _@_introspect_funcinc();
  6. public _@_introspect_funcinc() {
  7. new c, bool:b, Float:f, a[1];
  8. AddMenuItem(Menu:c, c, a);
  9. AddPlayerClass(c, f, f, f, f, c, c, c, c, c, c);
  10. AddPlayerClassEx(c, c, f, f, f, f, c, c, c, c, c, c);
  11. AddStaticPickup(c, c, f, f, f, c);
  12. AddStaticVehicle(c, f, f, f, f, c, c);
  13. AddStaticVehicleEx(c, f, f, f, f, c, c, c);
  14. AddVehicleComponent(c, c);
  15. AllowAdminTeleport(c);
  16. AllowInteriorWeapons(c);
  17. AllowPlayerTeleport(c, c);
  18. ApplyAnimation(c, a, a, f, c, c, c, c, c, c);
  19. Attach3DTextLabelToPlayer(Text3D:c, c, f, f, f);
  20. Attach3DTextLabelToVehicle(Text3D:c, c, f, f, f);
  21. AttachCameraToObject(c, c);
  22. AttachCameraToPlayerObject(c, c);
  23. AttachObjectToObject(c, c, f, f, f, f, f, f, c);
  24. AttachObjectToPlayer(c, c, f, f, f, f, f, f);
  25. AttachObjectToVehicle(c, c, f, f, f, f, f, f);
  26. AttachPlayerObjectToPlayer(c, c, c, f, f, f, f, f, f);
  27. AttachPlayerObjectToVehicle(c, c, c, f, f, f, f, f, f);
  28. AttachTrailerToVehicle(c, c);
  29. Ban(c);
  30. BanEx(c, a);
  31. ispacked(a);
  32. strdel(a, c, c);
  33. strins(a, a, c, c);
  34. fclose(File:c);
  35. fputchar(File:c, c, b);
  36. fremove(a);
  37. CallLocalFunction(a, a);
  38. CallRemoteFunction(a, a);
  39. CancelEdit(c);
  40. CancelSelectTextDraw(c);
  41. ChangeVehicleColor(c, c, c);
  42. ChangeVehiclePaintjob(c, c);
  43. clamp(c, c, c);
  44. ClearAnimations(c, c);
  45. ConnectNPC(a, a);
  46. CreateExplosion(f, f, f, c, f);
  47. CreateObject(c, f, f, f, f, f, f, f);
  48. CreatePickup(c, c, f, f, f, c);
  49. CreatePlayerObject(c, c, f, f, f, f, f, f, f);
  50. CreateVehicle(c, f, f, f, f, c, c, c);
  51. db_open(a);
  52. db_query(DB:c, a);
  53. db_close(DB:c);
  54. db_field_name(DBResult:c, c, a, c);
  55. db_free_result(DBResult:c);
  56. db_get_field(DBResult:c, c, a, c);
  57. db_get_field_assoc(DBResult:c, a, a, c);
  58. db_next_row(DBResult:c);
  59. db_num_fields(DBResult:c);
  60. db_num_rows(DBResult:c);
  61. Delete3DTextLabel(Text3D:c);
  62. DeletePlayer3DTextLabel(c, PlayerText3D:c);
  63. deleteproperty(c, a, c);
  64. DeletePVar(c, a);
  65. DestroyMenu(Menu:c);
  66. DestroyObject(c);
  67. DestroyPickup(c);
  68. DestroyPlayerObject(c, c);
  69. DestroyVehicle(c);
  70. DetachTrailerFromVehicle(c);
  71. DisableInteriorEnterExits();
  72. DisableMenu(Menu:c);
  73. DisableMenuRow(Menu:c, c);
  74. DisableNameTagLOS();
  75. DisablePlayerCheckpoint(c);
  76. DisablePlayerRaceCheckpoint(c);
  77. EditAttachedObject(c, c);
  78. EditObject(c, c);
  79. EditPlayerObject(c, c);
  80. EnableStuntBonusForAll(c);
  81. EnableStuntBonusForPlayer(c, c);
  82. EnableTirePopping(c);
  83. EnableVehicleFriendlyFire();
  84. EnableZoneNames(c);
  85. existproperty(c, a, c);
  86. fblockread(File:c, a, c);
  87. fblockwrite(File:c, a, c);
  88. fexist(a);
  89. fgetchar(File:c, c, b);
  90. fopen(a, filemode:c);
  91. ftemp();
  92. flength(File:c);
  93. acos(f);
  94. asin(f);
  95. atan(f);
  96. atan2(f, f);
  97. float(c);
  98. floatabs(f);
  99. floatadd(f, f);
  100. floatcos(f, anglemode:c);
  101. floatdiv(f, f);
  102. floatfract(f);
  103. floatlog(f, f);
  104. floatmul(f, f);
  105. floatpower(f, f);
  106. floatsin(f, anglemode:c);
  107. floatsqroot(f);
  108. floatstr(a);
  109. floatsub(f, f);
  110. floattan(f, anglemode:c);
  111. GetPlayerDistanceFromPoint(c, f, f, f);
  112. GetPVarFloat(c, a);
  113. GetVehicleDistanceFromPoint(c, f, f, f);
  114. floatcmp(f, f);
  115. floatround(f, floatround_method:c);
  116. ForceClassSelection(c);
  117. format(a, c, a);
  118. fread(File:c, a, c, b);
  119. fseek(File:c, c, seek_whence:c);
  120. funcidx(a);
  121. fwrite(File:c, a);
  122. GameModeExit();
  123. GameTextForAll(a, c, c);
  124. GameTextForPlayer(c, a, c, c);
  125. GangZoneCreate(f, f, f, f);
  126. GangZoneDestroy(c);
  127. GangZoneFlashForAll(c, c);
  128. GangZoneFlashForPlayer(c, c, c);
  129. GangZoneHideForAll(c);
  130. GangZoneHideForPlayer(c, c);
  131. GangZoneShowForAll(c, c);
  132. GangZoneShowForPlayer(c, c, c);
  133. GangZoneStopFlashForAll(c);
  134. GangZoneStopFlashForPlayer(c, c);
  135. GetAnimationName(c, a, c, a, c);
  136. getarg(c, c);
  137. getdate(c, c, c);
  138. GetMaxPlayers();
  139. GetNetworkStats(a, c);
  140. GetObjectPos(c, f, f, f);
  141. GetObjectRot(c, f, f, f);
  142. GetPlayerAmmo(c);
  143. GetPlayerAnimationIndex(c);
  144. GetPlayerArmour(c, f);
  145. GetPlayerCameraFrontVector(c, f, f, f);
  146. GetPlayerCameraMode(c);
  147. GetPlayerCameraPos(c, f, f, f);
  148. GetPlayerColor(c);
  149. GetPlayerDrunkLevel(c);
  150. GetPlayerFacingAngle(c, f);
  151. GetPlayerFacingAngle(c, f);
  152. GetPlayerFightingStyle(c);
  153. GetPlayerHealth(c, f);
  154. GetPlayerInterior(c);
  155. GetPlayerIp(c, a, c);
  156. GetPlayerKeys(c, c, c, c);
  157. GetPlayerMoney(c);
  158. GetPlayerName(c, a, c);
  159. GetPlayerNetworkStats(c, a, c);
  160. GetPlayerObjectPos(c, c, f, f, f);
  161. GetPlayerObjectRot(c, c, f, f, f);
  162. GetPlayerPing(c);
  163. GetPlayerPos(c, f, f, f);
  164. GetPlayerScore(c);
  165. GetPlayerSkin(c);
  166. GetPlayerSpecialAction(c);
  167. GetPlayerState(c);
  168. GetPlayerSurfingObjectID(c);
  169. GetPlayerSurfingVehicleID(c);
  170. GetPlayerTargetPlayer(c);
  171. GetPlayerTeam(c);
  172. GetPlayerTime(c, c, c);
  173. GetPlayerVehicleID(c);
  174. GetPlayerVehicleSeat(c);
  175. GetPlayerVelocity(c, f, f, f);
  176. GetPlayerVersion(c, a, c);
  177. GetPlayerVirtualWorld(c);
  178. GetPlayerWantedLevel(c);
  179. GetPlayerWeapon(c);
  180. GetPlayerWeaponData(c, c, c, c);
  181. GetPlayerWeaponState(c);
  182. getproperty(c, a, c, a);
  183. GetPVarInt(c, a);
  184. GetPVarNameAtIndex(c, c, a, c);
  185. GetPVarString(c, a, a, c);
  186. GetPVarsUpperIndex(c);
  187. GetPVarType(c, a);
  188. GetServerVarAsBool(a);
  189. GetServerVarAsInt(a);
  190. GetServerVarAsString(a, a, c);
  191. GetTickCount();
  192. gettime(c, c, c);
  193. GetVehicleComponentInSlot(c, c);
  194. GetVehicleComponentType(c);
  195. GetVehicleDamageStatus(c, c, c, c, c);
  196. GetVehicleHealth(c, f);
  197. GetVehicleModel(c);
  198. GetVehicleModelInfo(c, c, f, f, f);
  199. GetVehicleParamsEx(c, c, c, c, c, c, c, c);
  200. GetVehiclePos(c, f, f, f);
  201. GetVehicleRotationQuat(c, f, f, f, f);
  202. GetVehicleTrailer(c);
  203. GetVehicleVelocity(c, f, f, f);
  204. GetVehicleVirtualWorld(c);
  205. GetVehicleZAngle(c, f);
  206. GetWeaponName(c, a, c);
  207. GivePlayerMoney(c, c);
  208. GivePlayerWeapon(c, c, c);
  209. heapspace();
  210. HideMenuForPlayer(Menu:c, c);
  211. HTTP(c, c, a, a, a);
  212. InterpolateCameraLookAt(c, f, f, f, f, f, f, c, c);
  213. InterpolateCameraPos(c, f, f, f, f, f, f, c, c);
  214. IsObjectMoving(c);
  215. IsPlayerAdmin(c);
  216. IsPlayerAttachedObjectSlotUsed(c, c);
  217. IsPlayerConnected(c);
  218. IsPlayerInAnyVehicle(c);
  219. IsPlayerInCheckpoint(c);
  220. IsPlayerInRaceCheckpoint(c);
  221. IsPlayerInRangeOfPoint(c, f, f, f, f);
  222. IsPlayerInRangeOfPoint(c, f, f, f, f);
  223. IsPlayerInVehicle(c, c);
  224. IsPlayerNPC(c);
  225. IsPlayerObjectMoving(c, c);
  226. IsTrailerAttachedToVehicle(c);
  227. IsValidMenu(Menu:c);
  228. IsValidObject(c);
  229. IsValidPlayerObject(c, c);
  230. IsVehicleStreamedIn(c, c);
  231. Kick(c);
  232. KillTimer(c);
  233. LimitGlobalChatRadius(f);
  234. LimitPlayerMarkerRadius(f);
  235. LinkVehicleToInterior(c, c);
  236. ManualVehicleEngineAndLights();
  237. max(c, c);
  238. memcpy(a, a, c, c, c);
  239. CreateMenu(a, c, f, f, f, f);
  240. GetPlayerMenu(c);
  241. min(c, c);
  242. MoveObject(c, f, f, f, f, f, f, f);
  243. MovePlayerObject(c, c, f, f, f, f, f, f, f);
  244. numargs();
  245. PlayAudioStreamForPlayer(c, a, f, f, f, f, c);
  246. PlayCrimeReportForPlayer(c, c, c);
  247. PlayerPlaySound(c, c, f, f, f);
  248. PlayerSpectatePlayer(c, c, c);
  249. PlayerSpectateVehicle(c, c, c);
  250. CreatePlayer3DTextLabel(c, a, c, f, f, f, f, c, c, c);
  251. CreatePlayerTextDraw(c, f, f, a);
  252. PlayerTextDrawAlignment(c, PlayerText:c, c);
  253. PlayerTextDrawBackgroundColor(c, PlayerText:c, c);
  254. PlayerTextDrawBoxColor(c, PlayerText:c, c);
  255. PlayerTextDrawColor(c, PlayerText:c, c);
  256. PlayerTextDrawDestroy(c, PlayerText:c);
  257. PlayerTextDrawFont(c, PlayerText:c, c);
  258. PlayerTextDrawHide(c, PlayerText:c);
  259. PlayerTextDrawLetterSize(c, PlayerText:c, f, f);
  260. PlayerTextDrawSetOutline(c, PlayerText:c, c);
  261. PlayerTextDrawSetPreviewModel(c, PlayerText:c, c);
  262. PlayerTextDrawSetPreviewRot(c, PlayerText:c, f, f, f, f);
  263. PlayerTextDrawSetPreviewVehCol(c, PlayerText:c, c, c);
  264. PlayerTextDrawSetProportional(c, PlayerText:c, c);
  265. PlayerTextDrawSetSelectable(c, PlayerText:c, c);
  266. PlayerTextDrawSetShadow(c, PlayerText:c, c);
  267. PlayerTextDrawSetString(c, PlayerText:c, a);
  268. PlayerTextDrawShow(c, PlayerText:c);
  269. PlayerTextDrawTextSize(c, PlayerText:c, f, f);
  270. PlayerTextDrawUseBox(c, PlayerText:c, c);
  271. print(a);
  272. printf(a);
  273. PutPlayerInVehicle(c, c, c);
  274. random(c);
  275. RemoveBuildingForPlayer(c, c, f, f, f, f);
  276. RemovePlayerAttachedObject(c, c);
  277. RemovePlayerFromVehicle(c);
  278. RemovePlayerMapIcon(c, c);
  279. RemoveVehicleComponent(c, c);
  280. RepairVehicle(c);
  281. ResetPlayerMoney(c);
  282. ResetPlayerWeapons(c);
  283. SelectObject(c);
  284. SelectTextDraw(c, c);
  285. SendClientMessage(c, c, a);
  286. SendClientMessageToAll(c, a);
  287. SendDeathMessage(c, c, c);
  288. SendPlayerMessageToAll(c, a);
  289. SendPlayerMessageToPlayer(c, c, a);
  290. SendRconCommand(a);
  291. setarg(c, c, c);
  292. SetCameraBehindPlayer(c);
  293. SetDeathDropAmount(c);
  294. SetGameModeText(a);
  295. SetGravity(f);
  296. SetMenuColumnHeader(Menu:c, c, a);
  297. SetNameTagDrawDistance(f);
  298. SetObjectMaterial(c, c, c, a, a, c);
  299. SetObjectMaterialText(c, a, c, c, a, c, c, c, c, c);
  300. SetObjectPos(c, f, f, f);
  301. SetObjectRot(c, f, f, f);
  302. SetPlayerAmmo(c, c, c);
  303. SetPlayerArmedWeapon(c, c);
  304. SetPlayerArmour(c, f);
  305. SetPlayerAttachedObject(c, c, c, c, f, f, f, f, f, f, f, f, f, c, c);
  306. SetPlayerCameraLookAt(c, f, f, f, c);
  307. SetPlayerCameraPos(c, f, f, f);
  308. SetPlayerChatBubble(c, a, c, f, c);
  309. SetPlayerCheckpoint(c, f, f, f, f);
  310. SetPlayerColor(c, c);
  311. SetPlayerDrunkLevel(c, c);
  312. SetPlayerFacingAngle(c, f);
  313. SetPlayerFightingStyle(c, c);
  314. SetPlayerHealth(c, f);
  315. SetPlayerInterior(c, c);
  316. SetPlayerMapIcon(c, c, f, f, f, c, c, c);
  317. SetPlayerMarkerForPlayer(c, c, c);
  318. SetPlayerName(c, a);
  319. SetPlayerObjectMaterial(c, c, c, c, a, a, c);
  320. SetPlayerObjectMaterialText(c, c, a, c, c, a, c, c, c, c, c);
  321. SetPlayerObjectPos(c, c, f, f, f);
  322. SetPlayerObjectRot(c, c, f, f, f);
  323. SetPlayerPos(c, f, f, f);
  324. SetPlayerPosFindZ(c, f, f, f);
  325. SetPlayerRaceCheckpoint(c, c, f, f, f, f, f, f, f);
  326. SetPlayerScore(c, c);
  327. SetPlayerShopName(c, a);
  328. SetPlayerSkillLevel(c, c, c);
  329. SetPlayerSkin(c, c);
  330. SetPlayerSpecialAction(c, c);
  331. SetPlayerTeam(c, c);
  332. SetPlayerTime(c, c, c);
  333. SetPlayerVelocity(c, f, f, f);
  334. SetPlayerVirtualWorld(c, c);
  335. SetPlayerWantedLevel(c, c);
  336. SetPlayerWeather(c, c);
  337. SetPlayerWorldBounds(c, f, f, f, f);
  338. setproperty(c, a, c, a);
  339. SetPVarFloat(c, a, f);
  340. SetPVarInt(c, a, c);
  341. SetPVarString(c, a, a);
  342. SetSpawnInfo(c, c, c, f, f, f, f, c, c, c, c, c, c);
  343. SetTeamCount(c);
  344. SetTimer(a, c, c);
  345. SetTimerEx(a, c, c, a);
  346. SetVehicleAngularVelocity(c, f, f, f);
  347. SetVehicleHealth(c, f);
  348. SetVehicleNumberPlate(c, a);
  349. SetVehicleParamsEx(c, c, c, c, c, c, c, c);
  350. SetVehicleParamsForPlayer(c, c, c, c);
  351. SetVehiclePos(c, f, f, f);
  352. SetVehicleToRespawn(c);
  353. SetVehicleVelocity(c, f, f, f);
  354. SetVehicleVirtualWorld(c, c);
  355. SetVehicleZAngle(c, f);
  356. SetWeather(c);
  357. SetWorldTime(c);
  358. ShowMenuForPlayer(Menu:c, c);
  359. ShowNameTags(c);
  360. ShowPlayerDialog(c, c, c, a, a, a, a);
  361. ShowPlayerMarkers(c);
  362. ShowPlayerNameTagForPlayer(c, c, c);
  363. SpawnPlayer(c);
  364. StartRecordingPlayerData(c, c, a);
  365. StopAudioStreamForPlayer(c);
  366. StopObject(c);
  367. StopPlayerObject(c, c);
  368. StopRecordingPlayerData(c);
  369. strcat(a, a, c);
  370. strcmp(a, a, b, c);
  371. strfind(a, a, b, c);
  372. strlen(a);
  373. strmid(a, a, c, c, c);
  374. strpack(a, a, c);
  375. strunpack(a, a, c);
  376. strval(a);
  377. swapchars(c);
  378. Create3DTextLabel(a, c, f, f, f, f, c, c);
  379. TextDrawCreate(f, f, a);
  380. TextDrawAlignment(Text:c, c);
  381. TextDrawBackgroundColor(Text:c, c);
  382. TextDrawBoxColor(Text:c, c);
  383. TextDrawColor(Text:c, c);
  384. TextDrawDestroy(Text:c);
  385. TextDrawFont(Text:c, c);
  386. TextDrawHideForAll(Text:c);
  387. TextDrawHideForPlayer(c, Text:c);
  388. TextDrawLetterSize(Text:c, f, f);
  389. TextDrawSetOutline(Text:c, c);
  390. TextDrawSetPreviewModel(Text:c, c);
  391. TextDrawSetPreviewRot(Text:c, f, f, f, f);
  392. TextDrawSetPreviewVehCol(Text:c, c, c);
  393. TextDrawSetProportional(Text:c, c);
  394. TextDrawSetSelectable(Text:c, c);
  395. TextDrawSetShadow(Text:c, c);
  396. TextDrawSetString(Text:c, a);
  397. TextDrawShowForAll(Text:c);
  398. TextDrawShowForPlayer(c, Text:c);
  399. TextDrawTextSize(Text:c, f, f);
  400. TextDrawUseBox(Text:c, c);
  401. tickcount(c);
  402. TogglePlayerClock(c, c);
  403. TogglePlayerControllable(c, c);
  404. TogglePlayerSpectating(c, c);
  405. tolower(c);
  406. toupper(c);
  407. Update3DTextLabelText(Text3D:c, c, a);
  408. UpdatePlayer3DTextLabelText(c, PlayerText3D:c, c, a);
  409. UpdateVehicleDamageStatus(c, c, c, c, c);
  410. UsePlayerPedAnims();
  411. uudecode(a, a, c);
  412. uuencode(a, a, c, c);
  413. valstr(a, c, b);
  414. }