Hallo zusammen,
bei meinem Script soll dem Spieler eine Animation angezeigt werden,
doch es sehen jeglich die anderen Spieler und nicht die Person selbst.
Mein Code dazu:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1);
Hallo zusammen,
bei meinem Script soll dem Spieler eine Animation angezeigt werden,
doch es sehen jeglich die anderen Spieler und nicht die Person selbst.
Mein Code dazu:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1);
forcesync | Set to 1 to make server sync the animation with all other players in streaming radius (optional). 2 works same as 1, but will ONLY apply the animation to streamed-in players, but NOT the actual player being animated (useful for npc animations and persistent animations when players are being streamed) |
Vlt ist das Ding fehlerhaft oder vertauscht. Teste mal die 2
Schon probiert, bringt nichts.
//Push
lässt du die Animationen vorher laden
Nein, hat aber auch nichts gebracht
Nein, hat aber auch nichts gebracht
also bei mir klapts
also bei mir klapts
Aber das bringt mir mal gar nichts...
Hat sonst wer eine Idee ? Bitte
tja wie gesagt versuch es doch nochmal mit dem vorladen der anims etw so
new gPlayerAnimLibsPreloaded[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(!gPlayerAnimLibsPreloaded[playerid])
{
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");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
return 1;
}
PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0,1);
}
public OnPlayerConnect(playerid)
{
gPlayerAnimLibsPreloaded[playerid] = 0;
return 1;
}