12.11.2018, 09:27
it's possible?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_AIM) //When player aims
{
new targetplayer = GetPlayerTargetPlayer(playerid); //this functions helps us to find out that if player is aiming other player or NPC
if(IsPlayerNPC(targetplayer)) //if target player is npc
{
//Blabla
}
}
return 1;
}