possible? - 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: possible? (
/showthread.php?tid=65484)
possible? -
harrold - 13.02.2009
Is it possible to:
if a player go in a taxi (passenger)
Then he get a menu and there stay: goto my waypoint
Then the taxi driver get a new checkpoint on the pos where the player his icon is ?
Re: possible? -
BMUK - 13.02.2009
No
Re: possible? -
harrold - 13.02.2009
Really?
Re: possible? -
BMUK - 13.02.2009
Ya Really
Re: possible? -
weedarr - 13.02.2009
Yep, getting one players waypoint and sending it to another person is not possible with sa-mp. It could maybe be done with a plugin, but i am not sure.
WeeDarr
Re: possible? -
BMUK - 13.02.2009
Ya could get a whole load of common waypoints, get all the coords and give the passenger a menu with them all. Dont need to be one menu, you could have menus that give another menu etc.
Once the player has selected his wanted location, set the drivers race checkpoint to that point or some shizzle
Re: possible? -
Donny_k - 13.02.2009
You could use a command or w/e to set your waypoint then when the driver requests it have it show as a mapicon or a checkpoint for him.
pawn Код:
//tos
new
Float:gWayPoint[ MAX_PLAYERS ][ 3 ];
//in the command which the player uses to set his waypoint
GetPlayerPos( playerid, gWaypoint[ playerid ][ 0 ], gWaypoint[ playerid ][ 1 ], gWaypoint[ playerid ][ 2 ] );
//in the w/e the driver uses to select the players waypoint
SetCheckpoint( playerid, gWaypoint[ passengerid ][ 0 ], gWaypoint[ passengerid ][ 1 ], gWaypoint[ passengerid ][ 2 ], 3.0 );
Most things are possible or have a pretty decent workaround if you put a little thought into it.