GetPlayerTargetActor - 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: GetPlayerTargetActor (
/showthread.php?tid=617144)
GetPlayerTargetActor -
HoangNam - 16.09.2016
Hello !! This is my code
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
GetPlayerTargetActor(playerid);
if (PRESSED( KEY_RIGHT | KEY_YES ) & )
{
SendClientMessage(playerid, 0x00FF00FF, "Actors System");
}
return 1;
}
First, player will target actor and then press Right Mouse + Y then SendMsg. I dont know how to use GetPlayerTargetActor in this script. Anyone can help me
![Huh?](images/smilies/confused.gif)
!! PLz!! Sorry for my bad English :P