Jujuv icon

[SA:MP | INC] AnimLib R1.1

Jujuv | PRO | 08/28/12 08:15:48 AM UTC | 0 ⭐ | 381 👁️ | Never ⏰ | []
Pawn |

7.24 KB

|

None

|

0 👍

/

0 👎

/*
English:
    This library is designed to avoid scripters from spending much time doing that themself.
    This library is easy to make and i know that.
    I know it may look a bit useless but some scripters don't want to make this kind of work by themself.
    
    This script made by [FR]Still-Alive is licensed as Creative Commons Non-Commercial.
    You are allowed to share it, hack it, love it, but don't sell it !
    
Français:
    Cette bibliotheque a été crée pour aider les scripters à gagner du temps.
    Cette bibliotheque est vraiment facile à réaliser (surtout avec l'utilisation de Y_hooks) et j'en suis parfaitement conscient.
    Je sais que ce script peux parraite inutile mais il y'a des scripters qui n'aiment pas passer des heures à re-faire ce genre de scripts simples et répétitifes.
 
    Ce script réalisé par [FR]Still-Alive est distribué sous la licence Creative Commons Non-Commercial
    Vous pouvez le partager, le hack, l'aimer mais pas le vendre !
*/
 
 
 
/*
English:
    Just comment the lines of the librarys you don't use and uncomment the lines of the librarys you use.
 
Français:
    Mettez les lignes des librairies que vous n'utilisez pas en commentaire et décommentez celle que vous utilisez.
    Simple comme bonjour !
    
*/
 
 
 
 
/*
 
English:
Try to pre-load the given animation-library.
Return: 1 on fail, 0 on sucess
 
Français:
Tente de pré-charger la librairies d'animations spécifié.
Retourne: 1 si echec, 0 si réussite.
 
*/
stock PreloadAnimation(playerid, animLib[])
{
    if(!IsPlayerConnected(playerid))
        return 1;
        
    ApplyAnimation(playerid, animLib, "null", 0.0, 0, 0, 0, 0, 0);
    return 0;
}
 
#include <YSI\y_hooks>
 
#if !defined ANIMLIB_INCLUDED
    #define ANIMLIB_INCLUDED
#else
    #error You have included animLib 2 times in the script !
    #endinput
#endif
 
