how to use PlayerToPoint?
#1

how to use PlayerToPoint?
Reply
#2

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).
Reply
#3

thanks
i have putted a playertopoint to an edited LSPD,but,how can i remove the yellow arrow to enter it?
Reply
#4

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.
Reply
#5

but i want it to disable some interiors,not all,how can i do that?
Reply
#6

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.
Reply
#7

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.
Reply
#8

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
Reply
#9

Did you used SetPlayerPos and SetPlayerInterior with /enter command?
Reply
#10

Quote:
Originally Posted by Don Correlli
Did you used SetPlayerPos and SetPlayerInterior with /enter command?
i don't remember...
i will try again now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)