Changing 3DTextLable to GameTextForPlayer
#1

Okay, so in the server it was scripted so that every business has a 3DTextLable telling everyone information about the business when you get close to it. I want to change it to a TextDraw (GameTextForPlayer). How would I do that?

Here is the code for the 3DTextLable:

Код:
if(BizInfo[idx][bType]) // If Business is owned
{
	BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ], 0);
	if(!strcmp("The State", BizInfo[idx][bOwner])) format(string, sizeof(string), "Owner: %s\nBusiness Type: %s\nStatus: For Sale\nPrice: $%d", BizInfo[idx][bOwner], RBT(idx), BizInfo[idx][bPrice]);
	else format(string, sizeof(string), "Business of %s\nBusiness type: %s\n%s", BizInfo[idx][bOwner], RBT(idx), RBS(idx));
	BizInfo[idx][bText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]+0.3, 15);
}
And here is the code to see if the player is in range of the business:

Код:
if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]))
So, could someone show me how to change it or even just do it and use //'s beside the code to explain what you did. Thanks you in advance.

I'll [REP +] anyone that helps me.
Reply


Messages In This Thread
Changing 3DTextLable to GameTextForPlayer - by Ciarannn - 11.01.2015, 15:00
Re: Changing 3DTextLable to GameTextForPlayer - by Ironboy - 11.01.2015, 15:12
Re: Changing 3DTextLable to GameTextForPlayer - by Ciarannn - 11.01.2015, 16:38
Re: Changing 3DTextLable to GameTextForPlayer - by Bondage - 11.01.2015, 16:43
Re: Changing 3DTextLable to GameTextForPlayer - by Ciarannn - 11.01.2015, 16:50
Re: Changing 3DTextLable to GameTextForPlayer - by Write - 11.01.2015, 19:40

Forum Jump:


Users browsing this thread: 2 Guest(s)