API

You need to use StoreApi to use the API.

API codes you can use

# Get player credits
public int GetPlayerCredits(CCSPlayerController player);

# Set player credits
public void SetPlayerCredits(CCSPlayerController player, int value);

# Give credits to player
public void GivePlayerCredits(CCSPlayerController player, int amount);

# Make player to purchase an item
public bool Item_Purchase(CCSPlayerController player, Store_Item item);

# Make player to equip an item
public bool Item_Purchase(CCSPlayerController player, Dictionary<string, string> item)

# Make player to unequip an item
public bool Item_Unequip(CCSPlayerController player, Dictionary<string, string> item);

# Make player to sell an item
public bool Item_Sell(CCSPlayerController player, Dictionary<string, string> item);

# Gets if player has an item
public bool Item_PlayerHas(CCSPlayerController player, string type, string uniqueId);

# Gets if player is using an item
public bool Item_PlayerUsing(CCSPlayerController player, string type, string uniqueId);

# Gets if item is in json
public bool Item_IsInJson(string type, string uniqueId);

# Gets an item
public Dictionary<string, string>? GetItem(string type, string UniqueId)

# Gets items of player
public List<Store_Item> GetPlayerItems(CCSPlayerController player);

# Gets equipments of player
public List<Store_Equipment> GetPlayerEquipments(CCSPlayerController player);

# Gets if player is vip
public bool IsPlayerVip(CCSPlayerController player);

# Registers an item
public void RegisterType(string type, Action mapStart, Func<CCSPlayerController, Dictionary<string, string>, bool> equip, Func<CCSPlayerController, Dictionary<string, string>, bool> unequip, bool equipable, bool? alive = false);

Example of adding item type:

Last updated