30.08.2015, 21:47
Eae galera, gostaria de colocar animaзхes randomicas pra quando o player vai escolher uma skin, eu procurei e nгo achei a respeito, sу vi um post mais ou menos relacionado e criei esse code:
Porem sу "usa" a primeira animaзгo, como eu posso resolver isso?
Код:
new AnimConnect[MAX_PLAYERS]; switch(AnimConnect[playerid]) { case 0: ApplyAnimation(playerid, "DANCING", "bd_clap",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 1: ApplyAnimation(playerid, "DANCING", "bd_clap1",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 2: ApplyAnimation(playerid, "DANCING", "dance_loop",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 3: ApplyAnimation(playerid, "DANCING", "DAN_Down_A",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 4: ApplyAnimation(playerid, "DANCING", "DAN_Left_A",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 5: ApplyAnimation(playerid, "DANCING", "DAN_Loop_A",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 6: ApplyAnimation(playerid, "DANCING", "DAN_Right_A",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 7: ApplyAnimation(playerid, "DANCING", "DAN_Up_A",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 8: ApplyAnimation(playerid, "DANCING", "dnce_M_a",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 9: ApplyAnimation(playerid, "DANCING", "dnce_M_b",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 10: ApplyAnimation(playerid, "DANCING", "dnce_M_c",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 11: ApplyAnimation(playerid, "DANCING", "dnce_M_d",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] ++; case 12: ApplyAnimation(playerid, "DANCING", "dnce_M_e",4.0 ,1,0,0,0,-1,true), AnimConnect[playerid] = 0; }