AnnimatioN
#1

need help all animations i will put will not show up please i need help

pawn Код:
ClearAnimations(id);
        ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1);
Reply
#2

Try
pawn Код:
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
Reply
#3

still same wont execute
Reply
#4

Try It:

pawn Код:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
And try text the command 2 times.
Reply
#5

here is the command

pawn Код:
CMD:taze(playerid,params[])
{
    new id;
    if(pData[playerid][pType] != LAW) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" You need to be in the Law Faction to use this command");
    if(sscanf(params,"u",id)) return SendClientMessage(playerid,C_WHITE,"Usage: /taze [ Name / Id ]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" Player Not Connected");
    if(pData[id][pWantedLevel] == 0 ) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That person is dosen't have a warrant and you are not allowed to taze that person");
    if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" The suspect is in a vehicle you can't taze it");
    if(tazzed[playerid] == 1) return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That person is already tazzed");
    if(IsPlayerNearPlayer(playerid,id,3.0))
    {
        SendClientMessage(playerid,C_BLUE," An officer has tazzed you and you can't move");
        tazzed[playerid] = 1;
        ClearAnimations(id);
        ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
        TogglePlayerControllable(id,0);
    }
    else return SendClientMessage(playerid,C_RED,"[ Error ]:"CWHITE" That Person is too far away to taze");
    return 1;
}
Reply
#6

i see the problem

pawn Код:
ClearAnimations(id);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
TogglePlayerControllable(id,0);
so if you taze the player it will play the animation but the TogglePlayerControllable blocks it.

never try this?

pawn Код:
ClearAnimations(id);
TogglePlayerControllable(id,0);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
Reply
#7

Does this one compile and execute fine for you!

pawn Код:
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
Reply
#8

You put me in a problem : i don't know ZCMD.

But try substitute your actual anim for this script :

ApplyAnimation(id, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);

this is an anim of my gamemode and this works.
Reply
#9

Quote:
Originally Posted by Reklez
Посмотреть сообщение
i see the problem

pawn Код:
ClearAnimations(id);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
TogglePlayerControllable(id,0);
so if you taze the player it will play the animation but the TogglePlayerControllable blocks it.

never try this?

pawn Код:
ClearAnimations(id);
TogglePlayerControllable(id,0);
ApplyAnimation(id,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
its still same the animation wont execute
Reply
#10

Typing the command twice it works?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)