18.03.2019, 15:47
i'm using zones include.
i can't figure out how to make a timer to update my location textdraw so it tells me the right location always.
it looks like this: http://prntscr.com/mzjz9z even though im at airport in LS
this is my code:
edit: its in a separated and i hooked OnPlayerConnect and Spawn
i can't figure out how to make a timer to update my location textdraw so it tells me the right location always.
it looks like this: http://prntscr.com/mzjz9z even though im at airport in LS
this is my code:
Код:
new string[100], zone[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
format(string, sizeof(string), "%s", zone);
LocationSystem[playerid][2] = CreatePlayerTextDraw(playerid, 71.200057, 319.207000, string);
PlayerTextDrawLetterSize(playerid, LocationSystem[playerid][2], 0.134664, 0.803552);
PlayerTextDrawAlignment(playerid, LocationSystem[playerid][2], 2);
PlayerTextDrawColor(playerid, LocationSystem[playerid][2], -1);
PlayerTextDrawSetShadow(playerid, LocationSystem[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, LocationSystem[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, LocationSystem[playerid][2], 255);
PlayerTextDrawFont(playerid, LocationSystem[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, LocationSystem[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, LocationSystem[playerid][2], 0);

