Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Hi SA-MP Community,
I assembeld a ship with many parts like the hull, alfa objects, crates, ......... Now the deal is when a player calls for that ship from a dock, the ship must come to the player 5 meters away in one piece. Is it possible? If yes, show me how.
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Done that +reped. Now how to code for the ship to be some distance away from the player when called?
Posts: 426
Threads: 46
Joined: Apr 2011
Quote:
Originally Posted by Faisal_khan
So what should be my X, Y, Z co-ordinates? The co-ordinate from where the player is calling?
|
The First line, the XYZ lines are for the Location of where the player is calling, the MoveObject XYZ is for where the Ship would "row" to
Posts: 426
Threads: 46
Joined: Apr 2011
Quote:
Originally Posted by Faisal_khan
arghhh!!!
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 8 seconds.
Then what about the DISTANCE?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, DISTANCE, X, Y, Z))
|
Meters away from the XYZ?
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint