Raised This Month: $12 Target: $400
 3% 

LevelMod 8.0 with knifeskins. [ML Support]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-08-2014 , 14:41   LevelMod 8.0 with knifeskins. [ML Support]
Reply With Quote #1

Description:
LevelMod is a plugin for CS 1.6 where you gain points for your actions.
When you get enough points you will levelup.
In levelmod.ini you choose how much points needed for each level & levelname.
In there you can also choose which knife model he should get when levelup.

Requirement includes:
chatcolor: https://forums.alliedmods.net/showthread.php?t=94960
nvault_util: https://forums.alliedmods.net/showthread.php?t=139584

Things you can edit in the plugin:
PHP Code:
// Tag for messages in the plugin
#define TAG "LevelMod"

//What admin rank you should have to give points
#define ADMIN_LEVEL ADMIN_KICK

//Max levels 
#define MaxLevels 100

//Top number
#define TopNumber 15

//Max players
#define MAX_PLAYERS 32

//iChat tag support //1 to enable 
//You also need to edit this line "CHAT_USE_CUSTOM_TAGS" in the ichat.cfg
#define iChat_Tags 0 
Cvars:
Here is the list of cvars of how much points you should get
  • g_pCvar_Kill = register_cvar("cvar_kill", "2") // +2
  • g_pCvar_Headshot = register_cvar("cvar_headshot", "4") // +4
  • g_pCvar_Win = register_cvar("cvar_win", "3") // +3
  • g_pCvar_Lose = register_cvar("cvar_lose", "1") // -1
  • g_pCvar_Dying = register_cvar("cvar_dying", "2") // -2
  • g_pCvar_Suicide = register_cvar("cvar_suicide", "3") // -3
  • g_pCvar_Logadmin = register_cvar("cvar_logadmin", "1") // 1 = logadmin give points (addons/amxmodx/logs/levelmod.txt)
OBS: You can pick 0 in any cvar and its function will be disable.

Changelog:
v1.0 : Released
v2.0 : Added more cvars, made more optimized and changed some words.
v3.0 : Optimized, Removed gamble/donate, added ini & vault .
v4.0 : Recoded everything.
v5.0 : Fixed some errors, Added cvar_logadmin & Optimized.
v6.0 : More optimization
v7.0 : Added iChat Compatibility.
v8.0 : Added lose cvar, optimization and ML support.

Credits:
Fysiks : For helping me create the ini load file.
Alka : I took his Save, Load & Top15.

Installation:
  1. Download the required includes and compile the plugin locally.
  2. Download levelmod.zip and add all the models, config file and the ml file.
  3. Add the levelmod.amxx in plugins.ini.
  4. Your done.

Commands:
/lvl
/level
/top
/pointsadmin (Access only with the ADMIN_LEVEL define)

Pictures:
/pointsadmin menu

/top


Download below:
Attached Files
File Type: zip levelmod.zip (1.71 MB, 609 views)
File Type: sma Get Plugin or Get Source (levelmod.sma - 1382 views - 20.3 KB)
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 12-23-2016 at 10:34.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 02-08-2014 , 14:47   Re: LevelMod
Reply With Quote #2

Looks nice on first view, good job.
Is there a specific reason why you spam CheckLevel(all)? (line 419)
__________________

Last edited by Kia; 02-08-2014 at 14:47.
Kia is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-08-2014 , 14:50   Re: LevelMod
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
Looks nice on first view, good job.
Is there a specific reason why you spam CheckLevel(all)? (line 419)
Yes.

If a admin give you 1000points i need to check 5 times to update the lvl.
1 check. lvl up
2 check. lvl up and so on...

Didnt find any better solution to do it than spam it 5 times
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 02-08-2014 at 14:51.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Old 02-08-2014, 15:20
Going Dutch
This message has been deleted by Going Dutch. Reason: Sorry, i didn't saw the requirements.
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 02-08-2014 , 21:05   Re: LevelMod
Reply With Quote #4

GJ. thank

1: The Top15 Based on Motd or Menu? [ i think menu better, will show the 10 best kill in server ]
2: can have more picture inside ?

i just want it to my DeathMatch server
Snitch is offline
Send a message via Skype™ to Snitch
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-09-2014 , 04:38   Re: LevelMod
Reply With Quote #5

Its a top15 motd based on the most points in the server
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 02-09-2014 at 07:46.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-09-2014 , 05:47   Re: LevelMod
Reply With Quote #6

Quote:
Originally Posted by ironskillz1 View Post
Didnt find any better solution to do it than spam it 5 times
try a loop. untill the level matches the points range then it stops.

and you should cache any cvars which are used more then once in a function.
__________________

Last edited by Blizzard_87; 02-09-2014 at 05:49.
Blizzard_87 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-09-2014 , 07:01   Re: LevelMod
Reply With Quote #7

Quote:
Originally Posted by Blizzard_87 View Post
try a loop. untill the level matches the points range then it stops.

and you should cache any cvars which are used more then once in a function.

Fixed.

Changelog:
v2.0 : Added more cvars and made more optimized
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 02-09-2014 at 07:01.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-09-2014 , 08:26   Re: LevelMod
Reply With Quote #8

can you make to work wiht nvault or cna you tell me if there is any free sql host that i can use?
__________________
JusTGo is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-09-2014 , 09:39   Re: LevelMod
Reply With Quote #9

Quote:
Originally Posted by JusTGo View Post
can you make to work wiht nvault or cna you tell me if there is any free sql host that i can use?
I think i will do a version with nvault someday this week
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 02-17-2014 , 04:57   Re: LevelMod
Reply With Quote #10

There are some grammatical errors that you should fix.
__________________

Last edited by jingojang; 02-17-2014 at 04:58.
jingojang is offline
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 09:18.


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