hook OnPlayerSpawn(playerid)
{
    /*
    Vehicle related ones / Concernant les vehicules
    */
    
    //PreloadAnimation(playerid, "BF_injection");
    //PreloadAnimation(playerid, "BMX");
    //PreloadAnimation(playerid, "DODGE");
    //PreloadAnimation(playerid, "DOZER");
    //PreloadAnimation(playerid, "KART");
    //PreloadAnimation(playerid, "SHAMAL");
    //PreloadAnimation(playerid, "VORTEX");
    //PreloadAnimation(playerid, "TRAIN");
    //PreloadAnimation(playerid, "TRUCK");
    //PreloadAnimation(playerid, "VAN");
    //PreloadAnimation(playerid, "TANK");
    //PreloadAnimation(playerid, "NEVADA");
    //PreloadAnimation(playerid, "BUS");
    //PreloadAnimation(playerid, "QUAD");
    //PreloadAnimation(playerid, "RUSTLER");
    
    //PreloadAnimation(playerid, "DRIVEBYS");
    
    
    /*
    Weapons related ones / Concernant les armes
    */
    //PreloadAnimation(playerid, "CHAINSAW");
    //PreloadAnimation(playerid, "DILDO");
    //PreloadAnimation(playerid, "GRENADE");
    //PreloadAnimation(playerid, "COLT45");
    //PreloadAnimation(playerid, "goggles");
    //PreloadAnimation(playerid, "KNIFE");
    //PreloadAnimation(playerid, "SHOTGUN");
    //PreloadAnimation(playerid, "SILENCED");
    //PreloadAnimation(playerid, "SNI//PER");
    //PreloadAnimation(playerid, "S//PRAYCAN");
    //PreloadAnimation(playerid, "RIFLE");
    //PreloadAnimation(playerid, "ROCKET");
    
    //PreloadAnimation(playerid, "WEAPONS");
    
    /*
    Most used / Les plus courrament utilisés
    */
    PreloadAnimation(playerid, "BOMBER");
    PreloadAnimation(playerid, "RAPPING");
    PreloadAnimation(playerid, "ped");
    PreloadAnimation(playerid, "BEACH");
    PreloadAnimation(playerid, "SHOP");
    PreloadAnimation(playerid, "FOOD");
    PreloadAnimation(playerid, "SMOKING");
    PreloadAnimation(playerid, "ON_LOOKERS");
    PreloadAnimation(playerid, "DEALER");   
    PreloadAnimation(playerid, "CRACK");
    PreloadAnimation(playerid, "CARRY");
    PreloadAnimation(playerid, "COP_AMBIENT");
    PreloadAnimation(playerid, "PARK");
    PreloadAnimation(playerid, "INT_HOUSE");
    PreloadAnimation(playerid, "MISC");
    PreloadAnimation(playerid, "OTB");
    PreloadAnimation(playerid, "BD_FIRE");
    PreloadAnimation(playerid, "benchpress");
    PreloadAnimation(playerid, "KISSING");
    PreloadAnimation(playerid, "BSKTBALL");
    PreloadAnimation(playerid, "MEDIC");
    PreloadAnimation(playerid, "SWORD");
    PreloadAnimation(playerid, "POLICE");
    PreloadAnimation(playerid, "SUNBATHE");
    PreloadAnimation(playerid, "FAT");
    PreloadAnimation(playerid, "WUZI");
    PreloadAnimation(playerid, "SWEET");
    PreloadAnimation(playerid, "ROB_BANK");
    PreloadAnimation(playerid, "GANGS");
    PreloadAnimation(playerid, "RIOT");
    PreloadAnimation(playerid, "GYMNASIUM");
    PreloadAnimation(playerid, "GRAVEYARD");
    PreloadAnimation(playerid, "POOL");
    
    PreloadAnimation(playerid, "CAR");
    PreloadAnimation(playerid, "CAR_CHAT");
    
    
    /*
    Others / Autres
    */
    //PreloadAnimation(playerid, "AIR//PORT");
    //PreloadAnimation(playerid, "Attractors");
    //PreloadAnimation(playerid, "BAR");
    //PreloadAnimation(playerid, "BASEBALL");
    //PreloadAnimation(playerid, "BIKED");
    //PreloadAnimation(playerid, "BIKEH");
    //PreloadAnimation(playerid, "BIKES");
    //PreloadAnimation(playerid, "BIKEV");
    //PreloadAnimation(playerid, "BIKE_DBZ");
    //PreloadAnimation(playerid, "BLOWJOBZ");
    //PreloadAnimation(playerid, "BOX");
    //PreloadAnimation(playerid, "BUDDY");
    //PreloadAnimation(playerid, "CAMERA");
    //PreloadAnimation(playerid, "CASINO");
    //PreloadAnimation(playerid, "CHO//P//PA");
    //PreloadAnimation(playerid, "CLOTHES");
    //PreloadAnimation(playerid, "COACH");
    //PreloadAnimation(playerid, "CO//P_DVBYZ");
    //PreloadAnimation(playerid, "CRIB");
    //PreloadAnimation(playerid, "DAM_JUM//P");
    //PreloadAnimation(playerid, "DANCING");
    //PreloadAnimation(playerid, "FIGHT_B");
    //PreloadAnimation(playerid, "FIGHT_C");
    //PreloadAnimation(playerid, "FIGHT_D");
    //PreloadAnimation(playerid, "FIGHT_E");
    //PreloadAnimation(playerid, "FINALE");
    //PreloadAnimation(playerid, "FINALE2");
    //PreloadAnimation(playerid, "FLAME");
    //PreloadAnimation(playerid, "Flowers");
    //PreloadAnimation(playerid, "Freeweights");
    //PreloadAnimation(playerid, "GHANDS");
    //PreloadAnimation(playerid, "GHETTO_DB");
    //PreloadAnimation(playerid, "GRAFFITI");
    //PreloadAnimation(playerid, "HAIRCUTS");
    //PreloadAnimation(playerid, "HEIST9");
    //PreloadAnimation(playerid, "INT_OFFICE");
    //PreloadAnimation(playerid, "INT_SHO//P");
    //PreloadAnimation(playerid, "JST_BUISNESS");
    //PreloadAnimation(playerid, "LA//PDAN1");
    //PreloadAnimation(playerid, "LA//PDAN2");
    //PreloadAnimation(playerid, "LA//PDAN3");
    //PreloadAnimation(playerid, "LOWRIDER");
    //PreloadAnimation(playerid, "MD_CHASE");
    //PreloadAnimation(playerid, "MD_END");
    //PreloadAnimation(playerid, "MTB");
    //PreloadAnimation(playerid, "MUSCULAR");
    //PreloadAnimation(playerid, "//PARACHUTE");
    //PreloadAnimation(playerid, "//PAULNMAC");
    //PreloadAnimation(playerid, "//PLAYER_DVBYS");
    //PreloadAnimation(playerid, "//PLAYIDLES");
    //PreloadAnimation(playerid, "//POOR");
    //PreloadAnimation(playerid, "QUAD_DBZ");
    //PreloadAnimation(playerid, "RYDER");
    //PreloadAnimation(playerid, "SCRATCHING");
    //PreloadAnimation(playerid, "SKATE");
    //PreloadAnimation(playerid, "STRI//P");
    //PreloadAnimation(playerid, "SWAT");
    //PreloadAnimation(playerid, "SWIM");
    //PreloadAnimation(playerid, "TATTOOS");
    //PreloadAnimation(playerid, "TEC");
    //PreloadAnimation(playerid, "VENDING");
    //PreloadAnimation(playerid, "WAYFARER");   
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