Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Basic SkillPoints v1.0 Last Update 01/08/2012


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 01.08.2012 21:43

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 serversInstalation1. 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 serverTo-Do List (probably won’t be done)- Add top15 e rank system- Add achievementsBugs- None knownChangelog- v1.0 initial releaseCredits- 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 Dołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafikaDołączona grafika

Attached Files Dołączona grafika Get Plugin or Get Source (SkillPoints.sma - 17.4 KB) Dołączona grafika colorchat.inc (5.9 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych