16.12.2010, 13:07
The aiming functions are not mine.
Also, i wouldn't ever do this:
Also, i wouldn't ever do this:
pawn Код:
if (IsPlayerAimingAt(playerid, x, y, z-0.75, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z-0.25, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z+0.25, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
if(IsPlayerAimingBodyPart(playerid, 1) == 1) return true;
if(IsPlayerAimingBodyPart(playerid, 2) == 1) return true;
if(IsPlayerAimingBodyPart(playerid, 3) == 1) return true;