Problem forbid animation
#1

I created this code to prohibit an animation, how can I do so that it detects the animation ? tried using "strcmp" but did not work.

Код:
 
if(GetPlayerAnimationIndex(playerid))
{
      new animlib[32], animname[32];
      if(GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, 32, animname, 32))
      {
            if(animlib == "CARRY" || animname == "crry_prtial")
            {
                  SendClientMessage(playerid, -1, "Animation prohibited on the server !");
                  Kick(playerid);
            }
      }
}
Someone for help-me
Reply


Messages In This Thread
Problem forbid animation - by ClaudineiCDS - 28.04.2016, 21:09
Re: Problem forbid animation - by Konstantinos - 28.04.2016, 21:14
Re: Problem forbid animation - by ClaudineiCDS - 29.04.2016, 07:36
Re: Problem forbid animation - by itsCody - 29.04.2016, 07:52

Forum Jump:


Users browsing this thread: 1 Guest(s)