SA-MP Forums Archive
[Include] Aim - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Aim (/showthread.php?tid=422405)



Aim - SDraw - 13.03.2013

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


Re: Aim - Niko_boy - 13.03.2013

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

any ways this sounds simple and good


Re: Aim - SDraw - 13.03.2013

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


Re: Aim - RajatPawar - 13.03.2013

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 !


Re: Aim - SDraw - 13.03.2013

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?


Re: Aim - DiGiTaL_AnGeL - 15.03.2013

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


Re: Aim - SDraw - 16.03.2013

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.


Re: Aim - Rillo - 16.03.2013

Nice include, good job


Re: Aim - DiGiTaL_AnGeL - 17.03.2013

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.


Re: Aim - SDraw - 17.03.2013

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