function weapon(weapon) {
if(weapon == "awp") {
return true
} else if(grenade == "ssg 08") {
return true
} else if(grenade == "scar-20") {
return true
// дальше сам
return false
}
function 123() {
var weapon = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
if(weapon(weapon)) {
if(option == 0){
cache = {
"d": UI.GetValue(["Visuals", "Chams", "Self", "Configured model"]),
"o": UI.GetValue(["Visuals", "Chams", "Self", "Visible material type"]),
"g": UI.GetColor(["Visuals", "Chams", "Self", "Visible material color"])
}
option = 1
}
UI.SetValue(["Visuals", "Chams", "Self", "Configured model"], 66)
UI.SetValue(["Visuals", "Chams", "Self", "Visible material type"], 1)
UI.SetColor(["Visuals", "Chams", "Self", "Visible material color"], [0, 0, 0, 100])
} else {
if(option == 1){
UI.SetValue(["Visuals", "Chams", "Self", "Configured model"], cache.d)
UI.SetValue(["Visuals", "Chams", "Self", "Visible material type"], cache.o)
UI.SetColor(["Visuals", "Chams", "Self", "Visible material color"], cache.g)
option = 0
}
}
}
var option = 0
Cheat.RegisterCallback("CreateMove", "123")