Raised This Month: $51 Target: $400
 12% 

[INS] Theater Items API (2021-06-04)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
gandor233
Junior Member
Join Date: Jan 2020
Plugin ID:
7664
Plugin Version:
1.0
Plugin Category:
Technical/Development
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A theater items API for insurgency(2014)
    Old 06-03-2021 , 16:00   [INS] Theater Items API (2021-06-04)
    Reply With Quote #1

    A Theater Items API For Insurgency(2014)
    This API provides the function of querying the class name of gears and weapon upgrades of player equipment, and also provides the function of giving weapon the weapon upgrade.

    Command
    PHP Code:
    "sm_update_theater_items" // Force update the theater items name record list
    "listweapons" // List all weapons in the currently loaded theater
    "listupgrades" // List all weapon upgrades in the currently loaded theater
    "listexplosives" // List all explosives in the currently loaded theater
    "listplayergear" // List all player gear in the currently loaded theater 
    Installation Guide
    Code:
    Put TheaterItemsAPI.smx into "sourcemod\plugins\"
    Put TheaterItemsAPI.inc into "sourcemod\scripting\include\"
    Add "#include <TheaterItemsAPI>" at the top of your plugin code and check the TheaterItemsAPI.inc file when you use it
    Main API
    Spoiler

    Example Code
    Spoiler


    中文INS服务器如使用此插件请注明和鸣谢作者。

    Link

    Last edited by gandor233; 09-26-2022 at 06:17.
    gandor233 is offline
    `666
    AlliedModders Donor
    Join Date: Jan 2006
    Old 09-07-2021 , 11:47   Re: [INS] Theater Items API (2021-06-04)
    Reply With Quote #2

    Thank you.
    You must add pages(like "sm plugins #") or get errors when too many items "SendNetMsg: stream[netchan_t::unreliabledata] buffer overflow (maxsize = 4000)!"

    Last edited by `666; 09-07-2021 at 11:56. Reason: suggestion
    `666 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:30.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode