[Include] dc_anims - plug 'n' play animations list
#1

dc_anims.inc - all GTA:SA animations in one include.
Contains 1871 animations in 134 libraries.





All animations are effectively organized in an animations table. That way you can easily add/remove animations from it.

Features:
  • Complete list of GTA:SA animations.
  • Actions list (dancing, drinking, smoking, etc.)
  • Animation libraries preloading on 1st spawn.
  • Russian/English languages support.
Commands:
Код:
/anim [animlib] [animation ID] - play the specified animation (without parameters - list all available animation libraries)
/stopanim - stop current animation
/action [action name] - play the specified action (without parameters - list all available action names)
Usage:
  1. Download dc_anims.inc and drop it into "pawno/include" directory.
  2. Use it in your gamemode:
    PHP код:
    #include <a_samp>
    #define    DC_ANIMS_LANG_EN
    #include <dc_anims> 
Extras:
  • dc_anims can optionally work with a command processor (ZCMD, for example), just include that command engine before using dc_anims.
    Example:
    PHP код:
    #include <a_samp>
    #include <zcmd>
    #include <dc_anims> // ZCMD will be used for command processing 
    PHP код:
    #include <a_samp>
    #include <dc_anims> // no command processor included - use standard commands 
  • There are 2 colors for messages displaying in dc_anims: light blue (for regular messages) and grey (for error messages).
    You can redefine these colors by defining DC_ANIMS_COLOR and DC_ANIMS_ERROR_COLOR macros before using this include.
    Example:
    PHP код:
    #include <a_samp>
    #define    DC_ANIMS_COLOR    "{00FF00}" // regular messages will be green
    #define    DC_ANIMS_ERROR_COLOR    "{FF0000}" // errors - red
    #include <dc_anims> 
  • If actions list is conflicting with some features from your gamemode, you can disable this list by defining DC_ANIMS_DISABLE_ACTIONS macro:
    PHP код:
    #include <a_samp>
    #define    DC_ANIMS_DISABLE_ACTIONS // remove "/actions" command and actions table
    #include <dc_anims> 
  • This include was first released in Russia, so English language isn't enabled by default. You can enable it by defining DC_ANIMS_LANG_EN macro though:
    PHP код:
    #include <a_samp>
    #define    DC_ANIMS_LANG_EN
    #include <dc_anims> 
Download: https://www.dropbox.com/s/5uq8hkyor3qrnop/dc_anims.inc
Author: Daniel_Cortez.
Reply
#2

Good work, but are you post in "Includes" section? it's a filter post in "Filterscripts" section.
Reply
#3

Quote:
Originally Posted by iRaiDeN
Посмотреть сообщение
Good work, but are you post in "Includes" section? it's a filter post in "Filterscripts" section.
It actually is an include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)