Basic SkillPoints v1.0
IntroductionThis is the first time I post a plugin in alliedmodders.The plugin basically gives you skillpoints for when you kill, plant, disarm or when your team wins the round. These points are stored in a database within the server and all SkillPoints are customizable by cvars.Commands
- /myskill Shows your skillpoints in the server chat.
CVARS Code: //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// SkillPoints Configuration //////////////////////////////////bps_ads 1 // Turn on/off the /myskill announcements in the chatbps_time_between_ads 300.0 // Time between adds (in seconds)bps_skillpoints_on_nick 1 // Turn on/off SkillPoints in nickname ex: (nick <1337>)bps_hide_change_nick_notification 1 // Hide change nick announcementbps_skillpoints_cmd 1 // Turn on/off /myskill commandbps_hide_cmd 0 // Hide /myskill commandbps_enable_win_per_hour 1 // Turn on/off hourly pointsbps_won_points_hour 5 // Points awarded for playing more than 1hourbps_lost_points_tk 5 // Points lost for TeamKillingbps_lost_points_suicide 1 // Points lost for suicidebps_won_points_kill 1 // Points awarded per killbps_lost_points_kill 1 // Points lost per deathbps_won_points_headshot 2 // Points awarded per headshotbps_lost_points_headshot 2 // Points lost for dying with an headshotbps_won_points_knife 3 // Points awarded per knife killbps_lost_points_knife 3 // Points lost for dying with knifebps_won_points_grenade 3 // Points awarded per HE killbps_lost_points_grenade 3 // Points lost for dying with an HEbps_won_points_ts 1 // Points awarded to Terrorist Team for winning the roundbps_won_points_cts 1 // Points awarded to Counter-Terrorist Team for winning the roundbps_won_points_planter 1 // Points awarded for planting the bombbps_won_points_planter_explode 2 // Points awarded for bomb successfully explodingbps_won_points_defuser 3 // Points awarded for successfully disarming the bomb/////////////////////////////////////////////////////////////////////////////////////////////////
Defines PHP Code:
#define MAXCLASSES 5#define MAXLEVELS 5#define MAXPONTUATION 10000 // max skillpoints per player
LevelsSkillPoints < 500 Level: BOT500 <= SkillPoints < 1200 Level: NOOB1200 <= SkillPoints < 1800 Level: GAMER1800 <= SkillPoints < 2500 Level: LEETSkillPoints >= 2500 Level: TOP PHP Code:
new const CLASSES[ MAXCLASSES ][ ] = { "BOT", "NOOB", "GAMER", "LEET", "TOP"}new const LEVELS[ MAXLEVELS ] = { 500, 1200, 1800, 2500, 100000 /* high value (not reachable) */}
Requirements PHP Code:
#include < amxmodx >#include < amxmisc >#include < nvault >#include < cstrike >#include < csx >#include < colorchat >
IMPORTANT: Does not work in Non-Steam servers
Instalation1. Copy
SkillPoints.amxx to the
cstrike/addons/amxmodx/plugins folder2. Add
SkillPoints.amxx to your
plugins.ini file3. Copy the cvars to your server.cfg and customize at your own way4. Change map or restart your server
To-Do List (probably wont be done)- Add top15 e rank system- Add achievements
Bugs- None known
Changelog- v1.0 initial release
Credits- ramais and FallenAngel for translating to English- fysiks - SkillPoints in nickname -
http://forums.allied....47&postcount=4- Exolent[jNr] - Hide change nick notification -
https://forums.allie....5&postcount=23- ConnorMcLeod - cs_get_user_team
http://forums.allied...ad.php?t=191400Screenshots Spoiler 













Attached Files
Get Plugin or
Get Source (SkillPoints.sma - 17.4 KB)
colorchat.inc (5.9 KB)
Wyświetl pełny artykuł