[Ajuda] Parar Animaзгo
#1

PHP код:
function RecuperarLifeKit(playerid)
{
    if(
IsPlayerInAnyVehicle(playerid)) return SCM(playeridCOLOR_ERRO"| ERRO | Vocк estб em um veнculo e seu HP nгo foi recuperado.");
    else
    
TogglePlayerControllable(playeridtrue);
     
PlayerInfo[playerid][QuantKitMedico] --;
    
SetPlayerHealth(playerid100.0);
    
ClearAnimations(playerid); // Aqui
    
SCM(playerid0xD7D7D7FF"| INFO | Vocк foi recuperado com sucesso.");
    return 
1;

Eu usei uma animaзгo para repetir, mas quando eu tento parar a Animaзгo com o ClearAnimations, o jogador nгo para de fazer a animaзгo, pq?!
Reply
#2

UP? vou ser mais claro.

Eu usei uma animaзгo que ela repete automaticamente, exemplo:

PHP код:
ApplyAnimation(playerid"BOMBER""BOM_Plant_Loop"4.11/*Aqui й a repetiзгo*/1011); // Animaзгo de Usar Kit 
Aн quando eu paro a animaзгo ali encima, simplesmente nгo acontece NADA.
Reply
#3

Tente usar:
Код:
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
Ao invйs de:
Код:
ClearAnimations(playerid);
Reply
#4

Quote:
Originally Posted by 1sbedx
Посмотреть сообщение
Tente usar:
Код:
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
Ao invйs de:
Код:
ClearAnimations(playerid);
Valeu!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)