[Ajuda] comando de anim
#1

Galera eu to fazendo um GM do zero... e quando acaba meu tutorial to querendo ativar uma anime do player deitado... como faзo isso? alguem pode me ajudar? segue o codigo abaixo

PHP код:
else if(RegistrationStep[i] == 12)
            {
                if(
esperarTempo(playerid))
                {
                    new 
string[256]; new gostring[100];
                    
format(string,sizeof(string),"~r~INICIE!~n~~w~-Vocк recebeu:~n~R$~g~1.000,00~n~~w~Level ~b~1 ~w~DICA: va ate a 24/7~n~e compre um celular e um chip.");
                    
TextDrawSetString(TutuText[i], string);
                    
TextDrawHideForPlayer(playeridTutuBox[i]);
                    
TextDrawHideForPlayer(playeridTutuText[i]);
                    
TextDrawShowForPlayer(playeridTutuBox[i]);
                    
TextDrawShowForPlayer(playeridTutuText[i]);
                    
SelectTextDraw(playerid,0xE0FFFFFF);
                    
format(gostring,sizeof(gostring),"~w~Iniciar!");
                    
TextDrawSetString(TexProx[i], gostring);
                    
TextDrawShowForPlayer(playeridBoxProx[i]);
                    
TextDrawShowForPlayer(playeridTexProx[i]);
                    
RegistrationStep[i] = 13;
                }
            }
            else if(
RegistrationStep[i] == 13)
            {
                
TextDrawHideForPlayer(playeridBoxProx[i]);
                
TextDrawHideForPlayer(playeridTexProx[i]);
                
TextDrawHideForPlayer(playeridTutuBox[i]);
                
TextDrawHideForPlayer(playeridTutuText[i]);
                
CancelSelectTextDraw(playerid);
                
SetPlayerPos(playerid2817.2705,-1168.8486,1029.9033);
                
SetPlayerFacingAngle(playerid351.5843);
                
SetCameraBehindPlayer(playerid);
                
PlayerInfo[playerid][pTutss] = 1;
                
PlayerInfo[playerid][Levels] = 1;
            } 
Queria por pra a animaзгo :
ApplyAnimation(playerid,"CRACK","crckdeth4",4.0,0, 0,0,1,0);
Mas nгo executa...E quando coloco essa animaзгo em um comando ela so ativa quando eu digito o comando duas vezes (Flodando).
+Rep. abraзos
Reply
#2

Vamos ver se vai funcionar ^^

PHP код:
            else if(RegistrationStep[i] == 12)
            {
                if(
esperarTempo(playerid))
                {
                    new 
string[256]; new gostring[100];
                    
format(string,sizeof(string),"~r~INICIE!~n~~w~-Vocк recebeu:~n~R$~g~1.000,00~n~~w~Level ~b~1 ~w~DICA: va ate a 24/7~n~e compre um celular e um chip.");
                    
TextDrawSetString(TutuText[i], string);
                    
TextDrawHideForPlayer(playeridTutuBox[i]);
                    
TextDrawHideForPlayer(playeridTutuText[i]);
                    
TextDrawShowForPlayer(playeridTutuBox[i]);
                    
TextDrawShowForPlayer(playeridTutuText[i]);
                    
SelectTextDraw(playerid,0xE0FFFFFF);
                    
format(gostring,sizeof(gostring),"~w~Iniciar!");
                    
TextDrawSetString(TexProx[i], gostring);
                    
TextDrawShowForPlayer(playeridBoxProx[i]);
                    
TextDrawShowForPlayer(playeridTexProx[i]);
                    
RegistrationStep[i] = 13;
                }
            }
            else if(
RegistrationStep[i] == 13)
            {
                
TextDrawHideForPlayer(playeridBoxProx[i]);
                
TextDrawHideForPlayer(playeridTexProx[i]);
                
TextDrawHideForPlayer(playeridTutuBox[i]);
                
TextDrawHideForPlayer(playeridTutuText[i]);
                
CancelSelectTextDraw(playerid);
                
SetPlayerPos(playerid2817.2705,-1168.8486,1029.9033);
                
SetPlayerFacingAngle(playerid351.5843);
                
SetCameraBehindPlayer(playerid);
                
PlayerInfo[playerid][pTutss] = 1;
                
PlayerInfo[playerid][Levels] = 1;
                
ApplyAnimation(playerid,"CRACK","crckdeth4",4.0,00,0,1,0);
                
SetTimerEx("Crack"1000false"d"playerid);
            } 
Adicione esta public em seu GM

PHP код:
forward Crack(playerid);
public 
Crack(playerid)
{
    
ApplyAnimation(playerid,"CRACK","crckdeth4",4.0,00,0,1,0);
    return 
1;

Reply
#3

Muito obrigado, Resolvido!!! +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)