Initial commit
This commit is contained in:
46
scripting/include/store/store-loadouts.inc
Normal file
46
scripting/include/store/store-loadouts.inc
Normal file
@@ -0,0 +1,46 @@
|
||||
#if defined _store_loadouts_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _store_loadouts_included
|
||||
|
||||
//Forwards
|
||||
forward void Store_OnClientLoadoutChanged(int client);
|
||||
|
||||
/**
|
||||
* Opens the loadout menu for a client.
|
||||
*
|
||||
* @param client Client index.
|
||||
*
|
||||
* @noreturn
|
||||
*/
|
||||
native void Store_OpenLoadoutMenu(int client);
|
||||
|
||||
/**
|
||||
* Gets client current loadout.
|
||||
*
|
||||
* @param client Client index.
|
||||
*
|
||||
* @return Loadout index.
|
||||
*/
|
||||
native int Store_GetClientCurrentLoadout(int client);
|
||||
native int Store_GetClientLoadout(int client);
|
||||
|
||||
public SharedPlugin __pl_store_loadouts =
|
||||
{
|
||||
name = "store-loadouts",
|
||||
file = "store-loadouts.smx",
|
||||
#if defined REQUIRE_PLUGIN
|
||||
required = 1,
|
||||
#else
|
||||
required = 0,
|
||||
#endif
|
||||
};
|
||||
|
||||
#if defined REQUIRE_PLUGIN
|
||||
public __pl_store_loadouts_SetNTVOptional()
|
||||
{
|
||||
MarkNativeAsOptional("Store_OpenLoadoutMenu");
|
||||
MarkNativeAsOptional("Store_GetClientCurrentLoadout");
|
||||
MarkNativeAsOptional("Store_GetClientLoadout");
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user