In this topic, I'll post some codes I'll create for you to understand how this language works.
(NOTE: These codes might not work as intended and might need some changes!)
1. Gives you 1000 health, 1337 armor, and Deagle when pressing F2:
{$CLEO .cs}
// Key codes
const
KEY_F2 = 113; // F2 key code
// Weapon IDs
const
WEAPON_DEAGLE = 24; // Deagle weapon ID
// Script entry point
thread 'LeaksForTheWin'
while true
wait 0
if is_key_pressed(KEY_F2) then
// Give player the Deagle
give_player_weapon($PLAYER_CHAR, WEAPON_DEAGLE, 9999)
// Set player health and armor
set_player_health($PLAYER_CHAR, 1000)
set_player_armour($PLAYER_CHAR, 1337)
// Display text
wait 500
show_text_box('Leaks for the win!')
wait 5000
clear_text_box()
end_if
end_while
end_thread