12.12.2015, 11:46
hello i have a problem with truck system! i create a textdraw to show distance from point
i want the textdraw change when i get close to point how can i do that please i need help
Sorry for my bad english
Code:
new Float: fDistance = GetPlayerDistanceFromPoint(playerid, -1215.4589, 1814.6609, 41.7188), szMessage[44]; format(szMessage,sizeof(szMessage),"~p~Distance:~w~~n~%0.2f Meters",fDistance); TextDrawSetString(Dis, szMessage); TextDrawShowForPlayer(playerid, Dis); CT[playerid] = 1; GameTextForPlayer(playerid,"~p~Mission~w~ started",4500,3); SCM(playerid, COLOR_LIGHTBLUE, "You started a truck mission. Go to the checkpoint to get the money $$$"); SetPlayerCheckpoint(playerid, -1215.4589,1814.6609,41.7188, 3.0);
Sorry for my bad english