Raised This Month: $ Target: $400
 0% 

XP Mod 1.2.4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-19-2011 , 15:39   XP Mod 1.2.4
Reply With Quote #1

This is the last release , im not updating this anymore
everyone who wants the lastest updates then pm me.
And thx for your supporting


XP Mod
Version 1.2.4


This is my first Plugin so help me if there is anything wrong.

Description:
This plugin lets the user get xp for killing players , and for every level there is an amount of xp needed , i added 45 levels but you can easy add more.
I made this plugin for i saw a req for a plugin like this and here you go.
Its easy to edit and i think this is a good base. I tested it just in cs 1.6 but idk if it would work on the others (maybe can someone test?). This plugin have deathmatch mode too , you can turn it on and off. In this plugin you add a shop too , in the shop you can buy skills , every skill level costs 1 x Skill Level = Points , there is 45 levels in every skill and you get 5 points every level. For more info about upgrades write /mainmenu. In this plugin you can us either sql or nvault to save/load data. In this plugin there is webstats too.


nVault Installation:
1- Download the XP-Mod.sma and compile it (or just download the amxx file from attachments)
2- Open cstrike\addons\amxmodx\plugins and put the amxx file there
3- Open cstrike\addons\amxmodx\configs\plugins.ini and write this there.
Code:
XP-Mod.amxx debug

4- Download
sound.zip and place the sound folder in your cstrike folder so it be: cstrike\sound\xpmod\all onther sounds here
5- Put xpmod.txt in cstrike\addons\amxmodx\data\lang
6- Run and test it.

SQLx Installation:
1- Download the XP-Mod.sma file and add it to cstrike\addons\amxmodx\scripting
2- Open the file and find
Code:
#define USE_NVAULT
3-Now make it like
Code:
//#define USE_NVAULT
4-Now find the following things and edit them to yours:
Code:
new Host[]     = ""
new User[]    = ""
new Pass[]     = ""
new Db[]     = ""
Change Host to the host ip/adress
Change user to the sql user
Change pass to the sql user password
Change Db to the sql database name

example:

Code:
new Host[]     = "localhost"
new User[]    = "test"
new Pass[]     = "123"
new Db[]     = "xpmod"
3- In the scripting there is an exe that is namned compiler , run it and then go to the folder compiled and in there find the XP-Mod-sql.amxx and copy it
and open cstrike\addons\amxmodx\plugins and place it there
5- Open cstrike\addons\amxmodx\configs\plugins.ini and write this there.
Code:
XP-Mod.amxx debug

6- Download
sound.zip and place the sound folder in your cstrike folder so it be: cstrike\sound\xpmod\all onther sounds here
7- Put xpmod.txt in cstrike\addons\amxmodx\data\lang
8- Run and test it.

Webstats Installation:
1- Download the webstats.zip
2- open the Config.php and edit the following:

SQL_HOST - the sql host
SQL_USER - the sql username
SQL_PASS - the sql username password
SQL_DB - the sql databse
Code:

    $result = $sql->query("SELECT * FROM xpmod ORDER BY xp DESC LIMIT 15;");


SELECT * FROM xpmod - what table (change xpmod to your table name)
ORDER BY xp - what it orders the players on (xp , lvl , points or anything else)
DESC LIMIT 15 - How much players do you want it to show (15)

Now copy all files to your webhost/website

Requirements:

nVault version:
nvault
fun
cstrike
fakemeta
hamsandwich
engine

SQLx version:
sqlx
fun
cstrike
fakemeta
hamsandwich
engine

Cvars:
Code:
SaveXP - Turns saving on and off (default on = 1)
Deathmatch - Turns Deathmatch on and off (default on = 1)
unlimitedammo - Turns unlimited ammo on and off (default on = 1)
nobuy - Turns no buy on and off (default on = 1)
upgradesshop - Turns shop on and off (default on = 1)
points_per_level - Amount points gained every level (default = 5)
sounds - Turns sounds on and off (default on = 1)
welcomemsg - Turns on or off welcome messege (default on = 1)
lvlupmsg - Turns on or off level up messge to everybody (default on = 1)
XP_per_kill - Amount xp gained per kill (default = 100)
XP_per_hs - Amount xp gained per Headshot (default = 50)
XP_per_he - Amount xp gained per HE Grenade kill (default = 50)
XP_per_knife - Amount xp gained per knife kill (default = 50)
XP_per_plant - Amount xp gained per bomb plant (default = 50)
XP_per_def - Amount xp gained per bomb defuse (default = 50)
XP_per_bomb - Amount xp gained per bomb explosion (default = 50)
XP_per_save - Amount xp gained per Saved target (default = 50)
XP_per_hostresc - Amount xp gained per Hostages rescue for ct (default = 50)
XP_per_hostnresc - Amount xp gained per Hostages not rescue for t (default = 50)
killstreak - Amount Kills needed for kill streak bonus (default = 4)
hsstreak - Amount Headshots needed for Headshot streak bonus (default = 4)
killstreakb - Amount xp gained for kill streak bonus (default = 200)
hsstreakb - Amount xp gained for kill streak bonus (default = 200)
gunsmenu - Turns guns menu on and off (default on = 1)


Commands:

Chat commands:
Code:
say /reset - resets everything
say /menu - shows the main menu
say /shop - shows the upgrade menu
say /sell - shows the upgrade sell menu
say /help - shows the help menu
say guns - shows the guns menu
say /myrank - shows your rank (just sql version , vault version coming soon)
say /15top - shows top 15 players (just sql version , vault version coming soon)
Consle commands:
Code:
help - shows the help menu
mainmenu - shows the main menu
shop - shows the upgrade menu
sell - shows the upgrade sell menu
help - shows the help menu
xpmod_setlvl - usage: <target> <level> (needs ADMIN_BAN)
xpmod_setpoints - usage: <target> <points> (needs ADMIN_BAN)


Languages:
[EN] - By modernwarfare (me)
[PL] - By MmikiM
[NL] - By drekes
[SV] - By modernwarfare (me)
[ES] - By Korxu
[BG] - By DeLiriuM
[TR] - By quLeryuzz
[SK] - By sulinek
[FR] - By ANTICHRISTUS
[DA] - By DoPe^
[RO] - By Nur56
[IT] - By aaarnas

More Languages soon.


ToDo List:

[list][*]Fix any bugs or problems if there is any.[*]Add more Languages[*]Make a better webstats template and player searching[*]Add Ranking
Attached Files
File Type: zip sound.zip (261.5 KB, 5036 views)
File Type: zip xpmod docs.zip (5.7 KB, 5081 views)
File Type: zip webstats.zip (715 Bytes, 4175 views)
File Type: sma Get Plugin or Get Source (XP-Mod.sma - 9338 views - 64.7 KB)
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.




Last edited by modernwarfare; 10-07-2011 at 11:14.
modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
 



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 15:25.


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