Raised This Month: $ Target: $400
 0% 

[INC] Stringtables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-21-2019 , 23:29   [INC] Stringtables
Reply With Quote #1

Not so long ago I made a plugin Stringtables control and thought that it is better to make a methodmap and add support for other games not only L4D2 (As soon as possible I will try to add other games)

You can create your own tables and store data in it, but keep in mind that all tables are destroyed if the map end.

Currently supported: all source engine games

Example
PHP Code:
#pragma semicolon 1
#pragma newdecls required
 
#include <sourcemod>
#include <sdktools>

#include <stringtables_data>

INetworkStringTableContainer container;

public 
void OnPluginStart()
{
    
container INetworkStringTableContainer();
    
    
RegConsoleCmd("sm_createtable"sm_createtable);
    
RegConsoleCmd("sm_cleartables"sm_cleantables);
}

public 
Action sm_createtable (int clientint args)
{
    
container.SetStateCreate(true);
    
INetworkStringTable newtable container.CreateStringTable("new_table"5);
    
container.SetStateCreate(false);
}

public 
Action sm_cleantables (int clientint args)
{
    
int numtables container.GetNumTables();
    
    
INetworkStringTable table;
    
    for (
int inumtablesi++)
    {
        
table INetworkStringTable(i);
        
table.DeleteStrings();
    }

Attached Files
File Type: inc stringtables_data.inc (11.4 KB, 233 views)
__________________
cry

Last edited by BHaType; 07-13-2021 at 23:08.
BHaType is offline
Send a message via AIM to BHaType
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 11-26-2019 , 20:15   Re: [INC] Stringtables
Reply With Quote #2

nice work
__________________
Kxnrl is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 12-11-2019 , 17:04   Re: [INC] Stringtables
Reply With Quote #3

Is it possible to make it for sm 1.9 or later versions?
__________________
Sorry for my pure English...

Last edited by ReCreator; 12-11-2019 at 17:04.
ReCreator is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-12-2019 , 01:31   Re: [INC] Stringtables
Reply With Quote #4

Updated

PHP Code:
Updated some sigs
Fixed function this.DeleteStrings 
__________________
cry

Last edited by BHaType; 12-12-2019 at 01:31.
BHaType is offline
Send a message via AIM to BHaType
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-12-2019 , 01:33   Re: [INC] Stringtables
Reply With Quote #5

Quote:
Originally Posted by ReCreator View Post
Is it possible to make it for sm 1.9 or later versions?
Just remove the GameData method from the inc file
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Colony of USA
Old 12-16-2019 , 07:47   Re: [INC] Stringtables
Reply With Quote #6

So, you finally found new sigs for updated L4D1 engine?
Nice!
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles] [Donate]
Dragokas is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-17-2019 , 00:30   Re: [INC] Stringtables
Reply With Quote #7

Quote:
Originally Posted by Dragokas View Post
So, you finally found new sigs for updated L4D1 engine?
Nice!
Yes I got it now should work without errors
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
extr1m725
Member
Join Date: Oct 2014
Old 01-01-2020 , 11:13   Re: [INC] Stringtables
Reply With Quote #8

Hi, when using on the CS: GO server, the server crashes.
extr1m725 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 01-01-2020 , 19:43   Re: [INC] Stringtables
Reply With Quote #9

Quote:
Originally Posted by extr1m725 View Post
Hi, when using on the CS: GO server, the server crashes.
Show me code and what OS do you have?
__________________
cry

Last edited by BHaType; 01-01-2020 at 19:43.
BHaType is offline
Send a message via AIM to BHaType
extr1m725
Member
Join Date: Oct 2014
Old 01-02-2020 , 08:57   Re: [INC] Stringtables
Reply With Quote #10

I took the code from the header just to test it. Windows OS

Last edited by extr1m725; 01-02-2020 at 08:57.
extr1m725 is offline
Reply


Thread Tools
Display Modes

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 02:57.


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