Advertisement
Jujuv

[SA:MP | INC] AnimLib R1.1

Aug 28th, 2012
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 7.24 KB | None | 0 0
  1. /*
  2. English:
  3.     This library is designed to avoid scripters from spending much time doing that themself.
  4.     This library is easy to make and i know that.
  5.     I know it may look a bit useless but some scripters don't want to make this kind of work by themself.
  6.    
  7.     This script made by [FR]Still-Alive is licensed as Creative Commons Non-Commercial.
  8.     You are allowed to share it, hack it, love it, but don't sell it !
  9.    
  10. Français:
  11.     Cette bibliotheque a été crée pour aider les scripters à gagner du temps.
  12.     Cette bibliotheque est vraiment facile à réaliser (surtout avec l'utilisation de Y_hooks) et j'en suis parfaitement conscient.
  13.     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.
  14.  
  15.     Ce script réalisé par [FR]Still-Alive est distribué sous la licence Creative Commons Non-Commercial
  16.     Vous pouvez le partager, le hack, l'aimer mais pas le vendre !
  17. */
  18.  
  19.  
  20.  
  21. /*
  22. English:
  23.     Just comment the lines of the librarys you don't use and uncomment the lines of the librarys you use.
  24.  
  25. Français:
  26.     Mettez les lignes des librairies que vous n'utilisez pas en commentaire et décommentez celle que vous utilisez.
  27.     Simple comme bonjour !
  28.    
  29. */
  30.  
  31.  
  32.  
  33.  
  34. /*
  35.  
  36. English:
  37. Try to pre-load the given animation-library.
  38. Return: 1 on fail, 0 on sucess
  39.  
  40. Français:
  41. Tente de pré-charger la librairies d'animations spécifié.
  42. Retourne: 1 si echec, 0 si réussite.
  43.  
  44. */
  45. stock PreloadAnimation(playerid, animLib[])
  46. {
  47.     if(!IsPlayerConnected(playerid))
  48.         return 1;
  49.        
  50.     ApplyAnimation(playerid, animLib, "null", 0.0, 0, 0, 0, 0, 0);
  51.     return 0;
  52. }
  53.  
  54. #include <YSI\y_hooks>
  55.  
  56. #if !defined ANIMLIB_INCLUDED
  57.     #define ANIMLIB_INCLUDED
  58. #else
  59.     #error You have included animLib 2 times in the script !
  60.     #endinput
  61. #endif
  62.  
  63. hook OnPlayerSpawn(playerid)
  64. {
  65.     /*
  66.     Vehicle related ones / Concernant les vehicules
  67.     */
  68.    
  69.     //PreloadAnimation(playerid, "BF_injection");
  70.     //PreloadAnimation(playerid, "BMX");
  71.     //PreloadAnimation(playerid, "DODGE");
  72.     //PreloadAnimation(playerid, "DOZER");
  73.     //PreloadAnimation(playerid, "KART");
  74.     //PreloadAnimation(playerid, "SHAMAL");
  75.     //PreloadAnimation(playerid, "VORTEX");
  76.     //PreloadAnimation(playerid, "TRAIN");
  77.     //PreloadAnimation(playerid, "TRUCK");
  78.     //PreloadAnimation(playerid, "VAN");
  79.     //PreloadAnimation(playerid, "TANK");
  80.     //PreloadAnimation(playerid, "NEVADA");
  81.     //PreloadAnimation(playerid, "BUS");
  82.     //PreloadAnimation(playerid, "QUAD");
  83.     //PreloadAnimation(playerid, "RUSTLER");
  84.    
  85.     //PreloadAnimation(playerid, "DRIVEBYS");
  86.    
  87.    
  88.     /*
  89.     Weapons related ones / Concernant les armes
  90.     */
  91.     //PreloadAnimation(playerid, "CHAINSAW");
  92.     //PreloadAnimation(playerid, "DILDO");
  93.     //PreloadAnimation(playerid, "GRENADE");
  94.     //PreloadAnimation(playerid, "COLT45");
  95.     //PreloadAnimation(playerid, "goggles");
  96.     //PreloadAnimation(playerid, "KNIFE");
  97.     //PreloadAnimation(playerid, "SHOTGUN");
  98.     //PreloadAnimation(playerid, "SILENCED");
  99.     //PreloadAnimation(playerid, "SNI//PER");
  100.     //PreloadAnimation(playerid, "S//PRAYCAN");
  101.     //PreloadAnimation(playerid, "RIFLE");
  102.     //PreloadAnimation(playerid, "ROCKET");
  103.    
  104.     //PreloadAnimation(playerid, "WEAPONS");
  105.    
  106.     /*
  107.     Most used / Les plus courrament utilisés
  108.     */
  109.     PreloadAnimation(playerid, "BOMBER");
  110.     PreloadAnimation(playerid, "RAPPING");
  111.     PreloadAnimation(playerid, "ped");
  112.     PreloadAnimation(playerid, "BEACH");
  113.     PreloadAnimation(playerid, "SHOP");
  114.     PreloadAnimation(playerid, "FOOD");
  115.     PreloadAnimation(playerid, "SMOKING");
  116.     PreloadAnimation(playerid, "ON_LOOKERS");
  117.     PreloadAnimation(playerid, "DEALER");  
  118.     PreloadAnimation(playerid, "CRACK");
  119.     PreloadAnimation(playerid, "CARRY");
  120.     PreloadAnimation(playerid, "COP_AMBIENT");
  121.     PreloadAnimation(playerid, "PARK");
  122.     PreloadAnimation(playerid, "INT_HOUSE");
  123.     PreloadAnimation(playerid, "MISC");
  124.     PreloadAnimation(playerid, "OTB");
  125.     PreloadAnimation(playerid, "BD_FIRE");
  126.     PreloadAnimation(playerid, "benchpress");
  127.     PreloadAnimation(playerid, "KISSING");
  128.     PreloadAnimation(playerid, "BSKTBALL");
  129.     PreloadAnimation(playerid, "MEDIC");
  130.     PreloadAnimation(playerid, "SWORD");
  131.     PreloadAnimation(playerid, "POLICE");
  132.     PreloadAnimation(playerid, "SUNBATHE");
  133.     PreloadAnimation(playerid, "FAT");
  134.     PreloadAnimation(playerid, "WUZI");
  135.     PreloadAnimation(playerid, "SWEET");
  136.     PreloadAnimation(playerid, "ROB_BANK");
  137.     PreloadAnimation(playerid, "GANGS");
  138.     PreloadAnimation(playerid, "RIOT");
  139.     PreloadAnimation(playerid, "GYMNASIUM");
  140.     PreloadAnimation(playerid, "GRAVEYARD");
  141.     PreloadAnimation(playerid, "POOL");
  142.    
  143.     PreloadAnimation(playerid, "CAR");
  144.     PreloadAnimation(playerid, "CAR_CHAT");
  145.    
  146.    
  147.     /*
  148.     Others / Autres
  149.     */
  150.     //PreloadAnimation(playerid, "AIR//PORT");
  151.     //PreloadAnimation(playerid, "Attractors");
  152.     //PreloadAnimation(playerid, "BAR");
  153.     //PreloadAnimation(playerid, "BASEBALL");
  154.     //PreloadAnimation(playerid, "BIKED");
  155.     //PreloadAnimation(playerid, "BIKEH");
  156.     //PreloadAnimation(playerid, "BIKES");
  157.     //PreloadAnimation(playerid, "BIKEV");
  158.     //PreloadAnimation(playerid, "BIKE_DBZ");
  159.     //PreloadAnimation(playerid, "BLOWJOBZ");
  160.     //PreloadAnimation(playerid, "BOX");
  161.     //PreloadAnimation(playerid, "BUDDY");
  162.     //PreloadAnimation(playerid, "CAMERA");
  163.     //PreloadAnimation(playerid, "CASINO");
  164.     //PreloadAnimation(playerid, "CHO//P//PA");
  165.     //PreloadAnimation(playerid, "CLOTHES");
  166.     //PreloadAnimation(playerid, "COACH");
  167.     //PreloadAnimation(playerid, "CO//P_DVBYZ");
  168.     //PreloadAnimation(playerid, "CRIB");
  169.     //PreloadAnimation(playerid, "DAM_JUM//P");
  170.     //PreloadAnimation(playerid, "DANCING");
  171.     //PreloadAnimation(playerid, "FIGHT_B");
  172.     //PreloadAnimation(playerid, "FIGHT_C");
  173.     //PreloadAnimation(playerid, "FIGHT_D");
  174.     //PreloadAnimation(playerid, "FIGHT_E");
  175.     //PreloadAnimation(playerid, "FINALE");
  176.     //PreloadAnimation(playerid, "FINALE2");
  177.     //PreloadAnimation(playerid, "FLAME");
  178.     //PreloadAnimation(playerid, "Flowers");
  179.     //PreloadAnimation(playerid, "Freeweights");
  180.     //PreloadAnimation(playerid, "GHANDS");
  181.     //PreloadAnimation(playerid, "GHETTO_DB");
  182.     //PreloadAnimation(playerid, "GRAFFITI");
  183.     //PreloadAnimation(playerid, "HAIRCUTS");
  184.     //PreloadAnimation(playerid, "HEIST9");
  185.     //PreloadAnimation(playerid, "INT_OFFICE");
  186.     //PreloadAnimation(playerid, "INT_SHO//P");
  187.     //PreloadAnimation(playerid, "JST_BUISNESS");
  188.     //PreloadAnimation(playerid, "LA//PDAN1");
  189.     //PreloadAnimation(playerid, "LA//PDAN2");
  190.     //PreloadAnimation(playerid, "LA//PDAN3");
  191.     //PreloadAnimation(playerid, "LOWRIDER");
  192.     //PreloadAnimation(playerid, "MD_CHASE");
  193.     //PreloadAnimation(playerid, "MD_END");
  194.     //PreloadAnimation(playerid, "MTB");
  195.     //PreloadAnimation(playerid, "MUSCULAR");
  196.     //PreloadAnimation(playerid, "//PARACHUTE");
  197.     //PreloadAnimation(playerid, "//PAULNMAC");
  198.     //PreloadAnimation(playerid, "//PLAYER_DVBYS");
  199.     //PreloadAnimation(playerid, "//PLAYIDLES");
  200.     //PreloadAnimation(playerid, "//POOR");
  201.     //PreloadAnimation(playerid, "QUAD_DBZ");
  202.     //PreloadAnimation(playerid, "RYDER");
  203.     //PreloadAnimation(playerid, "SCRATCHING");
  204.     //PreloadAnimation(playerid, "SKATE");
  205.     //PreloadAnimation(playerid, "STRI//P");
  206.     //PreloadAnimation(playerid, "SWAT");
  207.     //PreloadAnimation(playerid, "SWIM");
  208.     //PreloadAnimation(playerid, "TATTOOS");
  209.     //PreloadAnimation(playerid, "TEC");
  210.     //PreloadAnimation(playerid, "VENDING");
  211.     //PreloadAnimation(playerid, "WAYFARER");  
  212. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement