Cant stop ApplyAnimation function.
#3

pawn Код:
if(CP[playerid] == 5003)
    {
        new string[128];
        if(IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You already have a rock.");
        IsRockLoded[playerid] = 1;
        Factoryrocks --;
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, 2334.2183,-2287.3057,13.5469, 1);
        Delete3DTextLabel(Factorytext);
        format(factorystring1, sizeof(string), "Factory : %d crates left.",Factoryrocks);
        Factorytext = Create3DTextLabel(factorystring1,COLOR_YELLOW,2333.4788,-2305.4575,13.5469, 70 , 0 , 1);
        SetPlayerAttachedObject( playerid, 9, 1575, 1, -0.064613, 0.520760, 0.000000, 0.000000, 84.217391, 0.000000, 1.000000, 1.000000, 1.000000 );
        ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 1, 1, 1);
        CP[playerid] = 5004;
        return 1;
    }
    if(CP[playerid] == 5004)
    {
        new string[128];
        if(!IsRockLoded[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You have no rocks in your hand.");
        IsRockLoded[playerid] = 0;
        WCraterocks += 1;
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, 2335.0559,-2304.5198,13.5469, 1);
        Delete3DTextLabel(WCratetext);
        format(wcratestring1, sizeof(string), "Factory : %d gun crates left.", WCraterocks);
        WCratetext = Create3DTextLabel(wcratestring1,COLOR_YELLOW,2335.4771,-2284.5957,14.4755, 70 , 0 , 1);
        RemovePlayerAttachedObject(playerid, 9);
        ClearAnimations(playerid);
        CP[playerid] = 5003;
        return 1;
    }
try now.And check this https://sampwiki.blast.hk/wiki/ApplyAnimation
You looped you animation.
Reply


Messages In This Thread
Cant stop ApplyAnimation function. - by scout322 - 04.11.2014, 18:35
Re: Cant stop ApplyAnimation function. - by scout322 - 05.11.2014, 17:25
Re: Cant stop ApplyAnimation function. - by Dziugsas - 05.11.2014, 18:52
Re: Cant stop ApplyAnimation function. - by scout322 - 05.11.2014, 19:33
Re: Cant stop ApplyAnimation function. - by Simeon87 - 05.11.2014, 20:38
Re: Cant stop ApplyAnimation function. - by scout322 - 05.11.2014, 21:22
Re: Cant stop ApplyAnimation function. - by Simeon87 - 06.11.2014, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)