11.01.2015, 15:00
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:
And here is the code to see if the player is in range of the business:
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.
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); }
Код:
if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]))
I'll [REP +] anyone that helps me.