[Include] dc_anims - plug 'n' play animations list - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] dc_anims - plug 'n' play animations list (
/showthread.php?tid=524252)
dc_anims - plug 'n' play animations list -
DanielCortez - 06.07.2014
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:- Download dc_anims.inc and drop it into "pawno/include" directory.
- 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.
Re: dc_anims - plug 'n' play animations list -
iRaiDeN - 07.07.2014
Good work, but are you post in "Includes" section? it's a filter post in "Filterscripts" section.
Re: dc_anims - plug 'n' play animations list -
NewerthRoleplay - 07.07.2014
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.