SA-MP Forums Archive
AnnimatioN - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AnnimatioN (/showthread.php?tid=332709)



AnnimatioN - RicaNiel - 09.04.2012

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);



Re: AnnimatioN - ViniBorn - 09.04.2012

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



Re: AnnimatioN - RicaNiel - 09.04.2012

still same wont execute


Re: AnnimatioN - robyury - 09.04.2012

Try It:

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


Re: AnnimatioN - RicaNiel - 09.04.2012

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;
}



Re: AnnimatioN - Reklez - 09.04.2012

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);



Re: AnnimatioN - Ballu Miaa - 09.04.2012

Does this one compile and execute fine for you!

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



Re: AnnimatioN - robyury - 09.04.2012

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.


Re: AnnimatioN - RicaNiel - 09.04.2012

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


Re: AnnimatioN - ViniBorn - 09.04.2012

Typing the command twice it works?