19.12.2009, 20:52
on top of script:
and for settimerex i used the wiki cose i have only used settime till now so if there's any problem with it, ya know ima noob that had to check the wiki xD lol
then create this callback:
i didnt test anything but i think it works!
pawn Код:
forward anim(playerid);
pawn Код:
public OnPlayerText(playerid, text[])
{
if (strfind(text, "yo") != -1)
{
ApplyAnimation(playerid, "PED", "IDLE_chat", 4.1, 0, 1, 1, 0,3000);
SetTimerEx("anim", 2000, false, "i", playerid); //THANKS FOR DON CORRELI FOR THIS SETTIMEREX!
}
return 1;
then create this callback:
pawn Код:
public anim(playerid)
{
ClearAnimations(playerid);
return 1;
}