Last active
May 10, 2018 17:52
-
-
Save UmGeek/5cbe87b505f0048ee91a0a256d642374 to your computer and use it in GitHub Desktop.
GTA San Andreas, Simple PlayAnime Cleo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_START | |
{ | |
NOP | |
WAIT 500 | |
LVAR_INT scplayer command_key | |
LVAR_TEXT_LABEL IFP | |
LVAR_TEXT_LABEL16 ANIMATION | |
GET_PLAYER_CHAR 0 scplayer | |
IF NOT READ_INT_FROM_INI_FILE "cleo\Simple playAnim.ini" "settings" "Command Key" command_key | |
command_key = 80 // p | |
WRITE_INT_TO_INI_FILE command_key "cleo\Simple playAnim.ini" "settings" "Command Key" | |
ENDIF | |
IF NOT READ_STRING_FROM_INI_FILE "cleo\Simple playAnim.ini" "settings" "IFP" IFP | |
STRING_FORMAT IFP "spraycan" | |
WRITE_STRING_TO_INI_FILE $IFP "cleo\Simple playAnim.ini" "settings" "IFP" | |
ENDIF | |
IF NOT READ_STRING_FROM_INI_FILE "cleo\Simple playAnim.ini" "settings" "ANIMATION" ANIMATION | |
STRING_FORMAT ANIMATION "spraycan_full" | |
WRITE_STRING_TO_INI_FILE $ANIMATION "cleo\Simple playAnim.ini" "settings" "ANIMATION" | |
ENDIF | |
WHILE IS_PC_VERSION | |
IF IS_KEY_PRESSED command_key //80 | |
REQUEST_ANIMATION $IFP | |
LOAD_ALL_MODELS_NOW | |
TASK_PLAY_ANIM scplayer $ANIMATION $IFP 4.0 TRUE TRUE TRUE FALSE -1 | |
WHILE IS_KEY_PRESSED command_key | |
WAIT 4 | |
ENDWHILE | |
CLEAR_CHAR_TASKS scplayer | |
REMOVE_ANIMATION $IFP | |
ENDIF | |
WAIT 4 | |
ENDWHILE | |
TERMINATE_THIS_CUSTOM_SCRIPT | |
} | |
SCRIPT_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment