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

[L4D2] Shop [v4.5 | 20 March 2022]


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 offline
VYRNACH_GAMING
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
Veteran Member
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.
__________________
Psyk0tik is offline
pan0s
Senior 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
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
Member
Join Date: Oct 2021
Location: Two Steps from Hell
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
Senior Member
Join Date: Nov 2017
Old 10-20-2021 , 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; 10-20-2021 at 04:49.
pan0s is offline
azureblue
Member
Join Date: Oct 2021
Location: Two Steps from Hell
Old 10-20-2021 , 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
VYRNACH_GAMING
Member
Join Date: Sep 2021
Old 11-09-2021 , 08:37   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #49

Would it be possible to add this kind of feature like calling an airstrike as a shop item? https://forums.alliedmods.net/showthread.php?t=187567
__________________
VYRNACH_GAMING is offline
Maku
Member
Join Date: Dec 2020
Location: United Kingdom
Old 11-09-2021 , 22:09   Re: [L4D2] Shop [v2.8 | 27 July 2021]
Reply With Quote #50

I really love this plugin ever since I placed it on my server.

However, since I have a plugin that edits the infected's spawn rate modifier, it became too spammy on my chat whenever I kill multiple common infected with molotov.

It sometimes completely overwhelm the chat and I have to scroll up to see other player's chat message.

Can I please get a Convar with the option to disable notifications for each infected and have a notification stating how many points I have?

I am not entirely experienced with Sourcemod programming, but I do plan on learning it whenever I am not too busy. Thanks.
Maku 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 13:27.


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