Calculating on screen X, Y from world coords
#3

Okay, tried to make it as you said, but sadly point is being shown far away from where it should be.

pawn Код:
new
    Float:scalex = 243.6 / 6000, //243.6 is the width
    Float:scaley = 264.0 / 6000, //264 is the height
    Float:screenx = MDC_g_sPlayer[playerid][E_MDC_LOOKUP_ACTIVE_ADRESS_POS][0] + 3000, //Real world X + 3000
    Float:screeny = MDC_g_sPlayer[playerid][E_MDC_LOOKUP_ACTIVE_ADRESS_POS][1] + 3000 //Real world Y + 3000
;
                       
MDC_g_sPlayer[playerid][E_MDC_TEXTDRAW][33] = CreatePlayerTextDraw(playerid, screenx * scalex, screeny * scaley, "hud:radar_waypoint");
Reply


Messages In This Thread
Calculating on screen X, Y from world coords - by Riwerry - 10.05.2017, 23:17
Re: Calculating on screen X, Y from world coords - by Vince - 11.05.2017, 05:54
Re: Calculating on screen X, Y from world coords - by Riwerry - 11.05.2017, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)