05.04.2009, 17:13
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..
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;
}