PDA

View Full Version : help Anime Not Working +Rep


StarPeens
05/03/2015, 06:02 PM
public OnPlayerRequestClass(playerid, classid)
{

SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, 2235.768310, 1632.708129, 1008.359375);
SetPlayerFacingAngle(playerid, 0.110143);
SetPlayerCameraLookAt(playerid, 2235.768310, 1632.708129, 1008.359375);
SetPlayerCameraPos(playerid, 2235.768310 + (5 * floatsin(-0.110143, degrees)), 1632.708129 + (5 * floatcos(-0.110143, degrees)), 1008.359375);

if(classid == 0){
Gang[playerid] = MILITARES;
SetPlayerTeamEx(playerid,MILITARES);
GameTextForPlayer(playerid, "~p~GANG DOS MILITARES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x0000FFAA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1);
}
else if(classid == 1){
Gang[playerid] = PIRATA;
SetPlayerTeamEx(playerid,PIRATA);
GameTextForPlayer(playerid, "~p~GANG DOS PIRATAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x808000AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}
else if(classid == 2){
Gang[playerid] = BOMBEIROS;
SetPlayerTeamEx(playerid,BOMBEIROS);
GameTextForPlayer(playerid, "~p~GANG DOS BOMBEIROS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF808096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"CHOPPA","CHOPPA_back",4.1,1,1,1,1,1);
}
else if(classid == 3){
Gang[playerid] = MANOBRISTA;
SetPlayerTeamEx(playerid,MANOBRISTA);
GameTextForPlayer(playerid, "~p~GANG DOS MANOBRISTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x000B5196);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SetPlayerSpecialAction(playerid, 68);
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
}
else if(classid == 4 || classid == 5){
Gang[playerid] = CHINES;
SetPlayerTeamEx(playerid,CHINES);
GameTextForPlayer(playerid, "~p~GANG DOS CHINEZES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF80FF9E);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
}
else if(classid == 6){
Gang[playerid] = GATES;
SetPlayerTeamEx(playerid,GATES);
GameTextForPlayer(playerid, "~p~GANG DOS GATES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFA500AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 7 || classid == 8){
Gang[playerid] = BOYZINHOS;
SetPlayerTeamEx(playerid,BOYZINHOS);
GameTextForPlayer(playerid, "~p~GANG DOS BOYZINHOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xAA3333AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
}
else if(classid == 9){
Gang[playerid] = BOZO;
SetPlayerTeamEx(playerid,BOZO);
GameTextForPlayer(playerid, "~p~GANG DOS BOZO JAMES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x80FF0096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 10){
Gang[playerid] = GROOVER;
SetPlayerTeamEx(playerid,GROOVER);
GameTextForPlayer(playerid, "~p~GANG DOS GROOVERS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x008000AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,0,1,1,1,1);
}
else if(classid == 11 || classid == 12){
Gang[playerid] = BALLAS;
SetPlayerTeamEx(playerid,BALLAS);
GameTextForPlayer(playerid, "~p~GANG DOS BALLAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8000808D);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
}
else if(classid == 13 || classid == 14){
Gang[playerid] = NOIAS;
SetPlayerTeamEx(playerid,NOIAS);
GameTextForPlayer(playerid, "~p~GANG DOS NOIAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x0080C0AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
}
else if(classid == 15){
Gang[playerid] = FRANGOS;
SetPlayerTeamEx(playerid,FRANGOS);
GameTextForPlayer(playerid, "~p~GANG DOS FRANGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xDAA520AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 0, 1, 1, 0);
}
else if(classid == 16){
Gang[playerid] = BANHISTAS;
SetPlayerTeamEx(playerid,BANHISTAS);
GameTextForPlayer(playerid, "~p~GANG DOS BANHISTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x00FF4096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_P",4.1,0,1,1,1,1);
}
else if(classid == 17){
Gang[playerid] = PILOTOS;
SetPlayerTeamEx(playerid,PILOTOS);
GameTextForPlayer(playerid, "~p~GANG DOS PILOTOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x00FFFF96);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"GANGS","leanIDLE", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 18){
Gang[playerid] = MEDICO;
SetPlayerTeamEx(playerid,MEDICO);
GameTextForPlayer(playerid, "~p~GANG DOS MEDICOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFFFFFAA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0);
}
else if(classid == 19 || classid == 20){
Gang[playerid] = MAFIOSOS;
SetPlayerTeamEx(playerid,MAFIOSOS);
GameTextForPlayer(playerid, "~p~MAFIA FORELLI~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF000096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"SWAT","gnstwall_injurd", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 21 || classid == 22){
Gang[playerid] = JCBRASIL;
SetPlayerTeamEx(playerid,JCBRASIL);
GameTextForPlayer(playerid, "~p~GANG DOS FreeRoam~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8B4513AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"MISC","bitchslap",4.0,0,0,0,0,0);
}
else if(classid == 23 || classid == 24){
Gang[playerid] = VAGOS;
SetPlayerTeamEx(playerid,VAGOS);
GameTextForPlayer(playerid, "~p~GANG DOS VAGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFFF00AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"GHANDS","gsign2",4.0,0,1,1,1,1);
}
else if(classid == 25){
Gang[playerid] = MENDIGOS;
SetPlayerTeamEx(playerid,MENDIGOS);
GameTextForPlayer(playerid, "~p~GANG DOS MENDIGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8080C096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"SKATE","skate_run",4.1,1,1,1,1,1);
}
else if(classid == 26){
Gang[playerid] = PROSTITUTAS;
SetPlayerTeamEx(playerid,PROSTITUTAS);
GameTextForPlayer(playerid, "~p~GANG DOS PROSTITUTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF00FF56);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"STRIP","strip_B",4.0,1,1,1,1,0);
}
else if(classid == 27 ||classid == 28){
Gang[playerid] = AGENTES;
SetPlayerTeamEx(playerid,AGENTES);
GameTextForPlayer(playerid, "~p~GANG DOS AGENTES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xC0C0C096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"benchpress","gym_bp_celebrate", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 29){
Gang[playerid] = PADRES;
SetPlayerTeamEx(playerid,PADRES);
GameTextForPlayer(playerid, "~p~GANG DOS PADRES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF800096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"CASINO","Roulette_win", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 30 || classid == 31){
Gang[playerid] = YAKUZA;
SetPlayerTeamEx(playerid,YAKUZA);
GameTextForPlayer(playerid, "~p~MAFIA YAKUZA~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x80808096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
}


all skins has a different anime, however, when I'm choosing some not dance, then I press to the skin near and grip to go back to that skin that did not dance and he starts dancing. Anyone know fix this bug?

CalvinC
05/03/2015, 06:40 PM
Have you preloaded the animations?

StarPeens
05/03/2015, 07:09 PM
Have you preloaded the animations?

Can you give me an example?

Golimad
05/03/2015, 07:14 PM
stock PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}


public OnPlayerRequestClass(playerid, classid)
{
PreloadAnimLib(playerid,"DANCING");
PreloadAnimLib(playerid,"RAPPING"); // do same for all your anims
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, 2235.768310, 1632.708129, 1008.359375);
SetPlayerFacingAngle(playerid, 0.110143);
SetPlayerCameraLookAt(playerid, 2235.768310, 1632.708129, 1008.359375);
SetPlayerCameraPos(playerid, 2235.768310 + (5 * floatsin(-0.110143, degrees)), 1632.708129 + (5 * floatcos(-0.110143, degrees)), 1008.359375);

if(classid == 0){
Gang[playerid] = MILITARES;
SetPlayerTeamEx(playerid,MILITARES);
GameTextForPlayer(playerid, "~p~GANG DOS MILITARES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x0000FFAA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1);
}
else if(classid == 1){
Gang[playerid] = PIRATA;
SetPlayerTeamEx(playerid,PIRATA);
GameTextForPlayer(playerid, "~p~GANG DOS PIRATAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x808000AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}
else if(classid == 2){
Gang[playerid] = BOMBEIROS;
SetPlayerTeamEx(playerid,BOMBEIROS);
GameTextForPlayer(playerid, "~p~GANG DOS BOMBEIROS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF808096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"CHOPPA","CHOPPA_back",4.1,1,1,1,1,1);
}
else if(classid == 3){
Gang[playerid] = MANOBRISTA;
SetPlayerTeamEx(playerid,MANOBRISTA);
GameTextForPlayer(playerid, "~p~GANG DOS MANOBRISTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x000B5196);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SetPlayerSpecialAction(playerid, 68);
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
}
else if(classid == 4 || classid == 5){
Gang[playerid] = CHINES;
SetPlayerTeamEx(playerid,CHINES);
GameTextForPlayer(playerid, "~p~GANG DOS CHINEZES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF80FF9E);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
}
else if(classid == 6){
Gang[playerid] = GATES;
SetPlayerTeamEx(playerid,GATES);
GameTextForPlayer(playerid, "~p~GANG DOS GATES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFA500AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 7 || classid == 8){
Gang[playerid] = BOYZINHOS;
SetPlayerTeamEx(playerid,BOYZINHOS);
GameTextForPlayer(playerid, "~p~GANG DOS BOYZINHOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xAA3333AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
}
else if(classid == 9){
Gang[playerid] = BOZO;
SetPlayerTeamEx(playerid,BOZO);
GameTextForPlayer(playerid, "~p~GANG DOS BOZO JAMES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x80FF0096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 10){
Gang[playerid] = GROOVER;
SetPlayerTeamEx(playerid,GROOVER);
GameTextForPlayer(playerid, "~p~GANG DOS GROOVERS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x008000AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,0,1,1,1,1);
}
else if(classid == 11 || classid == 12){
Gang[playerid] = BALLAS;
SetPlayerTeamEx(playerid,BALLAS);
GameTextForPlayer(playerid, "~p~GANG DOS BALLAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8000808D);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
}
else if(classid == 13 || classid == 14){
Gang[playerid] = NOIAS;
SetPlayerTeamEx(playerid,NOIAS);
GameTextForPlayer(playerid, "~p~GANG DOS NOIAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x0080C0AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
}
else if(classid == 15){
Gang[playerid] = FRANGOS;
SetPlayerTeamEx(playerid,FRANGOS);
GameTextForPlayer(playerid, "~p~GANG DOS FRANGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xDAA520AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 0, 1, 1, 0);
}
else if(classid == 16){
Gang[playerid] = BANHISTAS;
SetPlayerTeamEx(playerid,BANHISTAS);
GameTextForPlayer(playerid, "~p~GANG DOS BANHISTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x00FF4096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_P",4.1,0,1,1,1,1);
}
else if(classid == 17){
Gang[playerid] = PILOTOS;
SetPlayerTeamEx(playerid,PILOTOS);
GameTextForPlayer(playerid, "~p~GANG DOS PILOTOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x00FFFF96);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"GANGS","leanIDLE", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 18){
Gang[playerid] = MEDICO;
SetPlayerTeamEx(playerid,MEDICO);
GameTextForPlayer(playerid, "~p~GANG DOS MEDICOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFFFFFAA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"WUZI","Wuzi_Greet_Wuzi",4.0,0,0,0,0,0);
}
else if(classid == 19 || classid == 20){
Gang[playerid] = MAFIOSOS;
SetPlayerTeamEx(playerid,MAFIOSOS);
GameTextForPlayer(playerid, "~p~MAFIA FORELLI~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF000096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"SWAT","gnstwall_injurd", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 21 || classid == 22){
Gang[playerid] = JCBRASIL;
SetPlayerTeamEx(playerid,JCBRASIL);
GameTextForPlayer(playerid, "~p~GANG DOS FreeRoam~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8B4513AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"MISC","bitchslap",4.0,0,0,0,0,0);
}
else if(classid == 23 || classid == 24){
Gang[playerid] = VAGOS;
SetPlayerTeamEx(playerid,VAGOS);
GameTextForPlayer(playerid, "~p~GANG DOS VAGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFFFF00AA);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"GHANDS","gsign2",4.0,0,1,1,1,1);
}
else if(classid == 25){
Gang[playerid] = MENDIGOS;
SetPlayerTeamEx(playerid,MENDIGOS);
GameTextForPlayer(playerid, "~p~GANG DOS MENDIGOS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x8080C096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"SKATE","skate_run",4.1,1,1,1,1,1);
}
else if(classid == 26){
Gang[playerid] = PROSTITUTAS;
SetPlayerTeamEx(playerid,PROSTITUTAS);
GameTextForPlayer(playerid, "~p~GANG DOS PROSTITUTAS~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF00FF56);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"STRIP","strip_B",4.0,1,1,1,1,0);
}
else if(classid == 27 ||classid == 28){
Gang[playerid] = AGENTES;
SetPlayerTeamEx(playerid,AGENTES);
GameTextForPlayer(playerid, "~p~GANG DOS AGENTES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xC0C0C096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"benchpress","gym_bp_celebrate", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 29){
Gang[playerid] = PADRES;
SetPlayerTeamEx(playerid,PADRES);
GameTextForPlayer(playerid, "~p~GANG DOS PADRES~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0xFF800096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid,"CASINO","Roulette_win", 4.0, 1, 0, 0, 0, 0);
}
else if(classid == 30 || classid == 31){
Gang[playerid] = YAKUZA;
SetPlayerTeamEx(playerid,YAKUZA);
GameTextForPlayer(playerid, "~p~MAFIA YAKUZA~n~~r~PRESSIONE SHIFT", 2000, 3);
SetPlayerColor(playerid, 0x80808096);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
}

CalvinC
05/03/2015, 07:19 PM
Just apply an animation in the animation library, use "null" for no animation.
Function:
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0);
In OnPlayerRequestClass to preload all animation libraries:
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,"PED"); PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"OTB"); PreloadAnimLib(playerid,"BD_Fire"); PreloadAnimLib(playerid,"BENCHPRESS");
PreloadAnimLib(playerid,"KISSING"); PreloadAnimLib(playerid,"BSKTBALL"); PreloadAnimLib(playerid,"MEDIC");
PreloadAnimLib(playerid,"SWORD"); PreloadAnimLib(playerid,"POLICE"); PreloadAnimLib(playerid,"SUNBATHE");
PreloadAnimLib(playerid,"FAT"); PreloadAnimLib(playerid,"WUZI"); PreloadAnimLib(playerid,"SWEET");
PreloadAnimLib(playerid,"ROB_BANK"); PreloadAnimLib(playerid,"GANGS"); PreloadAnimLib(playerid,"RIOT");
PreloadAnimLib(playerid,"GYMNASIUM"); PreloadAnimLib(playerid,"CAR"); PreloadAnimLib(playerid,"CAR_CHAT");
PreloadAnimLib(playerid,"GRAVEYARD"); PreloadAnimLib(playerid,"POOL");
So what this basically does, is apply animation "null" (empty animation) in all the different animation categories(libraries).
Because for some reason you need to play the animation once where it wont work, and the next time you play the animation it will, so this just plays an empty animation for all categories, so all animations after that will work.

StarPeens
05/03/2015, 07:20 PM
Thanks for all, reputed