How to get/set position based in the screen?
#1

Hello friends... I want. to make a system, with text draws to teleport. players... to be sure, using the map like textdraw in the screen! When player move the textdraw and press a key... he will be teleported to the position in the map! I just want know how to get the position based in the position of the textdraw(movable). Any help?
Reply
#2

And, why don't you simply use the normal map and get the positions of where the players have clicked to teleport him? By using the OnPlayerClickMap functions or something like that. Using textdraws isn't a good ideas.

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

I understand, but my system not is unique, some serves have.. I see this system in one server and decide to make too... the idea is not make the player press Esc, go to the map, remove the fucking automatic zoom, select the position, go back and execute the system... my system is 99% ready, the map in the screen, the point(movable textdraw) to select the point... but need only the calcutations to transform the positions of textdraw in positions of the map
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)