Advertisement
Y_Less

YSI.inc

Feb 25th, 2012
5,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 28.50 KB | None | 0 0
  1. /*----------------------------------------------------------------------------*\
  2.                     =======================================
  3.                       YSI - YSI Server Includes functions
  4.                     =======================================
  5. Description:
  6.     Lists all the functions available in YSI for PAWNO.
  7. Legal:
  8.     Version: MPL 1.1
  9.    
  10.     The contents of this file are subject to the Mozilla Public License Version
  11.     1.1 (the "License"); you may not use this file except in compliance with
  12.     the License. You may obtain a copy of the License at
  13.     http://www.mozilla.org/MPL/
  14.    
  15.     Software distributed under the License is distributed on an "AS IS" basis,
  16.     WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  17.     for the specific language governing rights and limitations under the
  18.     License.
  19.    
  20.     The Original Code is the YSI group include.
  21.    
  22.     The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  23.     Portions created by the Initial Developer are Copyright (C) 2011
  24.     the Initial Developer. All Rights Reserved.
  25.    
  26.     Contributors:
  27.         ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  28.    
  29.     Thanks:
  30.         JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  31.         ZeeX - Very productive conversations.
  32.         koolk - IsPlayerinAreaEx code.
  33.         TheAlpha - Danish translation.
  34.         breadfish - German translation.
  35.         Fireburn - Dutch translation.
  36.         yom - French translation.
  37.         50p - Polish translation.
  38.         Zamaroht - Spanish translation.
  39.         Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  40.             for me to strive to better.
  41.         Pixels^ - Running XScripters where the idea was born.
  42.         Matite - Pestering me to release it and using it.
  43.    
  44.     Very special thanks to:
  45.         Thiadmer - PAWN, whose limits continue to amaze me!
  46.         Kye/Kalcor - SA:MP.
  47.         SA:MP Team past, present and future - SA:MP.
  48.    
  49. Version:
  50.     1.0
  51. Changelog:
  52.     25/02/12:
  53.         First version
  54. \*----------------------------------------------------------------------------*/
  55.  
  56. #include <YSI\internal\y_version>
  57.  
  58. /*
  59.  
  60. native
  61. native __y_als__();
  62. native
  63. native
  64. native
  65.  
  66. */
  67.  
  68. // CAN'T include by default.
  69. //#include <YSI\y_als>
  70.  
  71. /*
  72.  
  73. native
  74. native __y_amx__();
  75. native
  76. native
  77. native AMX_GetBaseCount(E_AMX_TABLE:table, &base, &count)
  78. native AMX_GetGlobalAddress(...);
  79. native AMX_Read(addr)
  80. native AMX_Write(addr, value)
  81. native AMX_ReadString(addr, str[], len = sizeof (str))
  82. native AMX_WriteString(addr, const str[], len = sizeof (str))
  83. native AMX_ReadArray(addr, dest[], len = sizeof (dest))
  84. native AMX_WriteArray(addr, const src[], len = sizeof (src))
  85. native
  86. native AMX_GetPublicEntry(idx, &buffer, const pattern[] = "")
  87. native AMX_GetNativeEntry(idx, &buffer, const pattern[] = "")
  88. native AMX_GetLibraryEntry(idx, &buffer, const pattern[] = "")
  89. native AMX_GetPubvarEntry(idx, &buffer, const pattern[] = "")
  90. native AMX_GetTagEntry(idx, &buffer, const pattern[] = "")
  91. native AMX_GetEntry(E_AMX_TABLE:table, idx, &buffer, const pattern[] = "")
  92. native
  93. native AMX_GetPublicEntryPrefix(idx, &buffer, pattern)
  94. native AMX_GetNativeEntryPrefix(idx, &buffer, pattern)
  95. native AMX_GetLibraryEntryPrefix(idx, &buffer, pattern)
  96. native AMX_GetPubvarEntryPrefix(idx, &buffer, pattern)
  97. native AMX_GetTagEntryPrefix(idx, &buffer, pattern)
  98. native AMX_GetEntryPrefix(E_AMX_TABLE:table, idx, &buffer, pattern)
  99. native
  100. native AMX_GetPublicEntrySuffix(idx, &buffer, pattern)
  101. native AMX_GetNativeEntrySuffix(idx, &buffer, pattern)
  102. native AMX_GetLibraryEntrySuffix(idx, &buffer, pattern)
  103. native AMX_GetPubvarEntrySuffix(idx, &buffer, pattern)
  104. native AMX_GetTagEntrySuffix(idx, &buffer, pattern)
  105. native AMX_GetEntrySuffix(E_AMX_TABLE:table, idx, &buffer, pattern)
  106. native
  107. native AMX_GetPublicName(idx, buffer[32], const pattern[] = "")
  108. native AMX_GetNativeName(idx, buffer[32], const pattern[] = "")
  109. native AMX_GetLibraryName(idx, buffer[32], const pattern[] = "")
  110. native AMX_GetPubvarName(idx, buffer[32], const pattern[] = "")
  111. native AMX_GetTagName(idx, buffer[32], const pattern[] = "")
  112. native AMX_GetName(E_AMX_TABLE:table, idx, buffer[32], const pattern[] = "")
  113. native
  114. native AMX_GetPublicNamePrefix(idx, buffer[32], pattern)
  115. native AMX_GetNativeNamePrefix(idx, buffer[32], pattern)
  116. native AMX_GetLibraryNamePrefix(idx, buffer[32], pattern)
  117. native AMX_GetPubvarNamePrefix(idx, buffer[32], pattern)
  118. native AMX_GetTagNamePrefix(idx, buffer[32], pattern)
  119. native AMX_GetNamePrefix(E_AMX_TABLE:table, idx, buffer[32], pattern)
  120. native
  121. native AMX_GetPublicNameSuffix(idx, buffer[32], pattern)
  122. native AMX_GetNativeNameSuffix(idx, buffer[32], pattern)
  123. native AMX_GetLibraryNameSuffix(idx, buffer[32], pattern)
  124. native AMX_GetPubvarNameSuffix(idx, buffer[32], pattern)
  125. native AMX_GetTagNameSuffix(idx, buffer[32], pattern)
  126. native AMX_GetNameSuffix(E_AMX_TABLE:table, idx, buffer[32], pattern)
  127. native
  128. native AMX_GetPublicPointer(idx, &buffer, const pattern[] = "")
  129. native AMX_GetNativePointer(idx, &buffer, const pattern[] = "")
  130. native AMX_GetLibraryPointer(idx, &buffer, const pattern[] = "")
  131. native AMX_GetPubvarPointer(idx, &buffer, const pattern[] = "")
  132. native AMX_GetTagPointer(idx, &buffer, const pattern[] = "")
  133. native AMX_GetPointer(E_AMX_TABLE:table, idx, &buffer, const pattern[] = "")
  134. native
  135. native AMX_GetPublicPointerPrefix(idx, &buffer, pattern)
  136. native AMX_GetNativePointerPrefix(idx, &buffer, pattern)
  137. native AMX_GetLibraryPointerPrefix(idx, &buffer, pattern)
  138. native AMX_GetPubvarPointerPrefix(idx, &buffer, pattern)
  139. native AMX_GetTagPointerPrefix(idx, &buffer, pattern)
  140. native AMX_GetPointerPrefix(E_AMX_TABLE:table, idx, &buffer, pattern)
  141. native
  142. native AMX_GetPublicPointerSuffix(idx, &buffer, pattern)
  143. native AMX_GetNativePointerSuffix(idx, &buffer, pattern)
  144. native AMX_GetLibraryPointerSuffix(idx, &buffer, pattern)
  145. native AMX_GetPubvarPointerSuffix(idx, &buffer, pattern)
  146. native AMX_GetTagPointerSuffix(idx, &buffer, pattern)
  147. native AMX_GetPointerSuffix(E_AMX_TABLE:table, idx, &buffer, pattern)
  148. native
  149. native AMX_GetPublicValue(idx, &buffer, const pattern[] = "")
  150. native AMX_GetNativeValue(idx, &buffer, const pattern[] = "")
  151. native AMX_GetLibraryValue(idx, &buffer, const pattern[] = "")
  152. native AMX_GetPubvarValue(idx, &buffer, const pattern[] = "")
  153. native AMX_GetTagValue(idx, &buffer, const pattern[] = "")
  154. native AMX_GetValue(E_AMX_TABLE:table, idx, &buffer, const pattern[] = "")
  155. native
  156. native AMX_GetPublicValuePrefix(idx, &buffer, pattern)
  157. native AMX_GetNativeValuePrefix(idx, &buffer, pattern)
  158. native AMX_GetLibraryValuePrefix(idx, &buffer, pattern)
  159. native AMX_GetPubvarValuePrefix(idx, &buffer, pattern)
  160. native AMX_GetTagValuePrefix(idx, &buffer, pattern)
  161. native AMX_GetValuePrefix(E_AMX_TABLE:table, idx, &buffer, pattern)
  162. native
  163. native AMX_GetPublicValueSuffix(idx, &buffer, pattern)
  164. native AMX_GetNativeValueSuffix(idx, &buffer, pattern)
  165. native AMX_GetLibraryValueSuffix(idx, &buffer, pattern)
  166. native AMX_GetPubvarValueSuffix(idx, &buffer, pattern)
  167. native AMX_GetTagValueSuffix(idx, &buffer, pattern)
  168. native AMX_GetValueSuffix(E_AMX_TABLE:table, idx, &buffer, pattern)
  169. native
  170.  
  171. */
  172.  
  173. #include <YSI\y_amx>
  174.  
  175. /*
  176.  
  177. native
  178. native __y_areas__();
  179. native
  180. native
  181. native Area_AddCube(Float:x0, Float:y0, Float:z0, Float:x1, Float:y1, Float:z1);
  182. native Area_AddBox(Float:minx, Float:miny, Float:maxx, Float:maxy);
  183. native Area_AddCircle(Float:x, Float:y, Float:r, Float:h = FLOAT_INFINITY)
  184. native Area_AddSphere(Float:x, Float:y, Float:z, Float:r);
  185. native Area_AddPoly(Float:x1, Float:y1, Float:x2, Float:y2, Float:x3, Float:y3, Float:...);
  186. native Area_Delete(area);
  187. native Area_GetPlayerArea(playerid);
  188. native Area_SetPlayer(area, playerid, bool:set);
  189. native bool:Area_GetPlayer(area, playerid);
  190. native Area_SetAllPlayers(area, bool:set);
  191. native Area_SetWorld(area, world, bool:set);
  192. native bool:Area_GetWorld(area, world);
  193. native Area_SetAllWorlds(area, bool:set);
  194. native bool:Area_IsValid(area);
  195. native bool:Area_IsEmpty(area);
  196. native
  197.  
  198. */
  199.  
  200. #include <YSI\y_areas>
  201.  
  202. /*
  203.  
  204. native
  205. native __y_bintree__();
  206. native
  207. native
  208. native Bintree_Generate(BinaryTree:output<>, input[][E_BINTREE_INPUT], size);
  209. native Bintree_Reset(BinaryTree:tree<>, pointer = 0);
  210. native Bintree_FindValue(BinaryTree:tree<>, value, &cont = 0, &old = 0);
  211. native Bintree_Add(BinaryTree:data<>, pointer, value, offset, maxsize = sizeof (data));
  212. native Bintree_Delete(BinaryTree:source<>, index, count);
  213. native Bintree_UpdatePointers(BinaryTree:data<>, offset, size, mod = -1);
  214. native
  215.  
  216. */
  217.  
  218. #include <YSI\y_bintree>
  219.  
  220. /*
  221.  
  222. native
  223. native __y_bit__();
  224. native
  225. native
  226. native Bit_Set(BitArray:array<>, slot, bool:set);
  227. native Bit_SetAll(BitArray:array<>, bool:set, size = sizeof (array));
  228. native Bit_Get(BitArray:array<>, slot);
  229. native Bit_Let(BitArray:array<>, slot);
  230. native Bit_Vet(BitArray:array<>, slot);
  231. native Bit_Slot(value);
  232. native Bit_Mask(value);
  233. native Bit_GetCount(BitArray:array<>, size = sizeof (array));
  234. native Bit_Display(BitArray:array<>, size = sizeof (array));
  235. native Iterator:Bits(BitArray:array<>);
  236. native Iterator:Blanks(BitArray:array<>);
  237. native
  238. native bits();
  239. native bitsof();
  240. native
  241.  
  242. */
  243.  
  244. #include <YSI\y_bit>
  245.  
  246. /*
  247.  
  248. native
  249. native __y_cell__();
  250. native
  251. native
  252. native Cell_ReverseBits({Float, _}:data);
  253. native Cell_ReverseNibbles({Float, _}:data);
  254. native Cell_ReverseBytes({Float, _}:data);
  255. native Cell_CountBits({Float, _}:data);
  256. native Cell_GetLowestBit({Float, _}:data);
  257. native Cell_GetLowestComponent({Float, _}:data);
  258. native
  259.  
  260. */
  261.  
  262. #include <YSI\y_cell>
  263.  
  264. /*
  265.  
  266. native
  267. native __y_classes__();
  268. native
  269. native
  270. native Class_Add(skin, Float:x, Float:y, Float:z, Float:a, ...);
  271. native
  272. native Class_AddEx(Group:forgroup, Group:setgroup, skin, Float:x, Float:y, Float:z, Float:a, ...);
  273. native Class_AddForGroup(Group:group, skin, Float:x, Float:y, Float:z, Float:a, ...);
  274. native Class_AddWithGroupSet(Group:group, skin, Float:x, Float:y, Float:z, Float:a, ...);
  275. native Class_Enable(classid, bool:toggle);
  276. native Class_Delete(classid);
  277. native Class_SetPlayer(classid, playerid, bool:s);
  278. native bool:Class_GetPlayer(classid, playerid);
  279. native Class_Get(playerid);
  280. native Class_Goto(playerid, playerclass);
  281. native
  282. native Class_DisableSelection(playerid);
  283. native Class_DisableReselection(playerid);
  284. native Class_EnableReselection(playerid);
  285. native Class_ForceReselection(playerid);
  286. native Class_ReturnToSelection(playerid);
  287. native
  288.  
  289. */
  290.  
  291. #include <YSI\y_classes>
  292.  
  293. /*
  294.  
  295. native
  296. native __y_colours__();
  297. native __y_colors__();
  298. native
  299. native
  300. native SetColoursCanHaveSpaces(bool:set);
  301. native SetColour(const name[], color);
  302. native SetColourHash(hash, color);
  303. native GetColour(const name[], alpha = 0xAA);
  304. native GetColourStream(const str[], &idx, alpha = 0xAA);
  305. native GetColourHash(hash, alpha = 0xAA);
  306. native
  307.  
  308. */
  309.  
  310. #include <YSI\y_colours>
  311.  
  312. /*
  313.  
  314. native
  315. native __y_commands__();
  316. native
  317. native
  318. native Command_AddAlt(commandid, altname[]);
  319. native Command_AddAltNamed(command[], altname[]);
  320. native Command_SetPlayer(commandid, playerid, bool:set);
  321. native Command_SetPlayerNamed(command[], playerid, bool:set);
  322. native
  323. native Command_SetDeniedReturn(bool:set);
  324. native bool:Command_GetDeniedReturn();
  325. native Command_SetIllegalReturn(bool:set);
  326. native bool:Command_GetIllegalReturn();
  327. native Command_SetUnknownReturn(bool:set);
  328. native bool:Command_GetUnknownReturn();
  329. native Command_SetDisconnectReturn(bool:set);
  330. native bool:Command_GetDisconnectReturn();
  331. native
  332. native Command_GetID(command[]);
  333. native bool:Command_GetPlayer(commandid, playerid);
  334. native bool:Command_GetPlayerNamed(command[], playerid);
  335. native Command_Remove(commandid);
  336. native Command_RemoveNamed(command[]);
  337. native Command_ReProcess(playerid, cmdtext[], help);
  338. native Command_GetName(commandid);
  339. native Command_GetDisplay(commandid, playerid);
  340. native Command_GetDisplayNamed(command[], playerid);
  341. native Command_GetPlayerCommandCount(playerid);
  342. native Command_GetNext(index, playerid);
  343. native
  344. native Command_SetProvider(p);
  345. native Command_GetProvider();
  346. native Command_SetPlayerProvider(playerid, p);
  347. native Command_GetPlayerProvider(playerid);
  348. native
  349.  
  350. */
  351.  
  352. #include <YSI\y_commands>
  353.  
  354. /*
  355.  
  356. native
  357. native __y_debug__();
  358. native
  359. native
  360. native P_level(str[], {Float, _}:...);
  361. native P_I(str[], {Float, _}:...);
  362. native P_W(str[], {Float, _}:...);
  363. native P_E(str[], {Float, _}:...);
  364. native P_F(str[], {Float, _}:...);
  365. native P_C(str[], {Float, _}:...);
  366. native
  367.  
  368. */
  369.  
  370. #include <YSI\y_debug>
  371.  
  372. /*
  373.  
  374. native
  375. native __y_dialog__();
  376. native
  377. native
  378. native Dialog_Show(playerid, style, title[], caption[], button1[], button2[] = "", dialogid = -1);
  379. native Dialog_ShowCallback(playerid, using:callback[], style, title[], caption[], button1[], button2[] = "", dialogid = -1);
  380. native
  381. native Dialog_ObtainID();
  382. native Dialog_TryObtainID(id);
  383. native Dialog_Get(playerid);
  384. native Dialog_Garbage(dialogid);
  385. native Dialog_Free(dialogid);
  386. native Dialog_Set(playerid, dialogid);
  387. native Dialog_ShowCallbackData(playerid, callback[E_CALLBACK_DATA], style, title[], caption[], button1[], button2[] = "", dialogid = -1);
  388. native Dialog_Hide(playerid);
  389. native Dialog_SetCallback(dialogid, using:callback[]);
  390. native Dialog_SetCallbackData(dialogid, callback[E_CALLBACK_DATA]);
  391. native
  392.  
  393. */
  394.  
  395. #include <YSI\y_dialog>
  396.  
  397. /*
  398.  
  399. native
  400. native __y_flooding__();
  401. native
  402. native
  403. native SetMaxConnections(max = -1, e_FLOOD_ACTION:action = e_FLOOD_ACTION_BLOCK)
  404. native
  405.  
  406. */
  407.  
  408. #include <YSI\y_flooding>
  409.  
  410. /*
  411.  
  412. native
  413. native __y_groups__();
  414. native
  415. native
  416. native Group:Group_Create(name[]);
  417. native Group_Destroy(Group:group);
  418. native Group_SetPlayer(Group:group, playerid, bool:s);
  419. native bool:Group_GetPlayer(Group:group, playerid);
  420. native
  421. native Group_SetCommand(Group:group, commandid, bool:s);
  422. native Group_SetCommandDefault(Group:group, bool:s);
  423. native Group_SetGlobalCommand(commandid, bool:s);
  424. native Group_SetGlobalCommandDefault(bool:s);
  425. native
  426. native Group_SetArea(Group:group, area, bool:s);
  427. native Group_SetAreaDefault(Group:group, bool:s);
  428. native Group_SetGlobalArea(area, bool:s);
  429. native Group_SetGlobalAreaDefault(bool:s);
  430. native
  431. native Group_SetClass(Group:group, class, bool:s);
  432. native Group_SetClassDefault(Group:group, bool:s);
  433. native Group_SetGlobalClass(class, bool:s);
  434. native Group_SetGlobalCalssDefault(bool:s);
  435. native
  436. native Iterator:PlayerGroups(playerid)
  437. native Iterator:Group(Group:group)
  438. native
  439. native Group:Group_SetBalanced(playerid, Group:...)
  440. native Group_GetColour(Group:group);
  441. native Group_GetColor(Group:group);
  442. native Group_SetColour(Group:group, colour);
  443. native Group_SetColor(Group:group, color);
  444. native bool:Group_GetGang(Group:group);
  445. native Group_SetGang(Group:group, bool:set);
  446. native Group:Group_GetID(name[]);
  447. native Group_GetName(Group:group);
  448. native Group_SetName(Group:group, name[]);
  449. native
  450.  
  451. */
  452.  
  453. #include <YSI\y_groups>
  454.  
  455. /*
  456.  
  457. native
  458. native __y_hooks__();
  459. native
  460. native
  461. native hook();
  462. native
  463.  
  464. */
  465.  
  466. // Is included as then they can use hooks straight off.
  467. #include <YSI\y_hooks>
  468.  
  469. /*
  470.  
  471. native
  472. native __y_ini__();
  473. native
  474. native
  475. native bool:INI_ParseFile(fname[], remoteFormat[], bool:bFileFirst = false, bool:bExtra = false, extra = 0, bool:bLocal = true, bool:bPassTag = false, bool:bFilter = true, filter[] = "")
  476. native bool:INI_Load(filename[], bool:bExtra = false, extra = 0, bool:bLocal = true)
  477. native
  478. native INI_Int(name[], &dest);
  479. native INI_Float(name[], &Float:dest);
  480. native INI_Hex(name[], &dest);
  481. native INI_Bin(name[], &dest);
  482. native INI_String(name[], dest[], size);
  483. native
  484. native INI:INI_Open(filename[])
  485. native INI_Close(INI:file)
  486. native
  487. native INI_SetTag(INI:file, tag[])
  488. native INI_DeleteTag(INI:file, tag[])
  489. native INI_WriteArray(INI:file, const name[], data[], len)
  490. native INI_RemoveEntry(INI:file, name[])
  491. native INI_WriteString(INI:file, name[], data[])
  492. native INI_WriteInt(INI:file, name[], data)
  493. native INI_WriteHex(INI:file, name[], data)
  494. native INI_WriteBin(INI:file, name[], data)
  495. native INI_WriteBool(INI:file, name[], bool:data)
  496. native INI_WriteFloat(INI:file, name[], Float:data, accuracy = 6)
  497. native
  498.  
  499. */
  500.  
  501. #include <YSI\y_ini>
  502.  
  503. /*
  504.  
  505. native
  506. native __y_inline__();
  507. native
  508. native
  509. native using();
  510. native inline();
  511. native
  512. native Callback_Get(callback:name, result[E_CALLBACK_DATA], expect = -1);
  513. native Callback_Release(const input[E_CALLBACK_DATA]);
  514. native Callback_Call(const input[E_CALLBACK_DATA], {Float, _}:...);
  515. native
  516.  
  517. */
  518.  
  519. #include <YSI\y_inline>
  520.  
  521. /*
  522.  
  523. native
  524. native __y_iterate__();
  525. native
  526. native
  527. native Iter_Init(Iterator:arr[]<>);
  528. native Iter_Add(Iterator:iter<>, element);
  529. native Iter_Remove(Iterator:iter<>, element);
  530. native Iter_Contains(Iterator:iter<>, element);
  531. native Iter_SafeRemove(Iterator:iter<>, element, &ret);
  532. native Iter_Random(Iterator:iter<>);
  533. native Iter_Count(Iterator:iter<>);
  534. native Iter_Clear(Iterator:iter<>);
  535. native Iter_Free(Iterator:iter<>);
  536. native
  537. native foreach();
  538. native
  539. native Iter_Begin(Iterator:iter<>);
  540. native Iter_End(Iterator:iter<>);
  541. native Iter_First(Iterator:iter<>);
  542. native Iter_Last(Iterator:iter<>);
  543. native Iter_Next(Iterator:iter<>, cur);
  544. native Iter_Prev(Iterator:iter<>, cur);
  545. native
  546.  
  547. */
  548.  
  549. #include <YSI\y_iterate>
  550.  
  551. /*
  552.  
  553. native
  554. native __y_languages__();
  555. native
  556. native
  557. native Language:Langs_Add(code[], name[]);
  558. native Language:Langs_SetPlayerLanguage(playerid, Language:l);
  559. native Language:Langs_GetPlayerLanguage(playerid);
  560. native
  561. native Language:Langs_AddLanguage(code[], name[]);
  562. native Langs_RemoveLanguage(Language:l);
  563. native Language:Langs_GetLanguage(identifier[]);
  564. native Language:Langs_GetLanguageCount();
  565. native Langs_GetLanguageCodes();
  566. native Langs_GetName(Language:l);
  567. native Langs_GetCode(Language:l);
  568. native bool:Langs_IsValid(Language:l);
  569. native Language:Langs_SetPlayerCode(playerid, code[]);
  570. native
  571.  
  572. */
  573.  
  574. #include <YSI\y_languages>
  575.  
  576. /*
  577.  
  578. native
  579. native __y_lock__();
  580. native
  581. native
  582. native
  583.  
  584. */
  585.  
  586. // DO NOT include by default!
  587. //#include <YSI\y_lock>
  588.  
  589. /*
  590.  
  591. native
  592. native __y_malloc__();
  593. native
  594. native
  595. native Alloc:malloc(size);
  596. native Alloc:calloc(size);
  597. native free(Alloc:slot);
  598. native
  599. native mget(Alloc:array, index);
  600. native mset(Alloc:array, index, value);
  601. native mgets(target[], length, Alloc:array, index);
  602. native msets(Alloc:array, index, const str[]);
  603. native
  604. native Malloc_SlotSize(Alloc:array);
  605. native Malloc_Get(Alloc:array, index);
  606. native Malloc_Set(Alloc:array, index, value);
  607. native Malloc_GetS(target[], length, Alloc:array, index);
  608. native Malloc_SetS(Alloc:array, index, const str[]);
  609. native Malloc_GetA(target[], length, Alloc:array, index);
  610. native Malloc_SetA(Alloc:array, index, const arr[], len);
  611. native
  612.  
  613. */
  614.  
  615. #include <YSI\y_malloc>
  616.  
  617. /*
  618.  
  619. native
  620. native __y_master__();
  621. native
  622. native
  623. native Master_Caller();
  624. native
  625. native foreign();
  626. native global();
  627. native
  628.  
  629. */
  630.  
  631. #include <YSI\y_master>
  632.  
  633. /*
  634.  
  635. native
  636. native __y_php__();
  637. native
  638. native
  639. native PHP_SendString(string:name[], string:value[], bool:priority = false);
  640. native PHP_SendFloat(string:name[], Float:value, bool:priority = false);
  641. native PHP_SendBool(string:name[], bool:value, bool:priority = false);
  642. native PHP_SendInt(string:name[], value, bool:priority = false);
  643. native
  644. native phpdata();
  645. native phpfunc();
  646. native
  647.  
  648. */
  649.  
  650. // DO NOT include by default!
  651. //#include <YSI\y_php>
  652.  
  653. /*
  654.  
  655. native
  656. native __y_playerarray__();
  657. native
  658. native
  659. native PA_Init(PlayerArray:pa<>, bool:init = false, s = bits<MAX_PLAYERS>);
  660. native PA_FastInit(PlayerArray:pa<>);
  661. native PA_Set(PlayerArray:pa<>, slot, bool:set);
  662. native PA_Let(PlayerArray:pa<>, slot);
  663. native PA_Vet(PlayerArray:pa<>, slot);
  664. native PA_Get(PlayerArray:pa<>, slot);
  665. native PA_GetCount(PlayerArray:pa<>);
  666. native Iterator:PA(PlayerArray:pa<>);
  667. native
  668.  
  669. */
  670.  
  671. #include <YSI\y_playerarray>
  672.  
  673. /*
  674.  
  675. native
  676. native __y_playerset__();
  677. native
  678. native
  679. native Iterator:PS(@PlayerSet:iter);
  680. native
  681.  
  682. */
  683.  
  684. #include <YSI\y_playerset>
  685.  
  686. /*
  687.  
  688. native
  689. native __y_remote__();
  690. native
  691. native
  692. native remotefunc();
  693. native broadcastfunc();
  694. native localfunc();
  695. native targetfunc();
  696. native
  697.  
  698. */
  699.  
  700. #include <YSI\y_remote>
  701.  
  702. /*
  703.  
  704. native
  705. native __y_scriptinit__();
  706. native
  707. native
  708. native
  709.  
  710. */
  711.  
  712. #include <YSI\y_scriptinit>
  713.  
  714. /*
  715.  
  716. native
  717. native __y_stringhash__();
  718. native
  719. native
  720. native YHash(const str[], bool:sensitive = true, e_HASH_TYPE:type = hash_bernstein, len = -1, pack = false);
  721. native
  722.  
  723. */
  724.  
  725. #include <YSI\y_stringhash>
  726.  
  727. /*
  728.  
  729. native
  730. native __y_svar__();
  731. native
  732. native
  733. native svar();
  734. native
  735.  
  736. */
  737.  
  738. #include <YSI\y_svar>
  739.  
  740. /*
  741.  
  742. native
  743. native __y_td__();
  744. native
  745. native
  746. native Style:TD_Create(Float:x = 0.0, Float:y = 0.0, Float:letterX = 0.48, Float:letterY = 1.12, Float:textX = 1280.0, Float:textY = 1280.0, colour = 0xE1E1E1FF, boxColour = 0x80808080, bgColour = 0x000000FF, shadow = 2, outline = 0, align = _:td_align_none, font = 1, bool:proportional = false, bool:box = false, time = 0, name[] = "\1");
  747. native TD_Delete(Style:styleId);
  748. native
  749. native Text:TD_Display(text[], Style:id, Float:x = NAN, Float:y = NAN);
  750. native TD_Destroy(Text:textDraw);
  751. native TD_TextPosition(Text:textID, Float:x, Float:y);
  752. native TD_TextXPos(Text:textID, Float:x);
  753. native TD_TextYPos(Text:textID, Float:y);
  754. native TD_SetString(Text:td, text[]);
  755. native
  756. native TD_ShowForPlayer(playerid, Text:textDraw);
  757. native TD_HideForPlayer(playerid, Text:textDraw);
  758. native TD_ShowForAll(Text:textDraw);
  759. native TD_HideForAll(Text:textDraw);
  760. native Text:TD_DisplayForPlayer(playerid, text[], Style:id, Float:x = NAN, Float:y = NAN);
  761. native Text:TD_DisplayForAll(text[], Style:id, Float:x = NAN, Float:y = NAN);
  762. native
  763. native TD_StylePosition(Style:styleID, Float:x, Float:y);
  764. native TD_StyleXPos(Style:styleID, Float:x);
  765. native TD_StyleYPos(Style:styleID, Float:y);
  766. native TD_LetterSize(Style:styleID, Float:x, Float:y);
  767. native TD_LetterX(Style:styleID, Float:x);
  768. native TD_LetterY(Style:styleID, Float:y);
  769. native TD_TextSize(Style:styleID, Float:x, Float:y);
  770. native TD_TextX(Style:styleID, Float:x);
  771. native TD_TextY(Style:styleID, Float:y);
  772. native TD_Alignment(Style:styleID, alignment = _:td_align_none);
  773. native TD_Colour(Style:styleID, colour);
  774. native TD_Color(Style:styleID, color);
  775. native TD_UseBox(Style:styleID, bool:use);
  776. native TD_BoxColour(Style:styleID, colour);
  777. native TD_BoxColor(Style:styleID, color);
  778. native TD_SetShadow(Style:styleID, size);
  779. native TD_SetOutline(Style:styleID, size);
  780. native TD_BackgroundColour(Style:styleID, colour);
  781. native TD_BackgroundColor(Style:styleID, color);
  782. native TD_Font(Style:styleID, font);
  783. native TD_SetProportional(Style:styleID, bool:set);
  784. native TD_SetTime(Style:styleID, time, bool:existing = false);
  785. native
  786. native TD_Morph(Text:textDraw, Style:style, time, delay = 0);
  787. native TD_Link(Text:base, Text:other);
  788. native TD_Unlink(Text:td);
  789. native Style:TD_GetDisplayStyle(Text:td);
  790. native Text:TD_DisplayHashed(text[], hash, Float:x = NAN, Float:y = NAN);
  791. native Text:TD_DisplayHashedForPlayer(playerid, text[], hash, Float:x = NAN, Float:y = NAN);
  792. native Text:TD_DisplayHashedForAll(text[], hash, Float:x = NAN, Float:y = NAN);
  793. native Text:TD_DisplayNamed(text[], style[], Float:x = NAN, Float:y = NAN);
  794. native Text:TD_DisplayNamedForPlayer(playerid, text[], style[], Float:x = NAN, Float:y = NAN);
  795. native Text:TD_DisplayNamedForAll(text[], style[], Float:x = NAN, Float:y = NAN);
  796. native TD_Garbage(Text:textDraw);
  797. native TD_Parse(filename[]);
  798. native
  799. native Style:TD_GetNamed(name[]);
  800. native Style:TD_GetID(hash);
  801. native Style:TD_Clone(Style:styleID, name[] = "\1");
  802. native TD_GetStyleData(Style:styleID, ret[E_TD_DATA]);
  803. native TD_Name(Style:styleID, name[]);
  804. native
  805.  
  806. */
  807.  
  808. #include <YSI\y_td>
  809.  
  810. /*
  811.  
  812. native
  813. native __y_testing__();
  814. native
  815. native
  816. native Testing_RunAll();
  817. native
  818.  
  819. */
  820.  
  821. // DO NOT include by default!
  822. //#include <YSI\y_testing>
  823.  
  824. /*
  825.  
  826. native
  827. native __y_text__();
  828. native
  829. native
  830. native Text_Send(@PlayerSet:players, message[], {Float, _}:...);
  831. native
  832. native Text_MessageBox(@PlayerSet:players, using:callback[], title[], text[], button1[], button2[], {Float, _}:...);
  833. native Text_InputBox(@PlayerSet:players, using:callback[], title[], text[], button1[], button2[], {Float, _}:...);
  834. native Text_ListBox(@PlayerSet:players, using:callback[], title[], text[], button1[], button2[], {Float, _}:...);
  835. native Text_PasswordBox(@PlayerSet:players, using:callback[], title[], text[], button1[], button2[], {Float, _}:...);
  836. native Text_DialogBox(@PlayerSet:players, style, using:callback[], title[], text[], button1[], button2[], {Float, _}:...);
  837. native
  838.  
  839. */
  840.  
  841. #include <YSI\y_text>
  842.  
  843. /*
  844.  
  845. native
  846. native __y_timers__();
  847. native
  848. native
  849. native stop();
  850. native defer();
  851. native repeat();
  852. native timer();
  853. native task();
  854. native ptask();
  855. native pause();
  856. native resume();
  857. native
  858.  
  859. */
  860.  
  861. #include <YSI\y_timers>
  862.  
  863. /*
  864.  
  865. native
  866. native __y_users__();
  867. native
  868. native
  869. native Language:Player_GetPreloadLanguage(playerid);
  870. native Player_IsRegistered(playerid);
  871. native bool:Player_IsLoggedIn(playerid);
  872. native Player_GetYID(playerid);
  873. native
  874. native Player_RemoveEntry(name[]);
  875. native Player_WriteString(name[], data[]);
  876. native Player_WriteArray(const name[], data[], len);
  877. native Player_WriteInt(name[], data);
  878. native Player_WriteHex(name[], data);
  879. native Player_WriteBin(name[], data);
  880. native Player_WriteBool(name[], bool:data);
  881. native Player_WriteFloat(name[], Float:data, accuracy = 6);
  882. native Player_SetTag(tag[]);
  883. native Player_DeleteTag(tag[]);
  884. native
  885. native Player_TryLogin(playerid, password[]);
  886. native Player_ForceLogin(playerid);
  887. native Player_TryRegister(playerid, password[]);
  888. native Player_ChangePassword(playerid, password[]);
  889. native Player_TryGroup(playerid, other[], password[]);
  890. native Player_ForceGroup(playerid, other[]);
  891. native
  892. native Player_Reload(playerid);
  893. native Player_SetPreload(playerid, data[E_USER_PRELOAD]);
  894. native Player_Preload(name[], ret[E_USER_PRELOAD]);
  895. native
  896.  
  897. */
  898.  
  899. #include <YSI\y_users>
  900.  
  901. /*
  902.  
  903. native
  904. native __y_utils__();
  905. native
  906. native
  907. native ceildiv(num, denom);
  908. native floordiv(num, denom);
  909. native isnull(str[]);
  910. native isodd(num);
  911. native iseven(num);
  912. native strcpy(dest[], src[], maxlength = sizeof (dest));
  913. native StripNL(str[]);
  914. native endofline(line[], pos);
  915. native chrfind(needle, haystack[], start = 0);
  916. native chrfindp(needle, haystack[], start = 0);
  917. native bernstein(string[]);
  918. native ishex(str[]);
  919. native unpack(const str[]);
  920. native GetIP(playerid);
  921. native getstring(addr);
  922. native getstringarg(addr);
  923. native isnumeric(str[]);
  924. native hexstr(string[]);
  925. native bool:boolstr(string[]);
  926. native binstr(string[]);
  927. native memset(dest[], size = sizeof (dest), val = 0, blocksize = 8);
  928. native ReturnPlayerName(playerid);
  929. native ftouch(const filename[]);
  930. native
  931.  
  932. */
  933.  
  934. #include <YSI\y_utils>
  935.  
  936. /*
  937.  
  938. native
  939. native __y_uvar__();
  940. native
  941. native
  942. native uvar();
  943. native
  944.  
  945. */
  946.  
  947. #include <YSI\y_uvar>
  948.  
  949. /*
  950.  
  951. native
  952. native __y_va__();
  953. native
  954. native
  955. native va_printf(fmat[], va_start);
  956. native va_format(out[], size, fmat[], va_start);
  957. native va_strlen(arg);
  958. native va_getstring(dest[], arg, len = sizeof (dest));
  959. native
  960.  
  961. */
  962.  
  963. #include <YSI\y_va>
  964.  
  965. /*
  966.  
  967. native
  968. native __y_writemem__();
  969. native
  970. native
  971. native WriteMem(addr, value);
  972. native
  973.  
  974. */
  975.  
  976. #include <YSI\y_writemem>
  977.  
  978. /*
  979.  
  980. native
  981. native __y_xml__();
  982. native
  983. native
  984. native XML:XML_New();
  985. native XML_Destroy(XML:rule);
  986. native
  987. native XML_AddHandler(XML:rule, trigger[], function[]);
  988. native XML_RemoveHandler(XML:rule, trigger[]);
  989. native XML_Parse(XML:rule, filename[]);
  990. native XML_GetKeyValue(key[], value[]);
  991. native
  992. native XMLEntry:XML_AddParameter(XMLEntry:parent, tag[], value[] = "");
  993. native XMLEntry:XML_AddItem(tag[], name[] = "", XMLEntry:parent = XMLEntry:cellmax);
  994. native XMLEntry:XML_CreateEntry(tag[], name[] = "", XMLEntry:parent = XMLEntry:cellmax);
  995. native XMLEntry:XML_AddSubEntry(tag[], name[] = "", XMLEntry:parent = XMLEntry:cellmax);
  996. native XML_WriteItem(filename[], XMLEntry:item, bool:bIncludeXML = true, bool:bFavourShort = false);
  997. native XML_WriteEntry(filename[], XMLEntry:item, bool:bIncludeXML = true, bool:bFavourShort = false);
  998. naitve XML_RemoveItem(file[], tag[], name[]);
  999. naitve XML_ReplaceItem(file[], tag[], name[], replacement);
  1000. native
  1001.  
  1002. */
  1003.  
  1004. #include <YSI\y_xml>
  1005.  
  1006. /*
  1007.  
  1008. native
  1009. native __y_zonepulse__();
  1010. native
  1011. native
  1012. native GangZonePulse(@PlayerSet:players, zone, from, to, time, delay = ZONE_PULSE_STAGE_TIME, time2 = -1, delay2 = -1);
  1013. native GangZonePulseForPlayer(playerid, zone, from, to, time, delay = ZONE_PULSE_STAGE_TIME, time2 = -1, delay2 = -1);
  1014. native GangZonePulseForAll(zone, from, to, time, delay = ZONE_PULSE_STAGE_TIME, time2 = -1, delay2 = -1);
  1015. native GangZoneStopPulse(@PlayerSet:players, zone);
  1016. native GangZoneStopPulseForPlayer(playerid, zone);
  1017. native GangZoneStopPulseForAll(zone);
  1018. native
  1019.  
  1020. */
  1021.  
  1022. #include <YSI\y_zonepulse>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement