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

[CSGO] Making a database for my plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
safetyblades
New Member
Join Date: Aug 2023
Old 09-25-2023 , 19:01   [CSGO] Making a database for my plugin
Reply With Quote #1

Can anyone help me make a database for my plugin

The plugin lets the user access a menu for loadouts (ex rimary Weapon for CT = M4A4) but the default is M4A1-S and if the player reconnects they get the default one again instead of the one they inserted before (M4A4)

I need a database that stores the user weapon/variable and everytime he rejoins the server, he still has the same loadout has he did before
safetyblades is offline
imburnt916
Junior Member
Join Date: Apr 2015
Location: California
Old 10-01-2023 , 00:45   Re: [CSGO] Making a database for my plugin
Reply With Quote #2

I would recommend looking into something using Cookies, https://sm.alliedmods.net/new-api/clientprefs/Cookie

It will solve your problem without using databases, however if you really NEED a database you may want to specify the question a bit more.
__________________
Sourcemod developer and server manager.
imburnt916 is offline
101
Member
Join Date: Nov 2023
Old 12-03-2023 , 05:38   Re: [CSGO] Making a database for my plugin
Reply With Quote #3

Quote:
Originally Posted by safetyblades View Post
Can anyone help me make a database for my plugin

The plugin lets the user access a menu for loadouts (ex rimary Weapon for CT = M4A4) but the default is M4A1-S and if the player reconnects they get the default one again instead of the one they inserted before (M4A4)

I need a database that stores the user weapon/variable and everytime he rejoins the server, he still has the same loadout has he did before
if you provide us your game weapons full-names in array like this :
PHP Code:
#define num_of_weapons X
new const String:my_game_Primary_Weapons[num_of_weapons][] =
{
    
"weapon_molotov",
    
"weapon_pipe_bomb",
    
"weapon_vomitjar",
    
"Weapon_X",
    ...
    ...
    ...

so that we can assist you as quickly as possible .
101 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 20:23.


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