Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.62 KB | None | 0 0
  1. #if defined _Store_INCLUDED
  2.     #endinput
  3. #endif
  4.  
  5. #define _Store_INCLUDED
  6.  
  7. public SharedPlugin __pl_store =
  8. {
  9.     name = "store",
  10.     file = "store.smx",
  11. #if defined REQUIRE_PLUGIN
  12.     required = 1
  13. #else
  14.     required = 0
  15. #endif
  16. };
  17.  
  18.  
  19. #define ITEM_NAME_LENGTH    64
  20. #define STORE_MAX_ITEMS     1024
  21. #define STORE_MAX_HANDLERS  64
  22. #define STORE_MAX_PLANS     8
  23. #define STORE_MAX_SLOTS     6
  24.  
  25. enum Store_Item
  26. {
  27.     String:szName[ITEM_NAME_LENGTH],
  28.     String:szUniqueId[32],
  29.     String:szDesc[128],
  30.     String:szSteam[256],
  31.     iData,
  32.     iPrice,
  33.     iParent,
  34.     iHandler,
  35.     iPlans,
  36.     iTeam,
  37.     iLevels,
  38.     iCaseType,
  39.     bool:bIgnore,
  40.     bool:bBuyable,
  41.     bool:bGiftable,
  42.     bool:bCompose,
  43.     bool:bVIP
  44. }
  45.  
  46. native int Store_RegisterHandler(const char[] type, Function mapstart, Function reset, Function config, Function use, Function remove, bool equipable = true, bool raw = false, bool disposable = false);
  47. native int Store_RegisterMenuHandler(const char[] identifier, Function menu, Function handler);
  48. native int Store_SetDataIndex(int itemid, int index);
  49. native int Store_GetDataIndex(int itemid);
  50. native int Store_GetEquippedItem(int client, const char[] type, int slot = 0);
  51. native int Store_DisplayPreviousMenu(int client);
  52. native int Store_SetClientMenu(int client, int num);
  53. native int Store_GetClientCredits(int client);
  54. native int Store_SetClientCredits(int client, int credits, const char[] log = "未知");
  55. native int Store_DisplayConfirmMenu(int client, const char[] title, Function callback, any data);
  56. native int Store_GetTypeId(const char[] type);
  57. native int Store_GetItemId(const char[] uid);
  58. native int Store_GetItemData(int itemid, const any[] local);
  59. native int Store_GiveItem(int client, int itemid, int purchase = 0, int expiration = 0, int price = 0);
  60. native int Store_RemoveItem(int client, int itemid);
  61. native int Store_GetClientID(int client);
  62. native int Store_GetItemExpiration(int client, int itemid);
  63. native int Store_GetSkinLevel(int client);
  64. native bool Store_IsClientBanned(int client);
  65. native bool Store_IsClientLoaded(int client);
  66. native bool Store_HasClientItem(int client, int itemid);
  67. native bool Store_ExtClientItem(int client, int itemid, int expiration);
  68. native bool Store_IsItemInBoughtPackage(int client, int itemid, int uid = -1);
  69. native bool Store_HasPlayerSkin(int client);
  70. native bool Store_GetPlayerSkin(int client, char[] skin, int maxLen);
  71. native void Store_SaveClientAll(int client);
  72. native bool Store_IsPlayerTP(int client);
  73. native bool Store_IsPlayerHide(int client);
  74. native bool Store_IsStoreSpray(int client);
  75.  
  76. native ArrayList Store_GetItemList(); // List<Store_Item>
  77.  
  78. forward void   Store_OnStoreInit(Handle store_plugin);
  79. forward void   Store_OnStoreAvailable(ArrayList items); // ArrayList will be automatically freed.  List<Store_Item>
  80. forward void   Store_OnClientLoaded(int client);
  81. forward Action Store_OnClientBuyItem(int client, const char[] uid, int length, int price);
  82. forward void   Store_OnClientPurchased(int client, const char[] uid, int length, int price);
  83. forward bool   Store_OnPlayerSkinDefault(int client, int team, char[] skin, int skinLen, char[] arms, int armsLen);
  84. forward Action Store_OnFPDeathCamera(int client);
  85. forward bool   Store_OnSetPlayerSkin(int client, char skin[128], char arms[128]);
  86.  
  87. // CP Support
  88. forward Action CP_OnChatMessage(int& client, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool& processcolors, bool& removecolors);
  89. forward void   CP_OnChatMessagePost(int client, ArrayList recipients, const char[] flags, const char[] name, const char[] message, bool processColors, bool removeColors);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement