Gun Xp Mod (Last Updated : 10-02-2011)
4 Attachment(s)
<--thanks fang
-.Description.- Buyzone is restricted and you must kill enemy to get experience,if you have needed amount of experience, then you gain a Level.By the Level you gain more new guns and you can pick up that gun ,what is your Level of gun.This is not gungame! -.Cvars/Commands.- gxm_enable "1" - Enable = 1,Disable = 0. gxm_savetype "1" - Save Xp to : 1 = MySQL, 0 = NVault. gxm_save "1" - Save Xp by : 2 = Name, 1 = SteamID, 0 = IP. gxm_level_text "0" - Show your level by : 1 = HUD message, 0 = Simple colored text message. gxm_xp "15" - How much experience gain, when you killed enemy. gxm_level_style "1" - You will gain each level new gun : 1 = Yes, 0 = No,select your gun by menu. gxm_triple "1" - Enable Triple Kill bonus xp? 1 = Yes, 0 = No. gxm_triple_xp "3" - How much bonus xp give for Triple Kill? gxm_triple_kills "3" - How much kills needed to give bonus xp? gxm_ultra "1" - Enable Ultra Kill bonus xp? 1 = Yes, 0 = No. gxm_ultra_kills "6" - How much kills needed to give bonus xp? gxm_admin_xp "1" - Enable Extra xp for killing? 1 = Yes, 0 = No. gxm_extra_xp "4" - How much extra xp give to admins? gxm_show_rank "1" - Shows rank in /top20? 1 = Yes, 0 = No. SQL cvars: gxm_host "127.0.0.1" - The host from the db. gxm_user "root" - The username from the db login. gxm_pass "" - The password from the db login. gxm_dbname "gunxpmod" - The database name. Type in chat: /menu or menu to show Main Menu of Mod! Type in chat: /level ,to see your information, gxm_level_text then must be set to 0.Also /top20 to see top20 players of experience. Type in chat: /ul,ul,/unlocks to unlock upgrade for your weapon or buy other misc stuff! Type in console : set_level your_name amount_of_level. Example : set_level xbatista 10, to set your's/target's level . If you are running other mods, then find this lines(in gunxpmod.cfg ( scripting folder )) and edit : PHP Code:
By the way, if PHP Code:
PHP Code:
Example, find this line and edit : PHP Code:
-.ML File.- /g - means green text. | \d - means grey text(in menu). /ctr - means CT/T text team color. | \y - means yellow text(in menu). /y - default orange text. | \r - means red text(in menu). \w - means white text(in menu). Languages translated : None. -.To Do.- Suggest ;) . More items. -.ChangeLog.- Quote:
|
Re: Gun Xp Mod
Hey there. Well done, here are some things you could/should change that I spotted on first look:
- StatusIcon message and HamDamage hooks are not used when ZombieSwarm is not defined. Take them out completely (not registering them at all). Especially in HamDamage there are native calls that are unnecessary when the function never does anything. - Don't know if its just me but I think you should come up with more level names instead of just reusing them 3-5 times each.:wink: - Store the values of is_user_connected and is_user_alive - Maybe cache the cvars on new round. - In HamDamage, I believe you don't have to check whether the victim is a player. - Statics in client_printcolor and Event_StatusValue could be a good idea. - Use formatex were applicable - You really should implement SteamID support (maybe do a cvar to change between both). - MySQL or SQLite support could be a good idea if you have the knowledge to implement either. - I'm not sure but I believe it's better to use nvault over the old vault. /edit: Code:
[de] |
Re: Gun Xp Mod
You mean this?
PHP Code:
And other things what you say. |
Re: Gun Xp Mod
Quote:
PHP Code:
|
Re: Gun Xp Mod
But if i'll do this :
PHP Code:
PHP Code:
|
Re: Gun Xp Mod
But why should you leave it in? Wouldn't it even throw a warning "Function never used"?
|
Re: Gun Xp Mod
Code:
[es] |
Re: Gun Xp Mod
Quote:
EDIT: Thx for ML |
Re: Gun Xp Mod
Quote:
|
Re: Gun Xp Mod
Okey code update,check if I something mess.
P.S. ML update. |
All times are GMT -4. The time now is 13:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.