ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.1,0,0,0,0,600,1);
//OnPlayerConnect
PreloadAnimLib(playerid,"AIRPORT");
PreloadAnimLib(playerid,"Attractors");
PreloadAnimLib(playerid,"BAR");
PreloadAnimLib(playerid,"BASEBALL");
PreloadAnimLib(playerid,"BD_FIRE");
PreloadAnimLib(playerid,"benchpress");
PreloadAnimLib(playerid,"BF_injection");
PreloadAnimLib(playerid,"BIKED");
PreloadAnimLib(playerid,"BIKEH");
PreloadAnimLib(playerid,"BIKELEAP");
PreloadAnimLib(playerid,"BIKES");
PreloadAnimLib(playerid,"BIKEV");
PreloadAnimLib(playerid,"BIKE_DBZ");
PreloadAnimLib(playerid,"BMX");
PreloadAnimLib(playerid,"BOX");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"BUDDY");
PreloadAnimLib(playerid,"BUS");
PreloadAnimLib(playerid,"CAMERA");
PreloadAnimLib(playerid,"CAR");
PreloadAnimLib(playerid,"CAR_CHAT");
PreloadAnimLib(playerid,"CASINO");
PreloadAnimLib(playerid,"CHAINSAW");
PreloadAnimLib(playerid,"CHOPPA");
PreloadAnimLib(playerid,"CLOTHES");
PreloadAnimLib(playerid,"COACH");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"COP_DVBYZ");
PreloadAnimLib(playerid,"CRIB");
PreloadAnimLib(playerid,"DAM_JUMP");
PreloadAnimLib(playerid,"DANCING");
PreloadAnimLib(playerid,"DILDO");
PreloadAnimLib(playerid,"DODGE");
PreloadAnimLib(playerid,"DOZER");
PreloadAnimLib(playerid,"DRIVEBYS");
PreloadAnimLib(playerid,"FAT");
PreloadAnimLib(playerid,"FIGHT_B");
PreloadAnimLib(playerid,"FIGHT_C");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"FIGHT_E");
PreloadAnimLib(playerid,"FINALE");
PreloadAnimLib(playerid,"FINALE2");
PreloadAnimLib(playerid,"Flowers");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"Freeweights");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"GHANDS");
PreloadAnimLib(playerid,"GHETTO_DB");
PreloadAnimLib(playerid,"goggles");
PreloadAnimLib(playerid,"GRAFFITI");
PreloadAnimLib(playerid,"GRAVEYARD");
PreloadAnimLib(playerid,"GRENADE");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"HAIRCUTS");
PreloadAnimLib(playerid,"HEIST9");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"INT_OFFICE");
PreloadAnimLib(playerid,"INT_SHOP");
PreloadAnimLib(playerid,"JST_BUISNESS");
PreloadAnimLib(playerid,"KART");
PreloadAnimLib(playerid,"KISSING");
PreloadAnimLib(playerid,"KNIFE");
PreloadAnimLib(playerid,"LAPDAN1");
PreloadAnimLib(playerid,"LAPDAN2");
PreloadAnimLib(playerid,"LAPDAN3");
PreloadAnimLib(playerid,"LOWRIDER");
PreloadAnimLib(playerid,"MD_CHASE");
PreloadAnimLib(playerid,"MEDIC");
PreloadAnimLib(playerid,"MD_END");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"MTB");
PreloadAnimLib(playerid,"MUSCULAR");
PreloadAnimLib(playerid,"NEVADA");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"OTB");
PreloadAnimLib(playerid,"PARACHUTE");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"PAULNMAC");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"PLAYER_DVBYS");
PreloadAnimLib(playerid,"PLAYIDLES");
PreloadAnimLib(playerid,"POLICE");
PreloadAnimLib(playerid,"POOL");
PreloadAnimLib(playerid,"POOR");
PreloadAnimLib(playerid,"PYTHON");
PreloadAnimLib(playerid,"QUAD");
PreloadAnimLib(playerid,"QUAD_DBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"RIOT");
PreloadAnimLib(playerid,"ROB_BANK");
PreloadAnimLib(playerid,"ROCKET");
PreloadAnimLib(playerid,"RUSTLER");
PreloadAnimLib(playerid,"RYDER");
PreloadAnimLib(playerid,"SCRATCHING");
PreloadAnimLib(playerid,"SHAMAL");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"SKATE");
PreloadAnimLib(playerid,"SPRAYCAN");
PreloadAnimLib(playerid,"STRIP");
PreloadAnimLib(playerid,"SUNBATHE");
PreloadAnimLib(playerid,"SWAT");
PreloadAnimLib(playerid,"SWEET");
PreloadAnimLib(playerid,"SWIM");
PreloadAnimLib(playerid,"SWORD");
PreloadAnimLib(playerid,"TANK");
PreloadAnimLib(playerid,"TATTOOS");
PreloadAnimLib(playerid,"TEC");
PreloadAnimLib(playerid,"TRAIN");
PreloadAnimLib(playerid,"TRUCK");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"VAN");
PreloadAnimLib(playerid,"VENDING");
PreloadAnimLib(playerid,"VORTEX");
PreloadAnimLib(playerid,"WAYFARER");
PreloadAnimLib(playerid,"WEAPONS");
PreloadAnimLib(playerid,"WUZI");
PreloadAnimLib(playerid,"SNM");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"SEX");
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
//example
PlayAnimEx(playerid, "BOMBER","BOM_Plant",4.1,0,0,0,0,600,1);
//stocks
stock PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0,1);
}
As you can see foresync is enabled. And yes, I do preload animations.
|
UserPreloadedAnim
if(!PlayerInfo[ playerid ][ UserPreloadedAnim ]) { PreloadAnimLib( playerid ); PlayerInfo[ playerid ][ UserPreloadedAnim ] = 1; }
PlayerInfo[ playerid ][ UserPreloadedAnim ] = 0;
stock PreloadAnimLib(playerid) { ApplyAnimation(playerid, "AIRPORT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "Attractors", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BAR", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BASEBALL", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BD_FIRE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "benchpress", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BF_injection", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKED", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKEH", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKELEAP", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKES", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKEV", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BIKE_DBZ", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BMX", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BOX", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BSKTBALL", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BUDDY", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BUS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CAMERA", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CAR", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CAR_CHAT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CASINO", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CHAINSAW", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CHOPPA", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CLOTHES", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "COACH", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "COLT45", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "COP_DVBYZ", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CRIB", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DAM_JUMP", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DANCING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DILDO", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DODGE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DOZER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DRIVEBYS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FAT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FIGHT_B", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FIGHT_C", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FIGHT_D", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FIGHT_E", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FINALE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FINALE2", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "Flowers", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FOOD", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "Freeweights", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GANGS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GHANDS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GHETTO_DB", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "goggles", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GRAFFITI", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GRAVEYARD", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GRENADE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "GYMNASIUM", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "HAIRCUTS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "HEIST9", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "INT_HOUSE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "INT_OFFICE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "INT_SHOP", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "JST_BUISNESS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "KART", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "KISSING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "KNIFE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "LAPDAN1", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "LAPDAN2", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "LAPDAN3", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "LOWRIDER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MD_CHASE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MEDIC", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MD_END", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MISC", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MTB", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "MUSCULAR", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "NEVADA", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "ON_LOOKERS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "OTB", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PARACHUTE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PARK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PAULNMAC", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PED", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PLAYER_DVBYS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PLAYIDLES", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "POLICE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "POOL", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "POOR", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PYTHON", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "QUAD", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "QUAD_DBZ", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "RIFLE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "RIOT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "ROB_BANK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "ROCKET", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "RUSTLER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "RYDER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SCRATCHING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHAMAL", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOTGUN", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SILENCED", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SKATE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SPRAYCAN", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "STRIP", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SUNBATHE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SWAT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SWEET", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SWIM", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SWORD", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "TANK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "TATTOOS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "TEC", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "TRAIN", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "TRUCK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "UZI", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "VAN", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "VENDING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "VORTEX", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "WAYFARER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "WEAPONS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "WUZI", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SNM", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BLOWJOBZ", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SEX", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BOMBER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "RAPPING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SHOP", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "BEACH", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "SMOKING", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FOOD", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "ON_LOOKERS", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "DEALER", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CRACK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "CARRY", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "COP_AMBIENT", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "PARK", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "INT_HOUSE", "null", 0, 0, 0, 0, 0, 0, 0); ApplyAnimation(playerid, "FOOD", "null", 0, 0, 0, 0, 0, 0, 0); }
Originally Posted by Amads
And yes, I do preload animations.
|