03.03.2018, 07:30
how to get anim , when player use left mouse button . However, it not give damage to anyone
new animname[32], animlib[32]; if(GetPlayerAnimationIndex(playerid)) { GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname)); { if(!strcmp(animname, "FIGHTA_1", true) || !strcmp(animname, "FIGHTA_2", true) || !strcmp(animname, "FIGHTA_3", true) || !strcmp(animname, "FIGHTKICK", true) || !strcmp(animname, "FIGHTKICK_B", true) || !strcmp(animname, "FIGHTA_M", true)) { ClearAnimations(playerid); } } }
OnPlayerKeyStateChange