14.04.2019, 15:02
Hello,
how to preload animations to avoid not playing animation in scipt?
how to preload animations to avoid not playing animation in scipt?
new const AnimLibs[][] = {
"AIRPORT", "ATTRACTORS", "BAR", "BASEBALL", "BD_FIRE",
"BEACH", "BENCHPRESS", "BF_INJECTION", "BIKE_DBZ", "BIKED",
"BIKEH", "BIKELEAP", "BIKES", "BIKEV", "BLOWJOBZ",
"BMX", "BOMBER", "BOX", "BSKTBALL", "BUDDY",
"BUS", "CAMERA", "CAR", "CAR_CHAT", "CARRY",
"CASINO", "CHAINSAW", "CHOPPA", "CLOTHES", "COACH",
"COLT45", "COP_AMBIENT", "COP_DVBYZ", "CRACK", "CRIB",
"DAM_JUMP", "DANCING", "DEALER", "DILDO", "DODGE",
"DOZER", "DRIVEBYS", "FAT", "FIGHT_B", "FIGHT_C",
"FIGHT_D", "FIGHT_E", "FINALE", "FINALE2", "FLAME",
"FLOWERS", "FOOD", "FREEWEIGHTS", "GANGS", "GFUNK",
"GHANDS", "GHETTO_DB", "GOGGLES", "GRAFFITI", "GRAVEYARD",
"GRENADE", "GYMNASIUM", "HAIRCUTS", "HEIST9", "INT_HOUSE",
"INT_OFFICE", "INT_SHOP", "JST_BUISNESS", "KART", "KISSING",
"KNIFE", "LAPDAN1", "LAPDAN2", "LAPDAN3", "LOWRIDER",
"MD_CHASE", "MD_END", "MEDIC", "MISC", "MTB",
"MUSCULAR", "NEVADA", "ON_LOOKERS", "OTB", "PARACHUTE",
"PARK", "PAULNMAC", "PED", "PLAYER_DVBYS", "PLAYIDLES",
"POLICE", "POOL", "POOR", "PYTHON", "QUAD",
"QUAD_DBZ", "RAPPING", "RIFLE", "RIOT", "ROB_BANK",
"ROCKET", "RUNNINGMAN", "RUSTLER", "RYDER", "SCRATCHING",
"SEX", "SHAMAL", "SHOP", "SHOTGUN", "SILENCED",
"SKATE", "SMOKING", "SNIPER", "SNM", "SPRAYCAN",
"STRIP", "SUNBATHE", "SWAT", "SWEET", "SWIM",
"SWORD", "TANK", "TATTOOS", "TEC", "TRAIN",
"TRUCK", "UZI", "VAN", "VENDING", "VORTEX",
"WAYFARER", "WEAPONS", "WOP", "WUZI"
};
stock PreloadAnimLibs(playerid) {
for(new i = 0; i < sizeof(AnimLibs); i++) {
ApplyAnimation(playerid, AnimLibs[i], "null", 4.0, 0, 0, 0, 0, 0, 1);
}
return 1;
}