Skip to content

Instantly share code, notes, and snippets.

@JuniorDjjr
Created July 14, 2019 02:27
Show Gist options
  • Save JuniorDjjr/4dbda76ad0eea01d1e9c25caf9a1af5e to your computer and use it in GitHub Desktop.
Save JuniorDjjr/4dbda76ad0eea01d1e9c25caf9a1af5e to your computer and use it in GitHub Desktop.
// by Junior_Djjr - MixMods.com.br
// You need: https://forum.mixmods.com.br/f16-utilidades/t179-gta3script-while-true-return_true-e-return_false
SCRIPT_START
{
LVAR_INT iCheatId bNoSuicide iTimeDelay iFirst iLast
IF NOT READ_INT_FROM_INI_FILE "CLEO/Random Cheats.ini" "Settings" "TimeDelay" (iTimeDelay)
OR NOT READ_INT_FROM_INI_FILE "CLEO/Random Cheats.ini" "Settings" "NoSuicide" (bNoSuicide)
OR NOT READ_INT_FROM_INI_FILE "CLEO/Random Cheats.ini" "Settings" "First" (iFirst)
OR NOT READ_INT_FROM_INI_FILE "CLEO/Random Cheats.ini" "Settings" "Last" (iLast)
timera = 0
WHILE timera < 3000
WAIT 0
PRINT_STRING_NOW "~r~Fail to read 'Random Cheats.ini'" 1000
ENDWHILE
TERMINATE_THIS_CUSTOM_SCRIPT
ENDIF
iTimeDelay *= 1000
iFirst--
timera = 0
WHILE TRUE
WAIT 0
IF timera > iTimeDelay
timera = 0
GENERATE_RANDOM_INT_IN_RANGE iFirst iLast (iCheatId)
IF bNoSuicide = TRUE
WHILE iCheatId = 29 //suicide
GENERATE_RANDOM_INT_IN_RANGE iFirst iLast (iCheatId)
ENDWHILE
ENDIF
CALL_FUNCTION 0x00438370 1 1 (iCheatId)
PRINT_HELP CHEAT1
ENDIF
ENDWHILE
}
SCRIPT_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment