Initial commit
This commit is contained in:
42
scripting/include/store/store-shop.inc
Normal file
42
scripting/include/store/store-shop.inc
Normal file
@@ -0,0 +1,42 @@
|
||||
#if defined _store_shop_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _store_shop_included
|
||||
|
||||
/**
|
||||
* Opens the shop menu for a client.
|
||||
*
|
||||
* @param client Client index.
|
||||
*
|
||||
* @noreturn
|
||||
*/
|
||||
native Store_OpenShop(client);
|
||||
|
||||
/**
|
||||
* Opens the shop menu for a client in a specific category.
|
||||
*
|
||||
* @param client Client index.
|
||||
* @param categoryId The category that you want to open.
|
||||
*
|
||||
* @noreturn
|
||||
*/
|
||||
native Store_OpenShopCategory(client, categoryId);
|
||||
|
||||
public SharedPlugin:__pl_store_shop =
|
||||
{
|
||||
name = "store-shop",
|
||||
file = "store-shop.smx",
|
||||
#if defined REQUIRE_PLUGIN
|
||||
required = 1,
|
||||
#else
|
||||
required = 0,
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined REQUIRE_PLUGIN
|
||||
public __pl_store_shop_SetNTVOptional()
|
||||
{
|
||||
MarkNativeAsOptional("Store_OpenShop");
|
||||
MarkNativeAsOptional("Store_OpenShopCategory");
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user