public OnPlayerRequestClass(playerid, classid)
{
iSpawnSet[playerid] = 0;
SetupPlayerForClassSelection(playerid);
PlayerPlaySound(playerid, 1185, -1370.2362,-256.3250,14.1440);
SetupPlayerForClassSelection(playerid);
new skin = GetPlayerSkin(playerid);
ApplyAnimation(playerid,"DANCING","dnce_M_e",4.0,1,0,0,0,-1);
switch (skin)
{
case 10,9,8,7:
{
GameTextForPlayer(playerid, "~g~EQUIPOS",1000,6);
gTeam[playerid] = TEAM_EQUIPOS;
SetPlayerColor(playerid, COLOR_);
ApplyAnimation(playerid,"SMOKING","M_smk_drag",4.0,1,0,0,0,-1);
SetPlayerPos(playerid,2459.5,-1689.2,13.5);
SetPlayerFacingAngle(playerid,0.5);
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,2457.6,-1686.3,13.7);
SetPlayerCameraLookAt(playerid,2459.5,-1699.2,13.8);
ApplyAnimation(playerid,"DANCING","dnce_M_e",4.0,1,1,1,1,1);
ApplyAnimation(playerid,"SMOKING","M_smk_drag",4.0,1,1,1,1,1);
public OnPlayerRequestClass(playerid)
{
ApplyAnimation(playerid,"DANCING","dnce_M_e",4.0,1,1,1,1,1);
SetupPlayerForClassSelection(playerid);
return 1;
}
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);// Esto es para detener la animaciуn
for(new animaciones=0; animaciones< (CANTIDAD DE ANIMACIONES LISTADAS); animaciones++)
{
ApplyAnimation(playerid, NombreDelNew[animaciones], "null", 0.0, 0,0, 0,0, 0);
}
Predeterminado Respuesta: Problema con animaciones Pon esto aver si te funciona pawn Код:
|
public SetupPlayerForClassSelection(playerid)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
}
public OnPlayerSpawn(playerid)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);// Esto es para detener la animaciуn
return 1;
}
new RandAnims[6][0] = {
{"DAN_LOOP_A"},
{"DNCE_M_A"},
{"DNCE_M_B"},
{"DNCE_M_C"},
{"DNCE_M_D"},
{"DNCE_M_E"}
};
public OnPlayerRequestClass(playerid, classid)
{
iSpawnSet[playerid] = 0;
SetupPlayerForClassSelection(playerid);
return 1;
}
public SetupPlayerForClassSelection(playerid)
{
new skin = GetPlayerSkin(playerid);
new rand = random(sizeof(RandAnims));
ApplyAnimation(playerid,"DANCING",RandAnims[rand][0],4.0,1,1,1,1,1);
PlayerPlaySound(playerid,1185 ,0, 0, 0);
switch (skin)
{
case 10,9,8,7:
{
GameTextForPlayer(playerid, "~g~EQUIPOS",1000,6);
gTeam[playerid] = TEAM_EQUIPOS;
SetPlayerColor(playerid, COLOR_);
SetPlayerPos(playerid,2459.5,-1689.2,13.5);
SetPlayerFacingAngle(playerid,0.5);
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,2457.6,-1686.3,13.7);
SetPlayerCameraLookAt(playerid,2459.5,-1699.2,13.8);
ApplyAnimation(playerid,"SMOKING","M_SMK_DRAG",4.0,1,1,1,1,1);
//--Y TODO LO Q SIGA------
}