AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   LevelMod 8.0 with knifeskins. [ML Support] (https://forums.alliedmods.net/showthread.php?t=235101)

ironskillz1 02-08-2014 14:41

LevelMod 8.0 with knifeskins. [ML Support]
 
2 Attachment(s)
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 :up:
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
http://i.imgur.com/yd21Y3T.png
/top
http://i.imgur.com/yJjWjtp.png

Download below:

Kia 02-08-2014 14:47

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

ironskillz1 02-08-2014 14:50

Re: LevelMod
 
Quote:

Originally Posted by Kia (Post 2097456)
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

Snitch 02-08-2014 21:05

Re: LevelMod
 
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

ironskillz1 02-09-2014 04:38

Re: LevelMod
 
Its a top15 motd based on the most points in the server

Blizzard_87 02-09-2014 05:47

Re: LevelMod
 
Quote:

Originally Posted by ironskillz1 (Post 2097459)
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.

ironskillz1 02-09-2014 07:01

Re: LevelMod
 
Quote:

Originally Posted by Blizzard_87 (Post 2097803)
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

JusTGo 02-09-2014 08:26

Re: LevelMod
 
can you make to work wiht nvault or cna you tell me if there is any free sql host that i can use?

ironskillz1 02-09-2014 09:39

Re: LevelMod
 
Quote:

Originally Posted by JusTGo (Post 2097860)
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

jingojang 02-17-2014 04:57

Re: LevelMod
 
There are some grammatical errors that you should fix.


All times are GMT -4. The time now is 18:34.

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