//by niger pidoras-0xc0666
UI.AddCheckbox('Safe AWP')
var safePBackup = false
function safeAWP() {
SlocalPlayer = Entity.GetLocalPlayer()
SlocalPlayerWeapon = Entity.GetWeapon(SlocalPlayer)
SlocalPlayerWeaponName = Entity.GetName(SlocalPlayerWeapon)
if ( UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Safe AWP') && SlocalPlayerWeaponName == 'awp' ) {
forceSafePoint = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point')
if (!forceSafePoint) {
UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point')
safePBackup = true
}
} else if (safePBackup) {
UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point')
safePBackup = false
}
}
Cheat.RegisterCallback('Draw', 'Nigeripidarasi')