Всё сделано всё ебать не заходим

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
16 Ноя 2020
Сообщения
82
Реакции
5
честно просто хз как тут чек бокс сделать чтоб именно эти в это всё включал по нажатию...

Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );

UI.SetValue( "Misc", "GENERAL", "Misc", "Force sv_cheats", true );
UI.SetValue( "Misc", "GENERAL", "Misc", "Hidden cvars", true );
Global.ExecuteCommand( "@panorama_disable_blur 1" );
 
JavaScript:
Expand Collapse Copy
UI.AddCheckbox("Check");

function fps() {
if(UI.GetValue("Script items", "Check")) {
Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );

UI.SetValue( "Misc", "GENERAL", "Misc", "Force sv_cheats", true );
UI.SetValue( "Misc", "GENERAL", "Misc", "Hidden cvars", true );
Global.ExecuteCommand( "@panorama_disable_blur 1" ); 
UI.SetValue("Script items", "Check", 0); }
}
Cheat.Registercallback("Draw",  "fps");
 
Блять,ну ты можешь посмотреть другие коды,чи не?
Или ты совсем блять атрофированный что не можешь в апи зайти?
Я буду орать нахуй что ты недопастер будешь ещё продавать эту хуйню блять.
Нам так же сложно зайти в апи блять и почитать его нахуй.
Просто впили " иф (юи.гетвалуе(ебаный чекбокс)) { "
блять Господи даже урбаничка это сделать сможет нахуй.
Не делай 99 тем больше, пожалуйста блять.
Ты даже толком не додумался что эта хуйня делать должна блять.
я уже в апи вт зашёл сделал тупой, мне было в падло понимаешь ? .....
JavaScript:
Expand Collapse Copy
UI.AddCheckbox("Check");

function fps() {
if(UI.GetValue("Script items", "Check")) {
Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );

UI.SetValue( "Misc", "GENERAL", "Misc", "Force sv_cheats", true );
UI.SetValue( "Misc", "GENERAL", "Misc", "Hidden cvars", true );
Global.ExecuteCommand( "@panorama_disable_blur 1" );
UI.SetValue("Script items", "Check", 0); }
}
Cheat.Registercallback("Draw",  "fps");
Спасибо но я уже сделал ) xD)
 
у меня код не работает, чек бокс включается, но включенная js выключается (
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
Expand Collapse Copy
UI.AddCheckbox("Check");

function fps() {
if(UI.GetValue("Script items", "Check")) {
Cheat.ExecuteCommand( "cl_csm_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_rope_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_world_shadows_in_viewmodelcascade 0" );
Cheat.ExecuteCommand( "cl_csm_static_prop_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_sprite_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_translucent_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_viewmodel_shadows 0" );
Cheat.ExecuteCommand( "cl_csm_entity_shadows 0" );

Cheat.ExecuteCommand( "r_shadows 0" );
Cheat.ExecuteCommand( "r_3dsky 0" );

Cheat.ExecuteCommand( "fog_enable 0" );
Cheat.ExecuteCommand( "fog_enable_water_fog 0" );
Cheat.ExecuteCommand( "fog_enableskybox 0" );
Cheat.ExecuteCommand( "mat_disable_bloom 1" );

UI.SetValue( "Misc", "GENERAL", "Misc", "Force sv_cheats", true );
UI.SetValue( "Misc", "GENERAL", "Misc", "Hidden cvars", true );
Global.ExecuteCommand( "@panorama_disable_blur 1" );
UI.SetValue("Script items", "Check", 0); }
}
Cheat.Registercallback("Draw",  "fps");
Лучший фпс фиксер который каждый тик эти команды пишет...
 
да, все верно, в точь-точь
 
Назад
Сверху Снизу