[Include] Aim
#1

Just a simple include for aiming detection.

Callbacks: OnPlayerStartAim(playerid,aimedplayer) and OnPlayerEndAim(playerid,aimedplayer). playerid - who aims, aimedplayer - aiming at.

URL: gist.github.com
Reply
#2

so this detect only if green traingle on aimedplayer head? | GetPlayerTargetPlayer?
lazy to see script inside

any ways this sounds simple and good
Reply
#3

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
so this detect only if green traingle on aimedplayer head? | GetPlayerTargetPlayer?
lazy to see script inside
Yup
Reply
#4

Cool, would be great if you added IsPlayerAimingAtPlayer :P So we can set timers and know the exact time of aiming. I can think of a 1000 uses for that !
Reply
#5

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Cool, would be great if you added IsPlayerAimingAtPlayer :P So we can set timers and know the exact time of aiming. I can think of a 1000 uses for that !
PHP код:
stock IsPlayerAimingAtPlayer(playerid)
{
   if(
GetPlayerTargetPlayer(playerid) != INVALID_PLAYER_ID) return 1;
   return 
0;
}
stock IsPlayerAimingAtPlayer(playerid,aimedplayer)
{
   if(
GetPlayerTargetPlayer(playerid) == aimedplayer) return 1;
   return 
0;

Do you mean this?
Reply
#6

Good job, but why don't you change its name? I thought it's some aimbot detection.
Reply
#7

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
but why don't you change its name? I thought it's some aimbot detection.
On English lessons I had known that this word exactly means current action.
Reply
#8

Nice include, good job
Reply
#9

Quote:
Originally Posted by SDraw
Посмотреть сообщение
On English lessons I had known that this word exactly means current action.
Yes, but in samp when you hear aim the first thing you think about is aimbot.
Reply
#10

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
Yes, but in samp when you hear aim the first thing you think about is aimbot.
Stereotypes
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)