[AJUDA]Conversa na personagem
#1

Boas, tipo eu tenho server rp e ao falar em IC tem uma anim de conversa e ao falar ele faz a anim mas tenho de esperar que a anim acave para poder andar :S eu queria que a anim funciona-se mas eu a andar

vejam

PHP код:
if (realchat)
    {
        if(
gPlayerLogged[playerid] == 0)
        {
            return 
0;
          }
        
GetPlayerName(playeridsendernamesizeof(sendername));
        if(!
IsPlayerInAnyVehicle(playerid))
        {
            if(
PlayerInfo[playerid][pMaskuse] == 1)
            {
                
format(stringsizeof(string), "Estranho diz: %s"text);
                
LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,0);
                
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
            {
                
format(stringsizeof(string), "%s dis: %s"sendernametext);
                
LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,0);
                
ProxDetector(20.0playeridstring,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(stringsizeof(string), "Estranho Says: %s"text);
                    
LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,0);
                    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else
                {
                    
format(stringsizeof(string), "%s diz: %s"sendernametext);
                    
LoopingAnim(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,0);
                    
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
            } 
so nao tem returns porque no meu game mode tem abaixo disso um else...
Reply
#2

pawn Код:
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), "Estranho diz: %s", text);
                ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
                ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            }
            else
            {
                format(string, sizeof(string), "%s dis: %s", sendername, text);
                ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
                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), "Estranho Says: %s", text);
                    ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
                else
                {
                    format(string, sizeof(string), "%s diz: %s", sendername, text);
                    ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,1,1);
                    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                }
            }
Atenciosamente,
Falcon.
Reply
#3

Obrigado deu serto
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)