27.11.2011, 22:33
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; }