[help]i want 3Dtext house but is so hard -
Kimdonggyu - 16.02.2016
Код:
enum hInfo
{
hCreated,
hNum,
hPrice,
hOwned,
hName[60],
hOwner[MAX_PLAYER_NAME],
Float:hEnterX,
Float:hEnterY,
Float:hEnterZ,
hEnterI,
hEnterW,
Float:hExitX,
Float:hExitY,
Float:hExitZ,
hExitI,
hExitW,
hRent,
hRentPrice,
hBank,
hLocked,
hType, // 1: house 2: bizz
hPickupid,
hNumberKey,
hPass,
Float:hKeyPos[3],
};
#define MAX_BUILDING 500
new BuildingInfo[MAX_BUILDING][hInfo];
i want 3DTextLabe house but is so very hard
Код:
GetPlayerPos(i, oldposx, oldposy, oldposz);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h=1; h<MAX_BUILDING; h++)
{
if(BuildingInfo[h][hCreated] != 0)
{
if(PlayerToPoint(2.0, i, BuildingInfo[h][hEnterX], BuildingInfo[h][hEnterY], BuildingInfo[h][hEnterZ]) && BuildingInfo[h][hEnterW] == GetPlayerVirtualWorld(i))
{
if(BuildingInfo[h][hOwned] == 0)
{
if(BuildingInfo[h][hType]==1)
{
format(string,sizeof(string),""#C_WHITE"< Owned : %d >\n\n"#C_SUC"< Price : %d >",BuildingInfo[h][hNum], BuildingInfo[h][hPrice]);
}
else
{
format(string, sizeof(string), ""#C_WHITE"< Owned : %d >\n\n"#C_SUC"< Price : %d >", BuildingInfo[h][hNum], BuildingInfo[h][hPrice]);
// Create3DTextLabel(HouseLabel[PlayerInfo[i][pPhousekey]], 0x99CCFFAA, string);
}
}
else
{
if(BuildingInfo[h][hType]==1)
{
if(BuildingInfo[h][hRent]==1)
{
format(string, sizeof(string), ""#C_WHITE"< Owned : %d >\n\n< House : %s >\n\n"#C_SUC"< Price : %d >", BuildingInfo[h][hNum], BuildingInfo[h][hOwner], BuildingInfo[h][hRentPrice]);
// Create3DTextLabel(HouseLabel[PlayerInfo[i][pPhousekey]], 0x99CCFFAA, string);
}
else if(BuildingInfo[h][hRent]==0)
{
format(string, sizeof(string), ""C_WHITE"< Owned : %d >\n\n"#C_SUC"< House : %s >", BuildingInfo[h][hNum], BuildingInfo[h][hOwner]);
// Create3DTextLabel(HouseLabel[PlayerInfo[i][pPhousekey]], 0x99CCFFAA, string);
}
}
else
{
format(string, sizeof(string), ""C_WHITE"< Owned : %d >\n\n"#C_SUC"< House : %s >", BuildingInfo[h][hNum], BuildingInfo[h][hOwner]);
// Create3DTextLabel(HouseLabel[PlayerInfo[i][pPhousekey]], 0x99CCFFAA, string);
Код:
else if(Created[playerid] == 4)
{
new h=CreatedHouse[playerid];
if(strcmp(text, "house",true)==0)
{
BuildingInfo[h][hType]=1;
}
else if(strcmp(text, "Bizz",true) == 0)
{
BuildingInfo[h][hType]=2;
}
BuildingInfo[CreatedHouse[playerid]][hExitX]=HousePos[playerid][0];
BuildingInfo[CreatedHouse[playerid]][hExitY]=HousePos[playerid][1];
BuildingInfo[CreatedHouse[playerid]][hExitZ]=HousePos[playerid][2];
BuildingInfo[CreatedHouse[playerid]][hExitI]=HouseInt[playerid];
BuildingInfo[CreatedHouse[playerid]][hExitW]=CreatedHouse[playerid];
BuildingInfo[CreatedHouse[playerid]][hRent]=0;
BuildingInfo[CreatedHouse[playerid]][hRentPrice]=0;
BuildingInfo[CreatedHouse[playerid]][hBank]=0;
BuildingInfo[CreatedHouse[playerid]][hCreated]=1;
SaveHouse(CreatedHouse[playerid]);
SetPlayerPos(playerid, BuildingInfo[CreatedHouse[playerid]][hExitX], BuildingInfo[CreatedHouse[playerid]][hExitY], BuildingInfo[CreatedHouse[playerid]][hExitZ]);
SetPlayerVirtualWorld(playerid, BuildingInfo[CreatedHouse[playerid]][hExitW]);
SetPlayerInterior(playerid, BuildingInfo[CreatedHouse[playerid]][hExitI]);
SCM(playerid, COLOR_LIGHTBLUE, "(알림) "#C_WHITE" Make Okay.");
SetCameraBehindPlayer(playerid);
SetPlayerFreeze(playerid, false, 0);
Created[playerid]=0;
Re: How is this 3DTextLabelText make?? -
GloomY - 16.02.2016
For starters, please put your code inside this:
And explain the question better because I don't understand how can we help you.
If you are bad with English, try using ****** translate.
deleted -
Kimdonggyu - 17.02.2016
Delted
Re: How is this 3DTextLabelText make?? -
Ritzy2K - 17.02.2016
Okay soo you want to have an existing 3d text label? In the house system you downloaded or ripped off some GM?