42 lines
787 B
PHP
42 lines
787 B
PHP
|
#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
|