my timer doesnt work :s
#1

Hello i came across this script after a friend helped me make it because my internet is fucked so i cant DL pawno or anything so im trying to make this work because it aint workin

What i want it do is, When the timer ends the anim ends..


pawn Код:
forward AnimTimer();

new gPlayerUsingLoopingAnim[MAX_PLAYERS];

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
  gPlayerUsingLoopingAnim[playerid] = 1;
  ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}

main()
{
    print("\n----------------------------------");
    print(" bla bla.");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
    SetTimer("Anim timer.", 5000, 1);
    return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
    if (strcmp("/blabla",cmdtext,true) == 0)
    {
    SetTimer("Anim timer.", 50,1);
    LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
    return 1;
    }
    return 1;
    }
Reply


Messages In This Thread
my timer doesnt work :s - by |CrippinBloodDrippin| - 05.04.2009, 17:13
Re: my timer doesnt work :s - by MenaceX^ - 05.04.2009, 17:19
Re: my timer doesnt work :s - by |CrippinBloodDrippin| - 05.04.2009, 17:22
Re: my timer doesnt work :s - by Bardokas - 05.04.2009, 17:34
Re: my timer doesnt work :s - by |CrippinBloodDrippin| - 05.04.2009, 17:39
Re: my timer doesnt work :s - by MenaceX^ - 05.04.2009, 17:44
Re: my timer doesnt work :s - by Bardokas - 05.04.2009, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)