how to use PlayerToPoint? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to use PlayerToPoint? (
/showthread.php?tid=92217)
how to use PlayerToPoint? -
sandisk125 - 19.08.2009
how to use PlayerToPoint?
Re: how to use PlayerToPoint? -
Correlli - 19.08.2009
pawn Код:
if(PlayerToPoint(RADIUS, playerid, X_POS, Y_POS, Z_POS))
{
// code.
}
Example:
pawn Код:
if(PlayerToPoint(5.0, playerid, 0.0, 0.0, 0.0))
{
// code.
}
This will check if playerid is at x, y, z coords (which are setted as 0.0, 0.0, 0.0 in this case) within the radius range (which is setted as 5.0 in this case).
Re: how to use PlayerToPoint? -
sandisk125 - 19.08.2009
thanks
i have putted a playertopoint to an edited LSPD,but,how can i remove the yellow arrow to enter it?
Re: how to use PlayerToPoint? -
Correlli - 19.08.2009
Quote:
Originally Posted by sandisk125
thanks
i have putted a playertopoint to an edited LSPD,but,how can i remove the yellow arrow to enter it?
|
https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
If you're going to use this then create or download a custom made interior-enter/exit script.
Re: how to use PlayerToPoint? -
sandisk125 - 19.08.2009
but i want it to disable some interiors,not all,how can i do that?
Re: how to use PlayerToPoint? -
ilikepie2221 - 19.08.2009
Quote:
Originally Posted by sandisk125
but i want it to disable some interiors,not all,how can i do that?
|
Pretty sure you can't.
Re: how to use PlayerToPoint? -
Correlli - 19.08.2009
Quote:
Originally Posted by sandisk125
but i want it to disable some interiors,not all,how can i do that?
|
You can't. With that function you can only disable every interior-arrow.
Re: how to use PlayerToPoint? -
sandisk125 - 19.08.2009
how can i make a thing when player comes to the LSPD and types /enter and they enter an original interior,for example: a player comes to lspd types /enter and now they on cj's house?
and another thing,i have used that playertopoint on LSPD,then i come to lspd types /enter and nothing happens (only a message: "you have entered the LSPD" shown i have created).
someone please help me
Re: how to use PlayerToPoint? -
Correlli - 19.08.2009
Did you used SetPlayerPos and SetPlayerInterior with /enter command?
Re: how to use PlayerToPoint? -
sandisk125 - 19.08.2009
Quote:
Originally Posted by Don Correlli
Did you used SetPlayerPos and SetPlayerInterior with /enter command?
|
i don't remember...
i will try again now