Ну вроде небыло, небыло ж да?
js"[/SPOILER][/CENTER][SPOILER="Code:
[/SPOILER][/CENTER][SPOILER="Code"]
var hit = 0;
var miss = 0;
var HitMiss;
register_callback('ragebot_fire', function(){
hit++;
});
register_callback('ragebot_miss', function(){
hit--;
miss++;
});
register_callback('render', function(){
if (typeof entity.get_player_info(entity.get_local_player()) == "undefined"){
hit = 0;
miss = 0;
return;
}
var colorHSChance = [255, 255, 255, 255];
var ScreenSize = render.get_screen_size(); // [1920, 1080]
var color = [255, 255, 255, 255];
FiledSize = [100,25]
var TextCoord = [ScreenSize[0]-80, ScreenSize[1]/2+FiledSize[1]/2];
render.filled_rect_gradient([ScreenSize[0]-FiledSize[0],ScreenSize[1]/2], FiledSize, [0,0,0, 1], [0,0,0, 100], [0,0,0, 100], [0,0,0, 1])
if (miss == 0) {
HitMiss = 100;
}else {
HitMiss = hit*100/(hit+miss);}
render.text(TextCoord, colorHSChance, 12, 0,+hit+"/"+miss+" Hit: "+HitMiss.toFixed(0)+"%%");
});
[CENTER]
Последнее редактирование: