Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Script by Junior_Djjr - MixMods.com.br
// You need: http://brmodstudio.forumeiros.com/t7085-while-true-return_true-e-return_false-para-gta3script
SCRIPT_START
{
LVAR_INT scplayer enabled showtext seccmd
LVAR_TEXT_LABEL16 animname
GET_PLAYER_CHAR 0 scplayer
READ_INT_FROM_INI_FILE "CLEO\Parkour Mod.ini" "Settings" "ShowText" (showtext)
IF NOT READ_INT_FROM_INI_FILE "CLEO\Parkour Mod.ini" "Settings" "SecCMD" (seccmd)
seccmd = 0
ENDIF
WHILE TRUE
WAIT 0
IF TEST_CHEAT PKR
IF enabled = TRUE
enabled = FALSE
REMOVE_ANIMATION TRICKING
IF showtext = TRUE
PRINT_STRING_NOW "~s~Parkour: ~r~OFF" 1000
ENDIF
ELSE
enabled = TRUE
REQUEST_ANIMATION TRICKING
LOAD_ALL_MODELS_NOW
IF showtext = TRUE
PRINT_STRING_NOW "~s~Parkour: ~b~ON" 1000
ENDIF
ENDIF
ENDIF
IF enabled = TRUE
IF GOSUB CheckSecCMD
animname = ""
IF IS_KEY_PRESSED VK_KEY_1
animname = BF
ENDIF
IF IS_KEY_PRESSED VK_KEY_2
animname = FRONTFLY
ENDIF
IF IS_KEY_PRESSED VK_KEY_3
animname = SIDEFLIP
ENDIF
IF IS_KEY_PRESSED VK_KEY_4
animname = GAINER
ENDIF
IF IS_KEY_PRESSED VK_KEY_5
animname = FOLHA
ENDIF
IF IS_KEY_PRESSED VK_KEY_6
animname = CORK
ENDIF
IF IS_KEY_PRESSED VK_KEY_7
animname = WEBSTER
ENDIF
IF IS_KEY_PRESSED VK_KEY_8
animname = BF360
ENDIF
IF IS_KEY_PRESSED VK_KEY_9
animname = ROUND
ENDIF
IF IS_KEY_PRESSED VK_KEY_0
animname = FIFLAK
ENDIF
IF IS_KEY_PRESSED VK_KEY_T
animname = FIFLAKBF
ENDIF
IF IS_KEY_PRESSED VK_KEY_Y
animname = PALMFLIP
ENDIF
IF IS_KEY_PRESSED VK_KEY_U
animname = WALLFLIP
ENDIF
IF IS_KEY_PRESSED VK_KEY_I
animname = CORKSTFOLHA
ENDIF
IF IS_KEY_PRESSED VK_KEY_O
animname = POPUP
ENDIF
IF IS_KEY_PRESSED VK_KEY_P
animname = JMPDIVE
ENDIF
IF IS_KEY_PRESSED VK_KEY_G
animname = FRONTCMB
ENDIF
IF IS_KEY_PRESSED VK_KEY_H
animname = HANDSTAND
ENDIF
IF IS_KEY_PRESSED VK_KEY_J
animname = TUMB1
ENDIF
IF IS_KEY_PRESSED VK_KEY_K
animname = TUMB2
ENDIF
IF IS_KEY_PRESSED VK_KEY_L
animname = TUMB3
ENDIF
IF IS_KEY_PRESSED VK_KEY_B
animname = WALLSIDE
ENDIF
IF IS_KEY_PRESSED VK_KEY_N
animname = WALLFRONT
ENDIF
IF IS_KEY_PRESSED VK_KEY_M
animname = BACKSPRING
ENDIF
IF IS_KEY_PRESSED VK_OEM_COMMA
animname = AERIAL
ENDIF
IF NOT IS_LVAR_TEXT_LABEL16_EMPTY animname
TASK_PLAY_ANIM scplayer ($animname TRICKING) 4.0 (FALSE TRUE TRUE FALSE -1)
ENDIF
ENDIF
ENDIF
ENDWHILE
/////////////////////////////////////////////////
CheckSecCMD:
RETURN_FALSE
IF seccmd > 0
IF IS_KEY_PRESSED seccmd
RETURN_TRUE
ENDIF
ELSE
RETURN_TRUE
ENDIF
RETURN
}
SCRIPT_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment