Need A Func to get in front of player for an object - 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: Need A Func to get in front of player for an object (
/showthread.php?tid=518477)
Need A Func to get in front of player for an object -
amirab - 10.06.2014
Hi All,
i think Title can say what i need
but any way i'll say again
I'm creating a new system/include and i need to
get object that is in front of player like this
PHP код:
if(GetObjectInFrontOfPlayer(playerid) == Objectid)
{
// Codes
}
Or this one
PHP код:
if(IsObjectInFrontOfPlayer(playerid , Objectid))
{
// Codes
}
each of them that any of you can help me on taht please help
Really need it
+REP is your prise
Re: Need A Func to get in front of player for an object -
superrobot48 - 10.06.2014
use loop
Re: Need A Func to get in front of player for an object -
amirab - 10.06.2014
how ?!
and you don't think there's a lot of object near my object that i want to get ?!