12.03.2011, 04:39
You sir need to remove that snippet. Now look for OnPlayerKeyStateChange and check if the aim button is HOLDED (there is a macro to check holded keys, but I can't provide). GetCameraPos won't do anything, you need some maths and use the following function: GetPlayerCameraFrontVector. It's not really easy as you thought.
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange