SA-MP Forums Archive
GetAimedPlayerID - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetAimedPlayerID (/showthread.php?tid=389973)



GetAimedPlayerID - nortonko991 - 04.11.2012

Hi there, i just want ask, if it is even possible to get ID of player that I am aiming on. I know, it is meaby somewhere on this forum, but i didnґt find it, so sorry for spam. Thanks for your help, and sorry for my bad English.


Re: GetAimedPlayerID - park4bmx - 04.11.2012

GetPlayerCameraFrontVector
but you will need to check if it mathces any players so you could retrive a playerid
easier way is: GetPlayerTargetPlayer


Re: GetAimedPlayerID - NewerthRoleplay - 04.11.2012

Look on the wiki next time https://sampwiki.blast.hk/wiki/GetPlayerTargetPlayer


Re: GetAimedPlayerID - Emmet_ - 04.11.2012

GetPlayerTargetPlayer


Re: GetAimedPlayerID - nortonko991 - 04.11.2012

Thanks a lot for help, I appreciate that.