Updating label
#1

I have a gangzone system which creates a label showing zone name and which team owns it (Ex: Area69 - Owned by Usa).

pawn Код:
new label[100];
        format(label, sizeof(label), "ZONE: %i - %s \nOwned by: %s", i, gCaptureZone[i][zone_Name], gTeamData[gCaptureZone[i][zone_Owner]][team_Name]);
        CreateDynamic3DTextLabel(label, COLOR_GOLD, gCaptureZone[i][zone_CP][0], gCaptureZone[i][zone_CP][1], gCaptureZone[i][zone_CP][2], 50.0);
The label works, but i want to update text "owned by" after a player captured that zone from another team.

If im from team russia and i capture that zone, it should update the label with "zone area69 owned by russia"

How to make it with UpdateDynamic3dTextLabel? Thanks.
Reply


Messages In This Thread
Updating label - by Despacito - 14.05.2017, 10:49
Re: Updating label - by Toroi - 14.05.2017, 10:58
Re: Updating label - by Despacito - 14.05.2017, 11:00
Re: Updating label - by Despacito - 15.05.2017, 11:35
Re: Updating label - by zedshadowzw - 15.05.2017, 11:45
Re: Updating label - by Despacito - 15.05.2017, 11:53
Re: Updating label - by iLearner - 15.05.2017, 13:19

Forum Jump:


Users browsing this thread: 3 Guest(s)