Raised This Month: $42 Target: $400
 10% 

Damage Level System


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
GamaLOL
New Member
Join Date: Mar 2021
Location: Germany
Old 03-26-2021 , 15:19   Damage Level System
Reply With Quote #1

Hello Everyone,

This is my first Plugin posted here! And im sorry if I made somthing wrong. Anyways,

Description:
This is an Damage Level System, When you damage the enemy you get Dmg Points Dmg = dmg Points
You Can get Max 30 Levels Each Are gained with Dmg Points.
Models and Shop Menu.

More About it:
This plugin includes a cfg file.
In there you can easily change settings how ever you want.
In models menu you can choose skins for some weapons, as well change the models locations in the .cfg file. You can change/add/remove skins.... etc...

It has a hud message which Containst Level, Dmg, rank etc... you can edit it as well in cfg file
Levels and Dmg Points are saved in nvault file

Shop Menu:
1. You Can buy extra HP Once Round
2. You Can buy AWP, M4A1 + Deagle as CT and AK47 + Deagle as T

Commands:
Owners (ADMIN_RCON):
set_level <name> <amount> (sets target level)
set_dmg <name> <amount> (sets target DMG points)

Say Commands:
say /menu
say /shop
say /models

More:
As I said it's my first time here. If there is any kinda problem/error/bug Pls report it here
I'll try to fix!!

I don't know if someone already made this plugin before, I hope not I was looking for it long but didn't found anything!
Attached Files
File Type: sma Get Plugin or Get Source (Dmg_Level.sma - 24 views - 10.6 KB)
File Type: sma Get Plugin or Get Source (Dmg_Level_Shop.sma - 13 views - 6.3 KB)
File Type: inc dmg_system.inc (1.0 KB, 7 views)
File Type: cfg dmglevel.cfg (3.8 KB, 10 views)
File Type: zip Dmg System.zip (5.49 MB, 14 views)

Last edited by GamaLOL; 03-26-2021 at 16:27.
GamaLOL is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-26-2021 , 16:13   Re: Damage Level System
Reply With Quote #2

You're not allowed to attach compiled plugins. You also have .bak files in the archive for some reason.

This is basically another poorly coded rank system with hardcoded settings. Putting a part of the plugin in a .cfg file that needs to be recompiled isn't really considered making it configurable or user-friendly.

The code is pretty bad, not even close to fulfilling nowaday standars. You're even using style 1 natives which are deprecated and could fail.

I suggest you take a look and study on newer plugins to see how they're made and how to make them useful in 2021.

A properly coded rank system already exists - https://forums.alliedmods.net/showthread.php?t=308540
You can do the damage part with 5 lines of code using the API.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GamaLOL
New Member
Join Date: Mar 2021
Location: Germany
Old 03-26-2021 , 16:29   Re: Damage Level System
Reply With Quote #3

I know

Anyways thanks, I have delted the bak files and delted plugin files!
I know it's poorly coded but it's good for newbies and with the cfg file
GamaLOL is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-26-2021 , 16:42   Re: Damage Level System
Reply With Quote #4

Poorly coded plugins are not good for anyone, especially newbies. A .cfg file shouldn't require recompiling the entire plugin in order for changes to take effect. It's highly unlikely that a newbie would figure this out.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Cristian505
Member
Join Date: Oct 2020
Location: De_dust2
Old 03-26-2021 , 16:48   Re: Damage Level System
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Poorly coded plugins are not good for anyone, especially newbies. A .cfg file shouldn't require recompiling the entire plugin in order for changes to take effect. It's highly unlikely that a newbie would figure this out.
Cristian505 is offline
Cristian505
Member
Join Date: Oct 2020
Location: De_dust2
Old 03-26-2021 , 16:53   Re: Damage Level System
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Poorly coded plugins are not good for anyone, especially newbies. A .cfg file shouldn't require recompiling the entire plugin in order for changes to take effect. It's highly unlikely that a newbie would figure this out.
You are poor scripter
Cristian505 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-26-2021 , 17:01   Re: Damage Level System
Reply With Quote #7

Facepalm. Making a new account doesn't make you any better.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Cristian505
Member
Join Date: Oct 2020
Location: De_dust2
Old 03-26-2021 , 17:05   Re: Damage Level System
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Facepalm. Making a new account doesn't make you any better.
He or She is not me LOL. Me have 14 years and he/she have 17 lol.
Cristian505 is offline
GamaLOL
New Member
Join Date: Mar 2021
Location: Germany
Old 03-26-2021 , 17:31   Re: Damage Level System
Reply With Quote #9

Huh, Fine guys.
Why do you send some shit here ?
I just made this plugin for fun cuz I think it's good
everyone is making xp why not dmg points ?
I will update it later if possible and add lang file
GamaLOL is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-26-2021 , 22:45   Re: Damage Level System
Reply With Quote #10

XP, points, prestige, karma - call it whatever you want but it's the same thing. You get levels for acquiring points. The plugin I gave you can do the same thing via a simple addon:

Code:
#include <amxmodx> #include <crxranks> #include <hamsandwich> public plugin_init() {     RegisterHam(Ham_TakeDamage, "player", "OnPlayerDamage", 1) } public OnPlayerDamage(iVictim, iInflictor, iAttacker, Float:fDamage) {     if(is_user_connected(iAttacker))     {         crxranks_give_user_xp(iAttacker, floatround(fDamage))     } }
__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 03-26-2021 at 22:46.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 05:17.


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