New Help Needed Animations OnPlayerRequestClass!
#1

PHP код:
if(classid == 0)
    {
        
gTeam[playerid] = BALLAS ;
        
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~p~Glen Park Ballas",2000,5);
        
SetPlayerInterior(playerid,5);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerPos(playerid,319.9598,1122.3853,1083.8828);
        
InterpolateCameraPos(playerid316.3984371118.3192131084.228393325.0754081118.3048091084.2580564000);
        
InterpolateCameraLookAt(playerid319.9606321121.8278801084.244018321.3460081121.6329341084.1369624000);
        
SetPlayerFacingAngle(playerid180.9598);
        
ApplyAnimation(playerid,"CAMERA","camcrch_cmon",4.1,1,1,1,1,1,1);
        
SetPlayerColor(playerid,COLOR_PURPLE);
    }
    else if(
classid == 1)
    {
        
gTeam[playerid] = BALLAS;
        
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~p~Glen Park Ballas",2000,5);
        
SetPlayerInterior(playerid,5);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerPos(playerid,319.9598,1122.3853,1083.8828);
        
InterpolateCameraPos(playerid316.3984371118.3192131084.228393325.0754081118.3048091084.2580564000);
        
InterpolateCameraLookAt(playerid319.9606321121.8278801084.244018321.3460081121.6329341084.1369624000);
        
SetPlayerFacingAngle(playerid,180.9598);
        
ApplyAnimation(playerid,"CAMERA","camcrch_cmon",4.1,1,1,1,1,1,1);
        
SetPlayerColor(playerid,COLOR_PURPLE);
    }
    else if(
classid == 2)
    {
         
gTeam[playerid] = BALLAS;
         
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~p~Glen Park Ballas",2000,5);
        
SetPlayerInterior(playerid,5);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerPos(playerid,319.9598,1122.3853,1083.8828);
        
InterpolateCameraPos(playerid316.3984371118.3192131084.228393325.0754081118.3048091084.2580564000);
        
InterpolateCameraLookAt(playerid319.9606321121.8278801084.244018321.3460081121.6329341084.1369624000);
        
SetPlayerFacingAngle(playerid,180.9598);
        
ApplyAnimation(playerid,"CAMERA","camcrch_cmon",4.1,1,1,1,1,1,1);
        
SetPlayerColor(playerid,COLOR_PURPLE);
    }
    else if(
classid == 3)
    {
        
gTeam[playerid] = GROVE;
        
SetPlayerInterior(playerid,3);
        
GameTextForPlayer(playerid,"~g~Grove Street Families",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""RAP_C_Loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2495.7937,-1711.2596,1014.7422);
        
InterpolateCameraPos(playerid2499.992187, -1704.4291991017.9583122495.894775, -1703.3154291015.7488404000);
        
InterpolateCameraLookAt(playerid2499.214111, -1709.3066401018.7363892495.842529, -1708.2834471015.1863404000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_GREEN);
    }
    else if(
classid == 4)
    {
        
gTeam[playerid] = GROVE;
        
SetPlayerInterior(playerid,3);
        
GameTextForPlayer(playerid,"~g~Grove Street Families",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""RAP_C_Loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2495.7937,-1711.2596,1014.7422);
           
InterpolateCameraPos(playerid2499.992187, -1704.4291991017.9583122495.894775, -1703.3154291015.7488404000);
        
InterpolateCameraLookAt(playerid2499.214111, -1709.3066401018.7363892495.842529, -1708.2834471015.1863404000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_GREEN);
    }
    else if(
classid == 5)
    {
        
gTeam[playerid] = GROVE;
        
SetPlayerInterior(playerid,3);
        
GameTextForPlayer(playerid,"~g~Grove Street Families",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""RAP_C_Loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2495.7937,-1711.2596,1014.7422);
        
InterpolateCameraPos(playerid2499.992187, -1704.4291991017.9583122495.894775, -1703.3154291015.7488404000);
        
InterpolateCameraLookAt(playerid2499.214111, -1709.3066401018.7363892495.842529, -1708.2834471015.1863404000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_GREEN);
    }
    else if(
classid == 6)
    {
        
gTeam[playerid] = VAGOS;
        
SetPlayerInterior(playerid,5);
        
GameTextForPlayer(playerid,"~y~Los Santos Vagos",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""Sit_relaxed",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2322.8955,-1180.1904,1028.4030);
        
InterpolateCameraPos(playerid2330.416259, -1180.7692871028.6345212323.020751, -1188.9018551028.6345214000);
        
InterpolateCameraLookAt(playerid2325.468505, -1180.4461661027.9906002323.338623, -1183.9378661028.1263424000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_ORANGE);
    }
    else if(
classid == 7)
    {
        
gTeam[playerid] = VAGOS;
        
SetPlayerInterior(playerid,5);
        
GameTextForPlayer(playerid,"~y~Los Santos Vagos",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""Sit_relaxed",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2322.8955,-1180.1904,1028.4030);
        
InterpolateCameraPos(playerid2330.416259, -1180.7692871028.6345212323.020751, -1188.9018551028.6345214000);
        
InterpolateCameraLookAt(playerid2325.468505, -1180.4461661027.9906002323.338623, -1183.9378661028.1263424000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_ORANGE);
    }
    else if(
classid == 8)
    {
        
gTeam[playerid] = VAGOS;
        
SetPlayerInterior(playerid,5);
        
GameTextForPlayer(playerid,"~y~Los Santos Vagos",2000,5);
        
ApplyAnimation(playerid,"LOWRIDER""Sit_relaxed",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,2322.8955,-1180.1904,1028.4030);
        
InterpolateCameraPos(playerid2330.416259, -1180.7692871028.6345212323.020751, -1188.9018551028.6345214000);
        
InterpolateCameraLookAt(playerid2325.468505, -1180.4461661027.9906002323.338623, -1183.9378661028.1263424000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_ORANGE);
    }
    else if(
classid == 9)
    {
        
gTeam[playerid] = AZTECA;
        
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~b~~h~Varrios Los Azteca",2000,5);
        
ApplyAnimation(playerid,"GRAVEYARD""mrnF_loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,1939.2917,-2061.9709,13.5469);
        
InterpolateCameraPos(playerid1917.295898, -2056.65600514.2085051940.432861, -2055.47534114.5353144000);
        
InterpolateCameraLookAt(playerid1919.270996, -2061.22192314.7091071940.286743, -2060.47216714.4352004000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    }
    else if(
classid == 10)
    {
        
gTeam[playerid] = AZTECA;
        
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~b~~h~Varrios Los Azteca",2000,5);
        
ApplyAnimation(playerid,"GRAVEYARD""mrnF_loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,1939.2917,-2061.9709,13.5469);
        
InterpolateCameraPos(playerid1917.295898, -2056.65600514.2085051940.432861, -2055.47534114.5353144000);
        
InterpolateCameraLookAt(playerid1919.270996, -2061.22192314.7091071940.286743, -2060.47216714.4352004000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    }
    else if(
classid == 11)
    {
        
gTeam[playerid] = AZTECA;
        
SetPlayerInterior(playerid,0);
        
GameTextForPlayer(playerid,"~b~~h~Varrios Los Azteca",2000,5);
        
ApplyAnimation(playerid,"GRAVEYARD""mrnF_loop",4.1,1,1,1,1,1,1);
        
SetPlayerPos(playerid,1939.2917,-2061.9709,13.5469);
        
InterpolateCameraPos(playerid1917.295898, -2056.65600514.2085051940.432861, -2055.47534114.5353144000);
        
InterpolateCameraLookAt(playerid1919.270996, -2061.22192314.7091071940.286743, -2060.47216714.4352004000);
        
SetPlayerFacingAngle(playerid,252.4717);
        
SetPlayerVirtualWorld(playerid1);
        
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    } 
So I cant figure out..

1st classid animation isn't working, second working, 3rd too.

But rest of them isn't woring why?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)