Animation problem
#1

This is my realchat with the talk animations:
Код:
    if (realchat)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
          }
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(!IsPlayerInAnyVehicle(playerid))
        {
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
                format(string, sizeof(string), "Stranger Says: %s", text);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
            {
                new lengthtime = strlen(text);
                new aTime = lengthtime*200;
                new aRand = random(3);
                switch (aRand)
              {
                case 0: ApplyAnimation(playerid,"PED","IDLE_chat",4.1,1,0,0,0,aTime);
                case 1: ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,0,0,0,aTime);
                case 2: ApplyAnimation(playerid,"PED","factalk",4.1,1,0,0,0,aTime);
            }
                format(string, sizeof(string), "%s Says: %s", sendername, text);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
        }
        else
        {
            new carid = GetPlayerVehicleID(playerid);
            new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
            if(IsABike(carid) || IsAOBike(carid) || IsAPizzabike(carid) || IsAPlane(carid) || IsABoat(carid) || IsASweeper(carid) || IsAHarvest(carid) || IsADrugHarvest(carid) || IsATank(carid) || pveh == 523 || pveh == 480 || pveh == 567 || pveh == 533 || pveh == 555 || pveh == 539 || pveh == 572 || pveh == 571 || pveh == 530 || pveh == 457 || pveh == 575 || pveh == 536 || pveh == 424)
          {
                if(PlayerInfo[playerid][pMaskuse] == 1)
                {
                    format(string, sizeof(string), "Stranger Says: %s", text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else
                {
                    format(string, sizeof(string), "%s Says: %s", sendername, text);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
            }
            else
            {
                if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
                {
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Windows Shut) Stranger Says: %s", text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Windows Shut) %s Says: %s", sendername, text);
                        ProxDetector(10.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                }
                else
                {
                    if(PlayerInfo[playerid][pMaskuse] == 1)
                    {
                        format(string, sizeof(string), "(Windows Open) Stranger Says: %s", text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                    else
                    {
                        format(string, sizeof(string), "(Windows Open) %s Says: %s", sendername, text);
                        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                    }
                }
            }
        }
        return 0;
    }
    return 1;
}
It works good but the big problem is only the person itself can see it. Other people don't see the hands moving.. Only the player itself.
Reply
#2

Wiki. Forcesync.

'nuff said.
Reply
#3

'nuff said?

My problem ain't solved because of you typing that, enuff said.
Reply
#4

Still not fixed.
Reply
#5

And was it not forcesync parameter? Which is documented in wiki?
Reply
#6

It's still looping as crazy.. I already got 3 topics open and no-one knows it.
Reply
#7

The timer works when Forcesync is off but you can only see it for yourself then. And when I turn it on it's looping again.. wtf..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)