Raised This Month: $319 Target: $400
 79%   Almost there!

[L4D2] Shop [v2.8 | 27 July 2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-22-2021 , 11:13   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #41

Did you try Psyk0tik version in this POST?
__________________
Marttt is online now
VYRNACH_GAMING
Junior Member
Join Date: Sep 2021
Old 09-22-2021 , 13:31   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #42

Quote:
Originally Posted by Marttt View Post
Did you try Psyk0tik version in this POST?
Is it supposed to be a smx plugin file? I'm not able to get it to compile. I've tried adding it as a scripting sp file as well without success
EDIT: Managed to compile it myself. Had to do a hard restart of the servers but it now works! I feel like an idiot now thinking it was just a "normal scripting file". Thanks for the help
Edit2: Attached the compiled plugin by Psyk0tik for those of who isn't good with compiling
Edit3: removed attachment. Use the one from OP updated in first page
__________________

Last edited by VYRNACH_GAMING; 09-30-2021 at 05:10. Reason: Resolved Edit2
VYRNACH_GAMING is offline
Psyk0tik
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Old 09-22-2021 , 13:45   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #43

Quote:
Originally Posted by VYRNACH_GAMING View Post
Is it supposed to be a smx plugin file? I'm not able to get it to compile. I've tried adding it as a scripting sp file as well without success
You have to compile it locally. Make sure you have all the files from this plugin installed, including the .inc file.

When you download any SM build, you should get a package that includes a "scripting" folder that contains "compile.exe" and "spcomp.exe".

Place this plugin's .sp file in the "scripting" folder and you can either just run "compile.exe" or drag the .sp file to "spcomp.exe". If you run "compile.exe" the .smx file will appear in the "compiled" folder, otherwise it will appear in the same location as the .sp file.
__________________
AFK like JFK
--
Donate to Motivate
--
Get updated L4D/L4D2 gamedata signatures here.
--
PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
Psyk0tik is offline
pan0s
Member
Join Date: Nov 2017
Old 09-24-2021 , 13:18   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #44

Quote:
Originally Posted by VYRNACH_GAMING View Post
Is it supposed to be a smx plugin file? I'm not able to get it to compile. I've tried adding it as a scripting sp file as well without success
EDIT: Managed to compile it myself. Had to do a hard restart of the servers but it now works! I feel like an idiot now thinking it was just a "normal scripting file". Thanks for the help
Edit2: Attached the compiled plugin by Psyk0tik for those of who isn't good with compiling
lol, I forget compiling the .sp to .smx. .
I suggest you using the latest version of this plugin as the latest source is merged Psyk0tik's contribution as well as has fixed the bug reported by ryxzxz.
BTW, I have re-updated .smx

Last edited by pan0s; 09-24-2021 at 13:18.
pan0s is offline
VYRNACH_GAMING
Junior Member
Join Date: Sep 2021
Old 09-30-2021 , 05:11   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #45

is it possible to migrate and change this plugin to use a mysql(I'm using mariadb which is similar) database instead? I get sometimes get serious lag when many people join on my big server which I assume is because of the un-threaded connection to the sqlite. I'm willing to commission if this requires some effort
EDIT: managed to get it to work using a dirty fix but it seems to work well with mysql/mariadb. Tell me if anyone wants the code for it
__________________

Last edited by VYRNACH_GAMING; 10-01-2021 at 04:43. Reason: resolved
VYRNACH_GAMING is offline
azureblue
Junior Member
Join Date: Oct 2021
Old 10-19-2021 , 15:56   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #46

how i can add other plugin into special shop list? is there any tutorial? because i'm not good at coding

btw thanks alot for great plugin. i really love this plugin !
azureblue is offline
pan0s
Member
Join Date: Nov 2017
Old Yesterday , 04:48   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #47

Quote:
Originally Posted by azureblue View Post
how i can add other plugin into special shop list? is there any tutorial? because i'm not good at coding

btw thanks alot for great plugin. i really love this plugin !
It is easy to do it. Just a few steps.
Step 1. Copy all code from another plugin into the corresponding block.
PHP Code:
//Special Functions                // Step 2. add new SF name and index
#define NEW_SF        6 // <-- Your new SF name is NEW_SF here. The value is last SF index +1 (i.e. RED_AMMO is last before you add new SF here, and its index is 5, so 5+1 = 6
#define SF_SIZE         7 // <-- SF size, value is NEW_SF +1

// Special functions               // Step 3. add translation name
char g_sSF[][] = 
{
   ....
"NEW_SF",  // <--used for translation file 
};

// Step 4. set prices
cvar_costs[SHOP_SF_TRIAL][NEW_SF]  // <-- Set NEW_SF trail price
cvar_costs[SHOP_SF_PERMANENT][NEW_SF// <--Set NEW_SF permanent price

// Step 5. Add checking to the new SF main functional block , NEW_SF of !IsSFOn(client, NEW_SF) here is defined by you on #define NEW_SF        6
if(!IsSFOn(clientNEW_SF) || !IsPlayerAlive(client)) return; // <-- it checks the user whether bought SF. 

Last edited by pan0s; Yesterday at 04:49.
pan0s is offline
azureblue
Junior Member
Join Date: Oct 2021
Old Yesterday , 22:59   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #48

Quote:
Originally Posted by pan0s View Post
It is easy to do it. Just a few steps.
Step 1. Copy all code from another plugin into the corresponding block.
PHP Code:
//Special Functions                // Step 2. add new SF name and index
#define NEW_SF        6 // <-- Your new SF name is NEW_SF here. The value is last SF index +1 (i.e. RED_AMMO is last before you add new SF here, and its index is 5, so 5+1 = 6
#define SF_SIZE         7 // <-- SF size, value is NEW_SF +1

// Special functions               // Step 3. add translation name
char g_sSF[][] = 
{
   ....
"NEW_SF",  // <--used for translation file 
};

// Step 4. set prices
cvar_costs[SHOP_SF_TRIAL][NEW_SF]  // <-- Set NEW_SF trail price
cvar_costs[SHOP_SF_PERMANENT][NEW_SF// <--Set NEW_SF permanent price

// Step 5. Add checking to the new SF main functional block , NEW_SF of !IsSFOn(client, NEW_SF) here is defined by you on #define NEW_SF        6
if(!IsSFOn(clientNEW_SF) || !IsPlayerAlive(client)) return; // <-- it checks the user whether bought SF. 
thank you very much for your answer!, i will try it
azureblue 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 11:28.


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