Raised This Month: $ Target: $400
 0% 

[L4D2] !buy plugin dead also points deduction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leaffan
Senior Member
Join Date: Jan 2013
Old 04-30-2023 , 11:33   [L4D2] !buy plugin dead also points deduction
Reply With Quote #1

Hello,

'When a user uses !buy while dead, their score is deducted' in the attached !buy plugin.

But if you use it while dead, the score should not go away, can anyone fix this?

Thanks.

Plugin source: https://forums.alliedmods.net/showpost.php?p=2719385
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_points_system.sp - 45 views - 123.7 KB)
leaffan is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-01-2023 , 10:51   Re: [L4D2] !buy plugin dead also points deduction
Reply With Quote #2

I don't think it is an issue, you will have more bugs enabling it.
Anyway you can find the code where deducts and just add a "if (IsPlayerAlive(client))" check (google some examples)
__________________
Marttt is offline
leaffan
Senior Member
Join Date: Jan 2013
Old 05-01-2023 , 13:06   Re: [L4D2] !buy plugin dead also points deduction
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
I don't think it is an issue, you will have more bugs enabling it.
Anyway you can find the code where deducts and just add a "if (IsPlayerAlive(client))" check (google some examples)
I don't have general knowledge about coding, I don't know how to use the coding you mentioned. Where and how and why do we add that coding? What will it change?

Thanks.
leaffan 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 23:40.


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