Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXP = EXP or {}
- EXP.BaseNeed = 200
- function GodKingColor(ply)
- local vector = Vector(ply:GetNWVector("tabcolor","1 1 1"))
- return vector:ToColor()
- end
- EXP.Ranks = {
- {need = 1, title = "Newbie", color = Color(192, 192, 192) },
- {need = 2, title = "Beginner", color = Color(255, 187, 255) },
- {need = 3, title = "Rookie", color = Color(255, 0, 0)},
- {need = 4, title = "Criminal", color = Color(0, 0, 68)},
- {need = 5, title = "Decent", color = Color(68, 187, 255)},
- {need = 6, title = "Average", color = Color(255, 136, 255)},
- {need = 7, title = "Thug", color = Color(51, 51, 102)},
- {need = 8, title = "Intermediate", color = Color(0, 68, 0)},
- {need = 9, title = "Semi-Pro", color = Color(0, 187, 68)},
- {need = 10, title = "Skilled", color = Color(0, 0, 136)},
- {need = 11, title = "Adept", color = Color(136, 0, 68)},
- {need = 12, title = "Pro", color = Color(226, 255, 82)},
- {need = 13, title = "Impressive", color = Color(187, 68, 0)},
- {need = 14, title = "Awesome", color = Color(0, 68, 255)},
- {need = 15, title = "Hardcore", color = Color(0, 187, 136)},
- {need = 16, title = "Prestigious", color = Color(255, 68, 255)},
- {need = 17, title = "Veteran", color = Color(0, 136, 68)},
- {need = 18, title = "Expert", color = Color(255, 187, 0)},
- {need = 19, title = "Beast", color = Color(136, 0, 0)},
- {need = 20, title = "Addict", color = Color(136, 0, 0)},
- {need = 21, title = "Epic", color = Color(0, 187, 255)},
- {need = 22, title = "Supreme", color = Color(255,102,125)},
- {need = 23, title = "Insane", color = Color(255, 0, 0)},
- {need = 24, title = "Elite", color = Color(255, 68, 0)},
- {need = 25, title = "Master", color = Color(136, 0, 136)},
- {need = 26, title = "Criminal Mastermind", color = Color(0, 255, 0)},
- {need = 27, title = "Nightmare", color = Color(68, 0, 0)},
- {need = 28, title = "Phenomenon", color = Color(0, 0, 255)},
- {need = 29, title = "Stoner", color = Color(0,112,0 )},
- {need = 30, title = "Mythic", color = Color(153, 204, 255)},
- {need = 30, title = "Unreal", color = Color(166, 0, 0)},
- {need = 31, title = "Demonic", color = Color(255,128,0 ), glow = true},
- {need = 32, title = "Emperor", color = Color(0, 255, 255), glow = true},
- {need = 33, title = "Satanic", color = Color(255, 0, 0), glow = true},
- {need = 34, title = "Phantom", color = Color(140, 66, 244), glow = true},
- {need = 35, title = "Marvelous", color = Color(244, 116, 66), glow = true},
- {need = 36, title = "Daemon", color = Color(2, 137, 255), glow = true},
- {need = 37, title = "Monarch", color = Color(86, 86, 86), glow = true},
- {need = 38, title = "Fanatic", color = Color(255, 255, 0), glow = true},
- {need = 39, title = "Bloodthirsty", color = Color(168, 12, 12), glow = true},
- {need = 40, title = "Merciless", color = Color(9, 108, 156), glow = true},
- {need = 41, title = "Ace", color = Color(57, 9, 155), glow = true},
- {need = 42, title = "Fearless", color = Color(233, 0, 0), glow = true},
- {need = 43, title = "Unpredictable", color = Color(170, 108, 159), glow = true},
- {need = 44, title = "Impracticable", color = Color(0, 141, 14), glow = true},
- {need = 45, title = "Psychopath", color = Color(105, 105, 105), glow = true},
- {need = 46, title = "Maniac", color = Color(29, 29, 135), glow = true},
- {need = 47, title = "Dangerous", color = Color(79, 0, 169), glow = true},
- {need = 48, title = "Godlike", color = Color(0, 255, 128), glow = true},
- {need = 49, title = "Demi-God", color = Color(163, 0, 163), glow = true},
- {need = 50, title = "GodKing", color = "dezmond is shit", glow = true}
- }
- EXP.Unlocks = {
- ---Prestige 1
- {name = "Default Skin", model = "models/weapons/w_crowbar.mdl", vmmodel = "models/weapons/c_crowbar.mdl", rank = 1, giveweapon = false},
- {name = "Diamond Sword", model = "models/weapons/w_diamond_mc_sword.mdl", vmmodel = "models/weapons/v_diamond_mc_sword.mdl", rank = 5, giveweapon = false},
- {name = "Master Sword", model = "models/weapons/v_masters.mdl", vmmodel = "models/weapons/v_masters.mdl", rank = 10, giveweapon = false},
- {name = "Default T Knife", model = "models/weapons/w_csgo_default_t.mdl", vmmodel = "models/weapons/v_csgo_default_t.mdl", rank = 15, giveweapon = true, class = "csgo_default_t"},
- {name = "Sparda Sword", model = "models/tiggomods/weapons/DmC4/w_Sparda.mdl", vmmodel = "models/tiggomods/weapons/DmC4/v_Sparda.mdl", rank = 20, giveweapon = false},
- {name = "Redqueen Sword", model = "models/tiggomods/weapons/DmC4/w_redqueen.mdl", vmmodel = "models/tiggomods/weapons/DmC4/v_redqueen.mdl", rank = 25, giveweapon = false},
- {name = "Arbiter Sword", model = "models/tiggomods/weapons/DmC5/w_arbiter.mdl", vmmodel = "models/tiggomods/weapons/DmC5/v_arbiter.mdl", rank = 30, giveweapon = false},
- {name = "Thors Hammer(Mjölnir)", model = "models/Rottweiler/v_thor.mdl", vmmodel = "models/Rottweiler/v_thor.mdl", rank = 35, giveweapon = false},
- {name = "Butterfly Knife | Damascus", class = "csgo_butterfly_damascus", model = "models/weapons/w_csgo_butterfly.mdl", rank = 40}, prestige = 1},
- {name = "Butterfly Knife | Fade", class = "csgo_butterfly_fade", model = "models/weapons/w_csgo_butterfly.mdl", rank = 45}, prestige = 1},
- {name = "Butterfly Knife | Marble Fade", class = "csgo_butterfly_marblefade", model = "models/weapons/w_csgo_butterfly.mdl", rank = 50, prestige = 1},
- ---Prestige 2
- {name = "Bayonet Knife | Blue Steel", class = "csgo_bayonet_bluesteel", model = "models/weapons/w_csgo_bayonet.mdl", rank = 10, prestige = 2},
- {name = "Bowie Knife | Ultraviolet", class = "csgo_bowie_ultraviolet", model = "models/weapons/w_csgo_bowie.mdl", rank = 20, prestige = 2},
- {name = "Bayonet Knife | Fade", class = "csgo_bayonet_fade", model = "models/weapons/w_csgo_bayonet.mdl", rank = 30, prestige = 2},
- {name = "Daggers | Case", class = "csgo_daggers_case", model = "models/weapons/w_csgo_push.mdl", rank = 40, prestige = 2},
- {name = "Bowie Knife | Blue Steel", class = "csgo_bowie_bluesteel", model = "models/weapons/w_csgo_bowie.mdl", rank = 50, prestige = 2},
- ---Prestige 3
- {name = "Butterfly Knife | Tiger", class = "csgo_butterfly_tiger", model = "models/weapons/w_csgo_butterfly.mdl", rank = 10, prestige = 3},
- {name = "Butterfly Knife | Ultraviolet", class = "csgo_butterfly_ultraviolet", model = "models/weapons/w_csgo_butterfly.mdl", rank = 20, prestige = 3},
- {name = "Daggers | Blue Steel", class = "csgo_daggers_bluesteel", model = "models/weapons/w_csgo_push.mdl", rank = 30, prestige = 3},
- {name = "Falchion Knife | CrimsonWebs", class = "csgo_falchion_crimsonwebs", model = "models/weapons/w_csgo_falchion.mdl", rank = 40, prestige = 3},
- {name = "Falchion Knife | Night", class = "csgo_m9_marblefade", model = "models/weapons/w_csgo_falchion.mdl", rank = 50, prestige = 3},
- ---Prestige 4
- {name = "Huntsman Knife | Rust Coat", class = "csgo_huntsman_rustcoat", model = "models/weapons/w_csgo_tactical.mdl", rank = 10, prestige = 4},
- {name = "Karambit Knife | Damascus", class = "csgo_karambit_damascus", model = "models/weapons/w_csgo_karambit.mdl", rank = 20, prestige = 4},
- {name = "M9 Knife | Slaughter", class = "csgo_m9_slaughter", model = "models/weapons/w_csgo_m9.mdl", rank = 30, prestige = 4},
- {name = "Butterfly Knife | Slaughter", class = "csgo_butterfly_slaughter", model = "models/weapons/w_csgo_butterfly.mdl", rank = 40, prestige = 4},
- {name = "M9 Knife | Damascus", class = "csgo_m9_damascus", model = "models/weapons/w_csgo_m9.mdl", rank = 50, prestige = 4},
- ---Prestige 5
- {name = "Huntsman Knife | CrimsonWebs", class = "csgo_huntsman_crimsonwebs", model = "models/weapons/w_csgo_tactical.mdl", rank = 10, prestige = 5},
- {name = "Gut Knife | Damascus", class = "csgo_gut_damascus", model = "models/weapons/w_csgo_gut.mdl", rank = 20, prestige = 5},
- {name = "Falchion Knife | Ultraviolet", class = "csgo_falchion_ultraviolet", model = "models/weapons/w_csgo_falchion.mdl", rank = 30, prestige = 5},
- {name = "Falchion Knife | Fade", class = "csgo_falchion_fade", model = "models/weapons/w_csgo_falchion.mdl", rank = 40, prestige = 5},
- {name = "Daggers | Tiger", class = "csgo_daggers_tiger", model = "models/weapons/w_csgo_push.mdl", rank = 50, prestige = 5},
- ---Prestige 6
- {name = "Default Knife | Golden", class = "csgo_default_t_golden", model = "models/weapons/w_csgo_default_t.mdl", rank = 10, prestige = 6},
- {name = "Daggers | Webs", class = "csgo_daggers_webs", model = "models/weapons/w_csgo_push.mdl", rank = 20, prestige = 6},
- {name = "Bowie Knife | Damascus", class = "csgo_bowie_damascus", model = "models/weapons/w_csgo_bowie.mdl", rank = 30, prestige = 6},
- {name = "Bowie Knife | Marble Fade", class = "csgo_bowie_marblefade", model = "models/weapons/w_csgo_bowie.mdl", rank = 40, prestige = 6},
- {name = "Bowie Knife | Tiger", class = "csgo_bowie_tiger", model = "models/weapons/w_csgo_bowie.mdl", rank = 50, prestige = 6},
- ---Prestige 7
- {name = "Flip Knife | Marble Fade", class = "csgo_flip_marblefade", model = "models/weapons/w_csgo_flip.mdl", rank = 10, prestige = 7},
- {name = "Bayonet Knife | Case", class = "csgo_bayonet_case", model = "models/weapons/w_csgo_bayonet.mdl", rank = 20, prestige = 7},
- {name = "Daggers | Boreal", class = "csgo_daggers_boreal", model = "models/weapons/w_csgo_push.mdl", rank = 30, prestige = 7},
- {name = "Falchion Knife | Damascus", class = "csgo_falchion_damascus", model = "models/weapons/w_csgo_falchion.mdl", rank = 40, prestige = 7},
- {name = "Bowie Knife | Slaughter", class = "csgo_bowie_slaughter", model = "models/weapons/w_csgo_bowie.mdl", rank = 50, prestige = 7},
- ---Prestige 8
- {name = "Bowie Knife | CrimsonWebs", class = "csgo_bowie_crimsonwebs", model = "models/weapons/w_csgo_bowie.mdl", rank = 10, prestige = 8},
- {name = "Butterfly Knife | Boreal", class = "csgo_butterfly_boreal", model = "models/weapons/w_csgo_butterfly.mdl", rank = 20, prestige = 8},
- {name = "Daggers | Grey Scaled", class = "csgo_daggers_greyscaled", model = "models/weapons/w_csgo_push.mdl", rank = 30, prestige = 8},
- {name = "Daggers | Rust Coat", class = "csgo_daggers_rustcoat", model = "models/weapons/w_csgo_push.mdl", rank = 40, prestige = 8},
- {name = "Bayonet Knife| Forest", class = "csgo_bayonet_ddpat", model = "models/weapons/w_csgo_bayonet.mdl", rank = 50, prestige = 8},
- ---Prestige 9
- {name = "Daggers | Forest", class = "csgo_daggers_ddpat", model = "models/weapons/w_csgo_push.mdl", rank = 10, prestige = 9},
- {name = "Daggers | Night", class = "csgo_daggers_night", model = "models/weapons/w_csgo_push.mdl", rank = 20, prestige = 9},
- {name = "Daggers | Fade", class = "csgo_daggers_fade", model = "models/weapons/w_csgo_push.mdl", rank = 30, prestige = 9},
- {name = "Falchion Knife | Boreal", class = "csgo_falchion_boreal", model = "models/weapons/w_csgo_falchion.mdl", rank = 40, prestige = 9},
- {name = "CT Knife | Golden", class = "csgo_default_golden", model = "models/weapons/w_csgo_default.mdl", rank = 50, prestige = 9},
- ---Prestige 10
- {name = "Falchion Knife | Slaughter", class = "csgo_falchion_slaughter", model = "models/weapons/w_csgo_falchion.mdl", rank = 10, prestige = 10},
- {name = "Falchion Knife | Blue Steel", class = "csgo_falchion_bluesteel", model = "models/weapons/w_csgo_falchion.mdl", rank = 20, prestige = 10},
- {name = "Flip Knife | Damascus", class = "csgo_flip_damascus", model = "models/weapons/w_csgo_flip.mdl", rank = 30, prestige = 10},
- {name = "Falchion Knife | Marble Fade", class = "csgo_falchion_marblefade", model = "models/weapons/w_csgo_falchion.mdl", rank = 40, prestige = 10},
- {name = "Daggers | Marble Fade", class = "csgo_daggers_marblefade", model = "models/weapons/w_csgo_push.mdl", rank = 50, prestige = 10}
- }
- local meta = FindMetaTable( "Player" )
- function meta:GetLevel()
- return tonumber(self:GetNWInt( "level", 1 )) or 1
- end
- function meta:GetPrestige()
- return tonumber(self:GetNWInt("Prestige", 1))
- end
- function meta:GetEXP()
- local exp = tonumber( self:GetNWInt( "exp" , 0) )
- if !EXP.Ranks[self:GetLevel()+1] then
- exp = self:EXPNeeded()
- end
- return exp
- end
- function meta:EXPNeeded()
- local curlvl = self:GetLevel() or 1
- local next = EXP.Ranks[curlvl].need
- local pres = self:GetPrestige() - 1
- return (EXP.Ranks[next].need * (EXP.BaseNeed)) * ((pres / 10) + 1) or 0
- end
- function meta:GetLevelName()
- if not isfunction(self.GetUndercover) or not self:GetUndercover() then
- return EXP.Ranks[self:GetLevel()].title
- else
- return EXP.Ranks[self:GetUndercoverLevel()].title
- end
- end
- function meta:GetRealLevelName()
- if not isfunction(self.GetUndercover) or not self:GetUndercover() then
- if self:GetPrestige() != 1 then return "Prestige "..self:GetPrestige().." | "..EXP.Ranks[self:GetLevel()].title end
- return EXP.Ranks[self:GetLevel()].title
- else
- return EXP.Ranks[self:GetUndercoverLevel()].title
- end
- end
- function RainbowColor()
- local frequency, time = .5, RealTime()
- local red = math.sin( frequency * time ) * 127 + 128
- local green = math.sin( frequency * time + 2 ) * 127 + 128
- local blue = math.sin( frequency * time + 4 ) * 127 + 128
- return Color( red, green, blue )
- end
- function meta:GetLevelColor()
- if not isfunction(self.GetUndercover) or not self:GetUndercover() then
- if type(EXP.Ranks[self:GetLevel()].color) == "string" then
- return RainbowColor()
- else
- return EXP.Ranks[self:GetLevel()].color
- end
- else
- return EXP.Ranks[self:GetUndercoverLevel()].color
- end
- end
- function EXP.GetSkin(id, world)
- id = math.Round(id)
- if not EXP.Unlocks[id] then return "models/weapons/c_crowbar.mdl" end
- local bool = EXP.Unlocks[id].giveweapon
- if bool == nil then bool = true end
- if bool then
- return EXP.Unlocks[id].class or "weapon_fpcrowbar"
- end
- if world then
- return EXP.Unlocks[id].model
- end
- if file.Exists( EXP.Unlocks[id].vmmodel, "GAME" ) then
- return EXP.Unlocks[id].vmmodel
- end
- return "models/weapons/c_crowbar.mdl"
- end
- if SERVER then
- util.AddNetworkString("ChatAddText_LevelSystem")
- else
- net.Receive("ChatAddText_LevelSystem", function(len, ply)
- chat.AddText(unpack(net.ReadTable()))
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement