Advertisement
OtaconEvil

[INC] Pre-Cargar Animaciones By OTACON

Oct 29th, 2013
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.17 KB | None | 0 0
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè INCLUDE en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *              Publicación de este INCLUDE sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple INCLUDE is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the INCLUDE in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                    FULLY spaces Theft Credit or
  33.     *             Publication of this INCLUDE without my permission.
  34. */
  35. new PreLoadApplyAnimation[][32] = {
  36. "AIRPORT", "Attractors", "BAR", "BASEBALL", "BD_FIRE", "BEACH", "benchpress", "BF_injection",
  37. "BIKED", "BIKEH", "BIKELEAP", "BIKES", "BIKEV", "BIKE_DBZ", "BLOWJOBZ", "BMX", "BOMBER", "BOX",
  38. "BSKTBALL", "BUDDY", "BUS", "CAMERA", "CAR", "CARRY", "CAR_CHAT", "CASINO", "CHAINSAW", "CHOPPA",
  39. "CLOTHES", "COACH", "COLT45", "COP_AMBIENT", "COP_DVBYZ", "CRACK", "CRIB", "DAM_JUMP", "DANCING",
  40. "DEALER", "DILDO", "DODGE", "DOZER", "DRIVEBYS", "FAT", "FIGHT_B", "FIGHT_C", "FIGHT_D", "FIGHT_E",
  41. "FINALE", "FINALE2", "FLAME", "Flowers", "FOOD", "Freeweights", "GANGS", "GHANDS", "GHETTO_DB",
  42. "goggles", "GRAFFITI", "GRAVEYARD", "GRENADE", "GYMNASIUM", "HAIRCUTS", "HEIST9", "INT_HOUSE",
  43. "INT_OFFICE", "INT_SHOP", "JST_BUISNESS", "KART", "KISSING", "/KNIFE", "LAPDAN1", "LAPDAN2",
  44. "LAPDAN3", "LOWRIDER", "MD_CHASE", "MD_END", "MEDIC", "MISC", "MTB", "MUSCULAR", "NEVADA", "ON_LOOKERS",
  45. "OTB", "PARACHUTE", "PARK", "PAULNMAC", "PED", "PLAYER_DVBYS", "PLAYIDLES", "POLICE", "POOL", "POOR",
  46. "PYTHON", "QUAD", "QUAD_DBZ", "RAPPING", "RIFLE", "RIOT", "ROB_BANK", "ROCKET", "RUSTLER", "RYDER",
  47. "SCRATCHING", "SHAMAL", "SHOP", "SHOTGUN", "SILENCED", "SKATE", "SMOKING", "SNIPER", "SPRAYCAN", "STRIP", "SUNBATHE",
  48. "SWAT", "SWEET", "SWIM", "SWORD", "TANK", "TATTOOS", "TEC", "TRAIN", "TRUCK", "UZI", "VAN", "VENDING", "VORTEX",
  49. "WAYFARER", "WEAPONS", "WUZI" };
  50. #if defined FILTERSCRIPT
  51.     public OnFilterScriptInit() {
  52.         for(new player, user = GetMaxPlayers(); player != user; player++)  {
  53.             for(new animation, apply = sizeof(PreLoadApplyAnimation); animation != apply; animation++) \
  54.                 ApplyAnimation(player,PreLoadApplyAnimation[animation],"null",0.0,0,0,0,0,0,0), /*\
  55.                 printf("libreria cargada: %s", PreLoadApplyAnimation[animation]);*/ }
  56.         #if defined LOAD_OnFilterScriptInit
  57.             return LOAD_OnFilterScriptInit();
  58.         #else
  59.             return true;
  60.         #endif
  61.     }
  62.     #if defined LOAD_OnFilterScriptInit
  63.         forward LOAD_OnFilterScriptInit();
  64.     #endif
  65.     #if defined _ALS_OnFilterScriptInit
  66.         #undef OnFilterScriptInit
  67.     #else
  68.         #define _ALS_OnFilterScriptInit
  69.     #endif
  70.     #define OnFilterScriptInit LOAD_OnFilterScriptInit
  71. #else
  72.     public OnGameModeInit() {
  73.         for(new player, user = GetMaxPlayers(); player != user; player++)  {
  74.             for(new animation, apply = sizeof(PreLoadApplyAnimation); animation != apply; animation++) \
  75.                 ApplyAnimation(player,PreLoadApplyAnimation[animation],"null",0.0,0,0,0,0,0,0),/* \
  76.                 printf("libreria cargada: %s", PreLoadApplyAnimation[animation]);*/ }
  77.         #if defined LOAD_OnGameModeInit
  78.             return LOAD_OnGameModeInit();
  79.         #else
  80.             return true;
  81.         #endif
  82.     }
  83.     #if defined LOAD_OnGameModeInit
  84.         forward LOAD_OnGameModeInit();
  85.     #endif
  86.     #if defined _ALS_OnGameModeInit
  87.         #undef OnGameModeInit
  88.     #else
  89.         #define _ALS_OnGameModeInit
  90.     #endif
  91.     #define OnGameModeInit LOAD_OnGameModeInit
  92. #endif
  93. public OnPlayerConnect(playerid) {
  94.     for(new animation, apply = sizeof(PreLoadApplyAnimation); animation != apply; animation++) \
  95.         ApplyAnimation(playerid,PreLoadApplyAnimation[animation],"null",0.0,0,0,0,0,0,0);
  96.     #if defined LOAD_OnPlayerConnect
  97.         return LOAD_OnPlayerConnect(playerid);
  98.     #else
  99.         return true;
  100.     #endif
  101. }
  102. #if defined LOAD_OnPlayerConnect
  103.     forward LOAD_OnPlayerConnect(playerid);
  104. #endif
  105. #if defined _ALS_OnPlayerConnect
  106.     #undef OnPlayerConnect
  107. #else
  108.     #define _ALS_OnPlayerConnect
  109. #endif
  110. #define OnPlayerConnect LOAD_OnPlayerConnect
  111.  
  112. public OnPlayerDisconnect(playerid, reason) {
  113.     ClearAnimations(playerid);
  114.     #if defined LOAD_OnPlayerDisconnect
  115.         return LOAD_OnPlayerDisconnect(playerid, reason);
  116.     #else
  117.         return true;
  118.     #endif
  119. }
  120. #if defined LOAD_OnPlayerDisconnect
  121.     forward LOAD_OnPlayerDisconnect(playerid, reason);
  122. #endif
  123. #if defined _ALS_OnPlayerDisconnect
  124.     #undef OnPlayerDisconnect
  125. #else
  126.     #define _ALS_OnPlayerDisconnect
  127. #endif
  128. #define OnPlayerDisconnect LOAD_OnPlayerDisconnect
  129. /*
  130.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  131.     *
  132.     * Estè Simple INCLUDE esta hecho especialmente para www.forum.sa-mp.com
  133.     * NO Publicar estè INCLUDE en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  134.     *
  135.     * Codigo Creado Por OTACON
  136.     *
  137.     * CREDITOS:
  138.     *     OTACON: Realizacion y Idea de creacion del code.
  139.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  140.     *
  141.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  142.     *
  143.     *            Prohibido TOTALMENTE el Robo de Créditos o la
  144.     *              Publicación de este INCLUDE sin Mi Permiso.
  145. */
  146. /*
  147.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  148.     *
  149.     * This simple INCLUDE is made especially for www.forum.sa-mp.com
  150.     * DO NOT Post the INCLUDE in Other SAMP forums and impersonating the creator of the CODE.
  151.     *
  152.     * Code Created By OTACON
  153.     *
  154.     * CREDITS:
  155.     *     OTACON: Idea Making and code creation.
  156.     *     YOUR: Modification freely respecting the above ;).
  157.     *
  158.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  159.     *
  160.     *                    FULLY spaces Theft Credit or
  161.     *             Publication of this INCLUDE without my permission.
  162. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement