28.04.2016, 21:09
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.
Someone for help-me
Код:
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); } } }