ysi.inc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. /*----------------------------------------------------------------------------*-
  2. =======================
  3. Y Sever Includes - Main
  4. =======================
  5. Description:
  6. Main include to use the YSI script libraries. Simply add:
  7. #include <YSI>
  8. to the top of your script to get the full power of all the YSI libraries
  9. and the functions and features they expose.
  10. Legal:
  11. Copyright (C) 2007 Alex "Y_Less" Cole
  12. This program is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU General Public License
  14. as published by the Free Software Foundation; either version 2
  15. of the License, or (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program; if not, write to the Free Software
  22. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  23. MA 02110-1301, USA.
  24. Version:
  25. 0.1.3
  26. Changelog:
  27. 18/06/07:
  28. Updated YSI_text functions.
  29. 18/04/07:
  30. Added new files.
  31. Moved objects and checkpoints to YSI/Visual/.
  32. 17/04/07:
  33. Added new files.
  34. 16/04/07:
  35. Added native definitions
  36. 15/04/07:
  37. First version
  38. Functions:
  39. Public:
  40. -
  41. Core:
  42. -
  43. Stock:
  44. -
  45. Static:
  46. -
  47. Inline:
  48. -
  49. API:
  50. -
  51. Callbacks:
  52. -
  53. Definitions:
  54. -
  55. Enums:
  56. -
  57. Macros:
  58. -
  59. Tags:
  60. -
  61. Variables:
  62. Global:
  63. -
  64. Static:
  65. -
  66. Commands:
  67. -
  68. Compile options:
  69. _YSI_DEBUG - Use YSI/YSI_debug.own.
  70. _YSI_MISC - Use YSI/YSI_misc.own.
  71. _YSI_CORE_BIT - Use YSI/Core/YSI_bit.own.
  72. _YSI_CORE_BINTREE - Use YSI/Core/YSI_bintree.own.
  73. _YSI_CORE_INI - Use YSI/Core/YSI_INI.own.
  74. _YSI_CORE_TEXT - Use YSI/Core/YSI_text.own.
  75. _YSI_CORE_FORMAT - Use YSI/Core/YSI_format.own.
  76. _YSI_CORE_LANGUAGES - Use YSI/Core/YSI_languages.own.
  77. _YSI_CORE_COMMANDS - Use YSI/Core/YSI_commands.own.
  78. _YSI_CORE_PLAYER - Use YSI/Core/YSI_player.own.
  79. _YSI_SERVER_MODULES - Use YSI/Server/YSI_modules.own.
  80. _YSI_VISUAL_OBJECTS - Use YSI/Visual/YSI_objects.own
  81. _YSI_VISUAL_CHECKPOINTS - Use YSI/Visual/YSI_objects.own
  82. _YSI_SYSTEM_DEFAULT - Use YSI/System/YSI_default.own.
  83. Operators:
  84. -
  85. -*----------------------------------------------------------------------------*/
  86. #include <a_samp>
  87. #if defined _YSI_included
  88. #endinput
  89. #endif
  90. #define _YSI_included
  91. /*----------------------------------------------------------------------------*-
  92. ===============
  93. /YSI/ Libraries
  94. ===============
  95. -*----------------------------------------------------------------------------*/
  96. /*
  97. native _DEPENDECENCY_FUNCTIONS_();
  98. native
  99. */
  100. #include "YSI/YSI_dependencies.own"
  101. /*
  102. native _DEBUG_FUNCTIONS_();
  103. native
  104. native Debug_Code_<level>(code);
  105. native Debug_Print_<level>(format[], {Float,_}:...);
  106. native
  107. */
  108. #if defined _YSI_DEBUG
  109. #include "YSI/YSI_debug.own"
  110. #endif
  111. /*
  112. native _MISC_FUNCTIONS_();
  113. native
  114. native ceildiv(num, div);
  115. native floordiv(num, div);
  116. native iseven(num);
  117. native isodd(num);
  118. native chrfind(needle, haystack[], start = 0);
  119. native chrnfind(needle, haystack[], start = 0);
  120. native strcpy(dest[], source[], max, len = -1);
  121. native bernstein(string[]);
  122. native StripNL(str[]);
  123. native strconcat(...);
  124. native QuickSort(numbers[], arraySize);
  125. native chrtolower(chr);
  126. native strtolower(str[]);
  127. native hexstr(string[]);
  128. native bool:binstr(string[]);
  129. native ReturnPlayerName(playerid);
  130. native ishex(str[]);
  131. native numstr(num);
  132. native chrtoupper(chr);
  133. native strtoupper(str[]);
  134. native
  135. */
  136. #if defined _YSI_MISC
  137. #include "YSI/YSI_misc.own"
  138. #endif
  139. /*----------------------------------------------------------------------------*-
  140. ====================
  141. /YSI/Core/ Libraries
  142. ====================
  143. -*----------------------------------------------------------------------------*/
  144. /*
  145. native _CORE_BIT_FUNCTIONS_();
  146. native
  147. native Bit_Bits(num);
  148. native Bit_Get(Bit:array[], slot, size = sizeof (array));
  149. native Bit_Set(Bit:array[], slot, set, size = sizeof (array));
  150. native Bit_SetAll(Bit:array[], set, size = sizeof (array));
  151. native Bit_GetCount(Bit:array[], size = sizeof (array));
  152. native Bit_GetBits(Bit:array[], slot);
  153. native
  154. */
  155. #if defined _YSI_CORE_BIT
  156. #include "YSI/Core/YSI_bit.own"
  157. #endif
  158. /*
  159. native _CORE_BINTREE_FUNCTIONS_();
  160. native
  161. native Bintree_Sort(input[][E_BINTREE_INPUT], size);
  162. native Bintree_Fill(Bintree:output[][E_BINTREE_INPUT], data[][E_BINTREE_INPUT], size);
  163. native Bintree_Generate(Bintree:output[][E_BINTREE_TREE], input[][E_BINTREE_INPUT], size);
  164. native Bintree_Reset(Bintree:tree[][E_BINTREE_TREE], pointer = 0);
  165. native Bintree_FindValue(Bintree:tree[][E_BINTREE_TREE], value, &cont = 0, &old = 0);
  166. native Bintree_Add(Bintree:data[][E_BINTREE_TREE], input[E_BINTREE_INPUT], offset, maxsize = sizeof (data));
  167. native Bintree_Delete(Bintree:source[][E_BINTREE_TREE], index, count);
  168. native Bintree_UpdatePointers(Bintree:data[][E_BINTREE_TREE], offset, size, mod = -1);
  169. native
  170. */
  171. #if defined _YSI_CORE_BINTREE
  172. #include "YSI/Core/YSI_bintree.own"
  173. #endif
  174. /*
  175. native _CORE_INI_FUNCTIONS_();
  176. native
  177. native bool:INI_Load(filename[]);
  178. native bool:INI_ParseFile(filename[], remoteFormat[], bool:bFileFirst = false);
  179. native INI_GetEntryText(source[], dest[], i);
  180. native INI_BroadcastData(function[], identifier[], text[]);
  181. native bool:INI_GetEntryName(source[], dest[], &i);
  182. native INI_INI();
  183. native INI:INI_Open(filename[]);
  184. native INI_Close(INI:file);
  185. native INI_SetTag(INI:file, tag[]);
  186. native INI_WriteString(INI:file, name[], data[]);
  187. native INI_WriteInt(INI:file, name[], data);
  188. native INI_WriteFloat(INI:file, name[], Float:data, accuracy = 6);
  189. native INI_WriteBuffer(INI:file);
  190. native INI_String(name[], function);
  191. native INI_Bin(name[], function);
  192. native INI_Hex(name[], function);
  193. native INI_Float(name[], function);
  194. native INI_Int(name[], function);
  195. native
  196. */
  197. #if defined _YSI_CORE_INI
  198. #include "YSI/Core/YSI_INI.own"
  199. #endif
  200. /*
  201. native _CORE_TEXT_FUNCTIONS_();
  202. native
  203. naitve Text_Send(playerid, identifier[]);
  204. native Text_SendToAll(identifier[]);
  205. native Text_SendToGroup(group, identifier[]);
  206. native Text_SendToPlayers(Bit:players[], identifier[]);
  207. naitve Text_SendFormat(playerid, identifier[], {Float,_}:...);
  208. native Text_SendToAllFormat(identifier[], {Float,_}:...);
  209. native Text_SendToGroupFormat(group, identifier[], {Float,_}:...);
  210. native Text_SendToPlayersFormat(Bit:players[], identifier[], {Float,_}:...);
  211. native Text_Text();
  212. native Text_AddToBuffer(identifier[], text[]);
  213. native Text_ResetAll();
  214. native Text_NewLanguage(Language:languageID);
  215. native Text_Parse();
  216. native Text_GetText(identifier[], Language:languageID);
  217. native Text_RegisterTag(tag[]);
  218. native Text_GetTextStyle(index);
  219. native Text_GetTextColour(index);
  220. native Text_GetTextTime(index);
  221. native Text_GetTextFromIndex(index, Language:languageID, identifier[]);
  222. native Text_GetErrorMessage(Language:languageID);
  223. native
  224. */
  225. #if defined _YSI_CORE_TEXT
  226. #include "YSI/Core/YSI_text.own"
  227. #endif
  228. /*
  229. native _CORE_FORMAT_FUNCTIONS_();
  230. native
  231. native Format_SendFormattedText(playerid, type, colorTime, identifier[], {Float,_}:...);
  232. native
  233. */
  234. #if defined _YSI_CORE_FORMAT
  235. #include "YSI/Core/YSI_format.own"
  236. #endif
  237. /*
  238. native _CORE_COMMAND_FUNCTIONS_();
  239. native
  240. native Command_IsCleared(playerid, command);
  241. native Command_SetDisconnectReturn(set);
  242. native Command_SetIllegalReturn(set);
  243. native Command_UseShortCuts(set);
  244. native Command_SetDeniedReturn(set);
  245. native Command_UseDeniedMessage(set);
  246. native Command_UseAltNames(set);
  247. native Command_UsePrefix(set);
  248. native Command_UseSpace(set);
  249. native Command_Add(funcname[]);
  250. native Command_Parse();
  251. native Command_SetAltName(funcname[], altname[]);.
  252. native Comamnd_SetPlayerUse(command[], playerid, set);
  253. native Comamnd_SetPlayerUseByID(command, playerid, set);
  254. native Command_SetPrefix(prefix[]);
  255. native Command_Process(playerid, cmdtext[], help = 0);
  256. native Command_Name(funcname[]);
  257. native
  258. native ycmd(command[]);
  259. native
  260. */
  261. #if defined _YSI_CORE_COMMANDS
  262. #include "YSI/Core/YSI_commands.own"
  263. #endif
  264. /*
  265. native _CORE_LANGUAGE_FUNCTIONS_();
  266. native
  267. native Langs_Langs();
  268. native Langs_IsActive(Language:languageID);
  269. native Langs_GetLanguageIdentifier(Language:languageID);
  270. native Langs_GetLanguageID(identifier[]);
  271. native Langs_ResetAll();
  272. native Langs_SaveEnteredData();
  273. native bool:Langs_LoadLanguage(LanguagelanguageID);
  274. native Langs_LoadAll();
  275. native Langs_AddLanguage(identifer[], name[]);
  276. native Langs_AddFile(filename[], path[] = "");
  277. native Langs_GetLanguageName(Language:languageID);
  278. native Langs_IsValid(Language:languageID);
  279. native
  280. */
  281. #if defined _YSI_CORE_LANGUAGES
  282. #include "YSI/Core/YSI_languages.own"
  283. #endif
  284. /*
  285. native _CORE_PLAYER_FUNCTIONS_();
  286. native
  287. native Language:Player_GetPlayerLanguage(playerid);
  288. native Player_OnPlayerConnect(playerid);
  289. native Player_Player();
  290. native Player_OnPlayerDisconnect(playerid, reason);
  291. native Player_SetPlayerLanguage(playerid, Language:languageID);
  292. native Player_FindShortCut(playerid, shortcut, cmdname[]);
  293. native Player_SetTag(tag[]);
  294. native Player_WriteString(name[], data[]);
  295. native Player_WriteInt(name[], data);
  296. native Player_WriteFloat(name[], Float:data, accuracy = 6);
  297. native
  298. */
  299. #if defined _YSI_CORE_PLAYER
  300. #include "YSI/Core/YSI_player.own"
  301. #endif
  302. /*----------------------------------------------------------------------------*-
  303. ======================
  304. /YSI/Server/ Libraries
  305. ======================
  306. -*----------------------------------------------------------------------------*/
  307. /*
  308. native _SERVER_MODULE_FUNCTIONS_();
  309. native
  310. native Modules_Modules();
  311. native Modules_IsActive(Module:moduleID);
  312. native Modules_IsPrivate(Module:moduleID);
  313. native bool:Modules_LoadAll();
  314. native Modules_CloseAll();
  315. native Modules_Close(name[]);
  316. native Modules_CloseID(Module:id);
  317. native Module:Modules_Register(name[], tag[], hidden);
  318. native Modules_GetModuleCount();
  319. native Modules_GetVisibleCount();
  320. native Modules_GetHiddenCount();
  321. native
  322. */
  323. #if defined _YSI_SERVER_MODULES
  324. #include "YSI/Server/YSI_modules.own"
  325. #endif
  326. /*----------------------------------------------------------------------------*-
  327. ======================
  328. /YSI/Visual/ Libraries
  329. ======================
  330. -*----------------------------------------------------------------------------*/
  331. /*
  332. native _VISUAL_OBJECT_FUNCTIONS_();
  333. native
  334. native Object_Object();
  335. native Object_AddToPlayer(objectid, playerid);
  336. native Object_AddToWorld(objectid, virtualworld);
  337. native Object_AddToAllPlayers(objectid);
  338. native Object_AddToAllWorlds(objectid);
  339. native Object_RemoveFromPlayer(objectid, playerid);
  340. native Object_RemoveFromWorld(objectid, virtualworld);
  341. native Object_RemoveFromAllPlayers(objectid);
  342. native Object_RemoveFromAllWorlds(objectid);
  343. native Object_OnPlayerDisconnect(playerid, reason);
  344. native Object_IsGlobal(objectid);
  345. native
  346. native MoveDynamicObject(objectid, Float:X, Float:Y, Float:Z, Float:S);
  347. native StopDynamicObject(objectid);
  348. native IsValidDynamicObject(objectid);
  349. native CreateDynamicObject(model, Float:X, Float:Y, Float:Z, Float:RX = 0.0, Float:RY = 0.0, Float:RZ = 0.0);
  350. native CreatePlayerDynamicObject(playerid, model, Float:X, Float:Y, Float:Z, Float:RX = 0.0, Float:RY = 0.0, Float:RZ = 0.0);
  351. native CreateVWDynamicObject(virtualworld, model, Float:X, Float:Y, Float:Z, Float:RX = 0.0, Float:RY = 0.0, Float:RZ = 0.0);
  352. native CreatePlayerVWDynamicObject(playerid, virtualworld, model, Float:X, Float:Y, Float:Z, Float:RX = 0.0, Float:RY = 0.0, Float:RZ = 0.0);
  353. native DestroyDynamicObject(objectid);
  354. native GetDynamicObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
  355. native GetDynamicObjectRot(objectid, &Float:RX, &Float:RY, &Float:RZ);
  356. native SetDynamicObjectPos(objectid, Float:X, Float:Y, Float:Z);
  357. native SetDynamicObjectRot(objectid, Float:RX, Float:RY, Float:RZ);
  358. native AttachDynamicObjectToPlayer(objectid, playerid, Float:offX, Float:offY, Float:offZ, Float:rX, Float:rY, Float:rZ);
  359. native DetachDynamicObjectFromPlayer(objectid);
  360. native IsValidModel(modelid);
  361. native
  362. */
  363. #if defined _YSI_VISUAL_OBJECTS
  364. #include "YSI/Visual/YSI_objects.own"
  365. #endif
  366. /*
  367. native _VISUAL_CHECKPOINT_FUNCTIONS_();
  368. native
  369. native Checkpoint_Checkpoint();
  370. native Checkpoint_SetVisible(cpid, set);
  371. native Checkpoint_SetAllWorlds(cpid, set);
  372. native Checkpoint_SetAllPlayers(cpid, set);
  373. native Checkpoint_AddPlayer(cpid, playerid);
  374. native Checkpoint_RemovePlayer(cpid, playerid);
  375. native Checkpoint_AddVW(cpid, vwid);
  376. native Checkpoint_RemoveVW(cpid, vwid);
  377. native Checkpoint_HasPlayer(cpid, playerid);
  378. native Checkpoint_HasPlayerNoWorld(cpid, playerid);
  379. native Checkpoint_Get(playerid);
  380. native Checkpoint_OnPlayerEnterCheckpoint(playerid);
  381. native Checkpoint_OnPlayerLeaveCheckpoint(playerid);
  382. native Checkpoint_OnPlayerConnect(playerid);
  383. native Checkpoint_IsGlobal(checkpoint);
  384. native
  385. native CreateCheckpoint(Float:x, Float:y, Float:z, Float:size, players = 0, vws = 0);
  386. native IsValidCheckpoint(cpid);
  387. native DestroyCheckpoint(cpid);
  388. native
  389. */
  390. #if defined _YSI_VISUAL_CHECKPOINTS
  391. #include "YSI/Visual/YSI_checkpoints.own"
  392. #endif
  393. /*
  394. native _VISUAL_RACE_FUNCTIONS_();
  395. native
  396. native Race_Race();
  397. native Race_OnPlayerEnterRaceCP(playerid);
  398. native Race_OnPlayerStateChange(playerid, newstate, oldstate);
  399. native Race_OnPlayerDisconnect(playerid, reason);
  400. native Race_Create(laps = 0, entry = 0, countdown = 3, bool:arial = 0, bool:fixedPrize = 1, exitTime = 0, interior = 0, world = 0, bool:restart = 0);
  401. native Race_AddCheckpoint(raceid, Float:x, Float:y, Float:z);
  402. native Race_AddStart(raceid, Float:x, Float:y, Float:z, Float:a);
  403. native Race_SetFixedWin(raceid, set);
  404. native Race_SetArial(raceid, set);
  405. native Race_PlayerLeave(playerid, refund = 0);
  406. native Race_SetCountdown(raceid, countdown);
  407. native Race_SetInterior(raceid, interior);
  408. native Race_SetWorld(raceid, world);
  409. native Race_SetPrize(raceid, position, amount);
  410. native Race_SetExitTime(raceid, time);
  411. native Race_IsActive(raceid);
  412. native Race_SetLaps(raceid, laps);
  413. native Race_SetEntry(raceid, cost);
  414. native Race_GetPlayerExitedTime(playerid);
  415. native Race_PlayerJoin(playerid, race);
  416. native Race_Start(race);
  417. native Race_GetPlayerRaceTime(playerid);
  418. native Race_GetPlayerPosition(playerid);
  419. native
  420. */
  421. #if defined _YSI_VISUAL_RACE
  422. #include "YSI/Visual/YSI_race.own"
  423. #endif
  424. /*
  425. native _VISUAL_AREA_FUNCTIONS_();
  426. native
  427. native Area_Area();
  428. native Area_OnPlayerConnect(playerid);
  429. native Area_Delete(area);
  430. native Area_AddCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz);
  431. native Area_AddBox(Float:minx, Float:miny, Float:maxx, Float:maxy);
  432. native Area_AddCircle(Float:x, Float:y, Float:r, Float:h = 10000.0);
  433. native Area_AddSphere(Float:x, Float:y, Float:z, Float:r);
  434. native Area_AddPoly(Float:x1, Float:y1, Float:x2, Float:y2, Float:x3, Float:y3, Float:...);
  435. native Area_GetPlayerArea(playerid);
  436. native Area_SetPlayer(area, playerid, set);
  437. native Area_SetAllPlayers(area, set);
  438. native Area_SetAllWorlds(area, set);
  439. native Area_SetWorld(area, world, set);
  440. native Area_IsValid(area);
  441. native
  442. */
  443. #if defined _YSI_VISUAL_AREAS
  444. #include "YSI/Visual/YSI_areas.own"
  445. #endif
  446. /*----------------------------------------------------------------------------*-
  447. ========================
  448. /YSI/Gamemode/ Libraries
  449. ========================
  450. -*----------------------------------------------------------------------------*/
  451. /*
  452. native _GAMEMODE_PROPERTY_FUNCTIONS_();
  453. native
  454. native Property_OnPlayerSelectedMenuRow(playerid, row);
  455. native Property_OnPlayerExitedMenu(playerid);
  456. native Property_OnPlayerEnterCheckpointEx(playerid, cpid);
  457. native Property_OnPlayerLeaveCheckpointEx(playerid, cpid);
  458. native Property_OnPlayerSpawn(playerid);
  459. native Property_OnPlayerConnect(playerid);
  460. native Property_OnPlayerLeaveArea(playerid, area);
  461. native Property_OnPlayerEnterArea(playerid, area);
  462. native Property_GetPlayerPropCount(playerid);
  463. native Property_GetLink(property);
  464. native Property_GetType(property);
  465. native Property_IsValid(property);
  466. native Property_Bank(playerid, amount);
  467. native Property_SavePlayerWeapon(playerid, weaponslot, ammo);
  468. native Property_SaveWeapons(playerid);
  469. native Property_LoadWeapons(playerid, identifier[], text[]);
  470. native Property_SaveBank(playerid);
  471. native Property_LoadBank(playerid, identifier[], text[]);
  472. native
  473. native CreateProperty(name[], Float:x, Float:y, Float:z, price, reward, interval = 60000, sell = 0, multi = 0, reduce = 0, increase = 0);
  474. native CreateBank(Float:x, Float:y, Float:z, name[] = "");
  475. native CreateAmmunation(Float:x, Float:y, Float:z, spawn, instant, weapon, ammo, price, ...);
  476. native CreateMoneyArea(area, money = 100, interval = 10000);
  477. native CreateMoneyPoint(Float:x, Float:y, Float:z, Float:s, money = 100, interval = 10000);
  478. native CreateTeleport(Float:sx, Float:sy, Float:sz, Float:tx, Float:ty, Float:tz, cost = 0, name[] = "");
  479. native CreateForbiddenArea(area, kick = 0, health = 1000, invert = 0, name[] = "");
  480. native DestroyProperty(property);
  481. native
  482. */
  483. #if defined _YSI_GAMEMODE_PROPERTIES
  484. #include "YSI/Gamemode/YSI_properties.own"
  485. #endif
  486. /*----------------------------------------------------------------------------*-
  487. ======================
  488. /YSI/System/ Libraries
  489. ======================
  490. -*----------------------------------------------------------------------------*/
  491. /*
  492. native _SYSTEM_DEFAULT_FUNCTIONS_();
  493. native
  494. native Default_Setup();
  495. native Default_OnGameModeInit();
  496. native Default_OnGameModeExit();
  497. native Default_OnFilterScriptInit();
  498. native Default_OnFilterScriptExit();
  499. native Default_OnPlayerConnect(playerid);
  500. native Default_OnPlayerDisconnect(playerid, reason);
  501. native Default_OnPlayerSpawn(playerid);
  502. native Default_OnPlayerDeath(playerid, killerid, reason);
  503. native Default_OnVehicleSpawn(vehicleid);
  504. native Default_OnVehicleDeath(vehicleid, killerid);
  505. native Default_OnPlayerText(playerid, text[]);
  506. native Default_OnPlayerCommandText(playerid, cmdtext[]);
  507. native Default_OnPlayerInfoChange(playerid);
  508. native Default_OnPlayerRequestClass(playerid, classid);
  509. native Default_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
  510. native Default_OnPlayerExitVehicle(playerid, vehicleid);
  511. native Default_OnPlayerStateChange(playerid, newstate, oldstate);
  512. native Default_OnPlayerEnterCheckpoint(playerid);
  513. native Default_OnPlayerLeaveCheckpoint(playerid);
  514. native Default_OnPlayerEnterRaceCheckpoint(playerid);
  515. native Default_OnPlayerLeaveRaceCheckpoint(playerid);
  516. native Default_OnRconCommand(cmd[]);
  517. native Default_OnPlayerPrivmsg(playerid, recieverid, text[]);
  518. native Default_OnPlayerRequestSpawn(playerid);
  519. native Default_OnObjectMoved(objectid);
  520. native Default_OnPlayerObjectMoved(playerid, objectid);
  521. native Default_OnPlayerPickUpPickup(playerid, pickupid);
  522. native Default_OnVehicleMod(vehicleid, componentid);
  523. native Default_OnVehiclePaintjob(vehicleid, paintjobid);
  524. native Default_OnVehicleRespray(vehicleid, color1, color2);
  525. native Default_OnPlayerSelectedMenuRow(playerid, row);
  526. native Default_OnPlayerExitedMenu(playerid);
  527. native
  528. native LoadScript();
  529. native
  530. */
  531. #if defined _YSI_SYSTEM_DEFAULT
  532. #include "YSI/System/YSI_default.own"
  533. #endif
  534. /*
  535. native _SYSTEM_GROUP_FUNCTIONS_();
  536. native
  537. native Group_NameGroup(group, name[]);
  538. native Group_SetCommand(group, command[], set);
  539. native Group_SetCommandByID(group, command, set);
  540. native Group_UpdatePlayerCommand(command, playerid);
  541. native Group_SetCheckpoint(group, checkpoint, set);
  542. native Group_UpdatePlayerCheckpoint(checkpoint, playerid);
  543. native Group_SetObject(group, object, set);
  544. native Group_UpdatePlayerObject(object, playerid);
  545. native Group_SetArea(group, area, set);
  546. native Group_UpdatePlayerArea(area, playerid);
  547. native Group_SetProperty(group, property, set);
  548. native Group_UpdatePlayerProperty(property, playerid);
  549. native Group_AddPlayer(group, playerid);
  550. native Group_RemovePlayer(group, playerid);
  551. native Group_RemovePlayerFromAllGroups(playerid);
  552. native Bit:Group_GetGroupMembers(group);
  553. native Group_GetGroups(playerid);
  554. native
  555. */
  556. #if defined _YSI_SYSTEM_GROUPS
  557. #include "YSI/System/YSI_groups.own"
  558. #endif
  559. /*
  560. native _SYSTEM_SCRIPT_FUNCTIONS_();
  561. native
  562. native Script_OnGameModeInit();
  563. native Script_OnGameModeExit();
  564. native Script_OnFilterScriptInit();
  565. native Script_OnFilterScriptExit();
  566. native Script_OnPlayerConnect(playerid);
  567. native Script_OnPlayerDisconnect(playerid, reason);
  568. native Script_OnPlayerSpawn(playerid);
  569. native Script_OnPlayerDeath(playerid, killerid, reason);
  570. native Script_OnVehicleSpawn(vehicleid);
  571. native Script_OnVehicleDeath(vehicleid, killerid);
  572. native Script_OnPlayerText(playerid, text[]);
  573. native Script_OnPlayerCommandText(playerid, cmdtext[]);
  574. native Script_OnPlayerInfoChange(playerid);
  575. native Script_OnPlayerRequestClass(playerid, classid);
  576. native Script_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
  577. native Script_OnPlayerExitVehicle(playerid, vehicleid);
  578. native Script_OnPlayerStateChange(playerid, newstate, oldstate);
  579. native Script_OnPlayerEnterCheckpoint(playerid);
  580. native Script_OnPlayerLeaveCheckpoint(playerid);
  581. native Script_OnPlayerEnterRaceCheckpoint(playerid);
  582. native Script_OnPlayerLeaveRaceCheckpoint(playerid);
  583. native Script_OnRconCommand(cmd[]);
  584. native Script_OnPlayerPrivmsg(playerid, recieverid, text[]);
  585. native Script_OnPlayerRequestSpawn(playerid);
  586. native Script_OnObjectMoved(objectid);
  587. native Script_OnPlayerObjectMoved(playerid, objectid);
  588. native Script_OnPlayerPickUpPickup(playerid, pickupid);
  589. native Script_OnVehicleMod(vehicleid, componentid);
  590. native Script_OnVehiclePaintjob(vehicleid, paintjobid);
  591. native Script_OnVehicleRespray(vehicleid, color1, color2);
  592. native Script_OnPlayerSelectedMenuRow(playerid, row);
  593. native Script_OnPlayerExitedMenu(playerid);
  594. native Script_OnPlayerLogin(playerid, data[]);
  595. native Script_OnPlayerLogout(playerid);
  596. native Script_OnPlayerEnterCheckpointEx(playerid, cpid);
  597. native Script_OnPlayerLeaveCheckpointEx(playerid, cpid);
  598. native Script_OnPlayerEnterArea(playerid, area);
  599. native Script_OnPlayerLeaveArea(playerid, area);
  600. native
  601. */
  602. #if defined _YSI_SYSTEM_SCRIPT
  603. #include "YSI/System/YSI_script.own"
  604. #endif
  605. /*----------------------------------------------------------------------------*-
  606. ===================
  607. /YSI/ Libraries (2)
  608. ===================
  609. -*----------------------------------------------------------------------------*/
  610. /*
  611. native _POST_FUNCTIONS_();
  612. native
  613. */
  614. #include "YSI/YSI_post.own"