Animations
#2

Try this. Should work for you.

Код:
#include <a_samp>
#include <CMD>
#define SetPVarInt(%0,%1,0); DeletePVar(%0,%1);

main() // I added this here just for testing purposes.
{
	return 1;
}


CMD:animation(playerid, params[]) // You may change to STRCMP. I prefer using this.
{
	ApplyAnimation(playerid,"KISSING","Playa_Kiss_01", 4.1, 1, 0, 0, 0, 0);
	SendClientMessage(playerid, changeme, "You've applied the animation sucessfully.");
	SetPVarInt(playerid, "anim", 1); // Set the player variable to check if one has applied the animation
	if(GetPVarInt(playerid, "anim") == 0) // Checking pvariables
	{
	   	StopLoopingAnim(playerid);
	}
	else
	{
		SendClientMessage(playerid, changeme, "Test!");
	}
	return 1;
}
Reply


Messages In This Thread
Animations - by tliamg - 27.11.2011, 22:20
Re: Animations - by Jake__ - 27.11.2011, 22:33
Re: Animations - by MP2 - 27.11.2011, 23:19
Re: Animations - by Jake__ - 27.11.2011, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)