душнила
-
Автор темы
- #1
JavaScript:
UI.AddLabel("Cyberpunk")
UI.AddSliderInt(">>- BCbaicha 2077 UI -<<",0,0)
UI.AddSliderInt(">>- BCQQ 412439191 -<<",0,0)
UI.AddMultiDropdown("Enable UI",["Health_Armor","Weapon"])
UI.AddSliderInt("Health_Armor_X",0,1920)
UI.AddSliderInt("Health_Armor_Y",0,1080)
UI.AddSliderInt("Weapon_X",0,1920)
UI.AddSliderInt("Weapon_Y",0,1080)
function get_icon(a){
switch(a){
case "desert eagle":
a="A"
break
case "dual berettas":
a="B"
break
case "five seven":
a="E"
break
case "glock 18":
a="C"
break
case "ak 47":
a="W"
break
case "aug":
a="U"
break
case "awp":
a="Z"
break
case "famas":
a="R"
break
case "m249":
a="g"
break
case "g3sg1":
a="X"
break
case "galil ar":
a="Q"
break
case "m4a4":
a="S"
break
case "m4a1 s":
a="T"
break
case "mac 10":
a="K"
break
case "p2000":
a="E"
break
case "mp5 sd":
a="N"
break
case "ump 45":
a="L"
break
case "xm1014":
a="b"
break
case "pp bizon":
a="M"
break
case "mag 7":
a="d"
break
case "negev":
a="f"
break
case "sawed off":
a="c"
break
case "tec 9":
a="H"
break
case "zeus x27":
a="h"
break
case "p250":
a="F"
break
case "mp7":
a="N"
break
case "mp9":
a="O"
break
case "nova":
a="e"
break
case "p90":
a="P"
break
case "scar 20":
a="Y"
break
case "sg 553":
a="V"
break
case "ssg 08":
a="a"
break
case "knife":
a="1"
break
case "flashbang":
a="i"
break
case "high explosive grenade":
a="j"
break
case "smoke grenade":
a="k"
break
case "molotov":
a="l"
break
case "decoy grenade":
a="m"
break
case "incendiary grenade":
a="n"
break
case "c4 explosive":
a="o"
break
case "usp s":
a="G"
break
case "cz75 auto":
a="I"
break
case "r8 revolver":
a="J"
break
case "bayonet":
a="1"
break
case "flip knife":
a="2"
break
case "gut knife":
a="3"
break
case "karambit":
a="4"
break
case "m9 bayonet":
a="5"
break
case "huntsman knife":
a="6"
break
case "bowie knife":
a="7"
break
case "butterfly knife":
a="8"
break
case "shadow daggers":
a="9"
break
case "falchion knife":
a="0"
break
case "ursus knife":
case "navaja knife":
case "stiletto knife":
case "skeleton knife":
case "nomad knife":
case "survival knife":
case "paracord knife":
case "classic knife":
case "talon knife":
a="1"
break
default:
a=""
break
}
return a
}
function def_font(a){
return
Render.GetFont("bahnschrift.ttf",a,!0)
}
function Weapon_font(a){
return
Render.GetFont("astriumwep.ttf",a,!0)
}
function Visibility(a,d){
1==d&&(d=1);0==d&&(d=0)
return
}
var area={new:function(a,d,e,f){return{x:a,y:d,x2:a+e,y2:d+f}},in_bounds:function(a,d){return d.x>a.x&&d.x<a.x2&&d.y>a.y&&d.y<a.y2}},point={new:function(a,d){return{x:a,y:d}}}
function Health_Armor(){
var a=Entity.GetLocalPlayer()
a=Entity.GetProp(a,"CBasePlayer","m_iHealth")
var d=Entity.GetProp(Entity.GetLocalPlayer(),"CCSPlayerResource","m_iArmor")
e=""+d
f=""+a
b=UI.GetValue("Script items","Health_Armor_X")
c=UI.GetValue("Script items","Health_Armor_Y")
if("m_iHealth"==a||"m_iArmor"==d)e=f="0";1<iAlpha&&iAlpha--;getExp>Levelexp&&(getExp=0,Level++,Levelexp+=2)
Render.FilledRect(b+40,c+12,223,10,[155,51,47,102]);100>=a?
Render.FilledRect(b+40,c+12,2.23*a,10,[234,89,82,102])
Render.FilledRect(b+40,c+12,223,10,[234,89,82,102])
Render.FilledRect(b+40,c+6,223,3,[47,81,79,102])
Render.FilledRect(b+40,c+6,2.23*d,3,[139,200,191,102])
Render.String(b+280,c+13,0,f,[222,79,70,102],def_font(25));1E3>=a?
Render.String(b+320,c+9,0,e,[139,200,191,102],def_font(19))
Render.String(b+330,c+9,0,e,[139,200,191,102],def_font(19))
Render.FilledRect(b+6,c+6,2,21,[59,153,163,102])
Render.FilledRect(b+32,c+6,2,27,[59,153,163,102])
Render.FilledRect(b+6,c+6,27,2,[59,153,163,102])
Render.FilledRect(b+16,c+33,18,2,[59,153,163,102])
Render.Line(b+6,c+26,b+15,c+34,[59,153,163,102])
Render.Line(b+7,c+26,b+16,c+34,[59,153,163,102])
Render.FilledRect(b+34,c+6,223,10,[155,51,47,255]);100>=a?
Render.FilledRect(b+34,c+6,2.23*a,10,[234,89,82,255])
Render.FilledRect(b+34,c+6,223,10,[234,89,82,255])
Render.FilledRect(b+34,c,223,3,[47,81,79,255])
Render.FilledRect(b+34,c,2.23*d,3,[139,200,191,255])
Render.String(b+274,c+7,0,f,[222,79,70,255],def_font(25));1E3>=a?
Render.String(b+314,c+3,0,e,[139,200,191,255],def_font(19))
Render.String(b+324,c+3,0,e,[139,200,191,255],def_font(19))
Render.FilledRect(b,c,2,21,[59,153,163,255])
Render.FilledRect(b+26,c,2,27,[59,153,163,255])
Render.FilledRect(b,c,27,2,[59,153,163,255])
Render.FilledRect(b+10,c+27,18,2,[59,153,163,255])
Render.Line(b,c+20,b+9,c+28,[59,153,163,255])
Render.Line(b+1,c+20,b+10,c+28,[59,153,163,255])
Render.String(b+14,c+5,1,""+Level,[139,200,191,255],def_font(17))
Render.String(b+34,c+21,0,"You Kill Player! Get 1 Exp! ",[139,200,191,iAlpha],def_font(17))
a=area.new(b,c,200,32);d=point.new(Input.GetCursorPosition()[0],Input.GetCursorPosition()[1]);Input.IsKeyPressed(1)&&UI.IsMenuOpen()&&area.in_bounds(a,d)&&(UI.SetValue("Script items","Health_Armor_X",d.x-100),UI.SetValue("Script items","Health_Armor_Y",d.y-10))
Entity.IsValid(Entity.GetLocalPlayer())
}
UI.SetValue("Script items","Health_Armor_X",656)
UI.SetValue("Script items","Health_Armor_Y",81)
Visibility("Health_Armor_X",1)
Visibility("Health_Armor_Y",1)
function Weapon(){
var a=Entity.GetLocalPlayer(),d=Entity.GetWeapon(a);a=Entity.GetName(d)
var e=Entity.GetProp(d,"CBaseCombatWeapon","m_iClip1")
d=Entity.GetProp(d,"CBaseCombatWeapon","m_iPrimaryReserveAmmoCount")
var f=UI.GetValue("Script items","Weapon_X")
b=UI.GetValue("Script items","Weapon_Y");0>e&&(e=0)
Render.String(f+29+6,b-6,1,"0"+e,[85,226,236,102],def_font(33))
Render.String(f+88+6,b-6,1,"0"+d,[240,91,82,102],def_font(29))
Render.String(f+126+6,b-2-6,0,get_icon(a),[240,91,82,102],Weapon_font(65))
Render.String(f+150+6,b-16-6,0,a,[240,91,82,102],def_font(16))
Render.String(f+29,b,1,"0"+e,[85,226,236,255],def_font(33))
Render.String(f+88,b,1,"0"+d,[240,91,82,255],def_font(29))
Render.String(f+126,b-2,0,get_icon(a),[240,91,82,255],Weapon_font(65))
Render.String(f+150,b-16,0,a,[240,91,82,255],def_font(16))
a=area.new(f,b,200,32)
e=point.new(Input.GetCursorPosition()[0],Input.GetCursorPosition()[1]);Input.IsKeyPressed(1)&&UI.IsMenuOpen()&&area.in_bounds(a,e)&&(UI.SetValue("Script items","Weapon_X",e.x-100),UI.SetValue("Script items","Weapon_Y",e.y-10))
Entity.IsValid(Entity.GetLocalPlayer())
}
UI.SetValue("Script items","Weapon_X",43)
UI.SetValue("Script items","Weapon_Y",816)
Visibility("Weapon_X",!1)
Visibility("Weapon_Y",!1)
function onDraw(){
var a=Entity.GetLocalPlayer()
a=Entity.GetProp(a,"CBasePlayer","m_iHealth")
UI.GetValue("Script items","Enable UI")&1&&Health_Armor()
UI.GetValue("Script items","Enable UI")&2&&1<a&&Weapon()
}
function onUnload(){
Cheat.ExecuteCommand("cl_draw_only_deathnotices 0")
Cheat.ExecuteCommand("cl_drawhud_force_radar 0")
}
var iAlpha=0,iExp=0,getExp=0,Level=1,Levelexp=3,iKills=0,Level2=0
function EVENT_MATCH_END(){
RESET()
getExp=iExp=0;Level=1
}
function EVENT_PLAYER_SPAWN(){
PlayerIndex=Event.GetInt("userid")
iPlayerIndex=Entity.GetEntityFromUserID(PlayerIndex)
Entity.GetLocalPlayer()==iPlayerIndex&&RESET()
}
function EVENT_ROUND_START(){
RESET()
}
function RESET(){
iAlpha=0
}
function EVENT_DEATH(){
iVictim=Event.GetInt("userid")
iVictim_index=Entity.GetEntityFromUserID(iVictim)
iAttacker=Event.GetInt("attacker")
iAttacker_index=Entity.GetEntityFromUserID(iAttacker)
Entity.GetLocalPlayer()==iVictim_index&&Entity.GetLocalPlayer()!==iAttacker_index||Entity.GetLocalPlayer()!=iAttacker_index||(iExp=getExp,iAlpha=255,getExp++)
}
Cheat.RegisterCallback("Draw","onDraw")
Cheat.RegisterCallback("Unload","onUnload")
Global.RegisterCallback("player_death","EVENT_DEATH")
Global.RegisterCallback("round_start","EVENT_ROUND_START")
Global.RegisterCallback("player_spawned","EVENT_PLAYER_SPAWN")
Global.RegisterCallback("cs_intermission","EVENT_MATCH_END")
Global.RegisterCallback("cs_win_panel_match","EVENT_MATCH_END")