SA-MP Forums Archive
Get player GPS marker? - 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: Get player GPS marker? (/showthread.php?tid=535340)



Get player GPS marker? - Mariawantstowatchtv - 03.09.2014

Is there anyway that I can let players go to there map in the main menu and then save the spot they right click ?


Re: Get player GPS marker? - Mariawantstowatchtv - 03.09.2014

Can this not be done?


Re: Get player GPS marker? - Gogeta101 - 03.09.2014

Umm it can be done becuase in some servers admin can map teleport where that gps is marked.


Re: Get player GPS marker? - PMH - 03.09.2014

idk how, but it's possible, i've seen it in kcnr

since there was a feature that made gps to where ur map gps was


Re: Get player GPS marker? - Stanford - 03.09.2014

OnPlayerClickMap is called when a player places a target/waypoint on the pause menu map (by right-clicking).
(playerid, Float:fX, Float:fY, Float:fZ)

pawn Код:
OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
Hint: you need to have mapandreas plugin/include to make this more accurate (finding the solid ground).

I think that you know the rest as it's always about variables.


Re: Get player GPS marker? - 5194Hercules - 03.09.2014

pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    SetPlayerPosFindZ(playerid, fX, fY, fZ);
    return 1;
}



Re: Get player GPS marker? - Gogeta101 - 03.09.2014

Try this one

Quote:

public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(Player[playerid] [pAdmin] >=1)
{
SetPlayerPos(playerid,fX,fY,fY);
}
else
{
SendClientMessage(playerid,COLOR_RED,"[SERVER]:You are not allowed to use this command");
}
return 1;
}