Get player GPS marker?
#1

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

Can this not be done?
Reply
#3

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

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

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

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

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;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)