TextDraw help | +rep
#1

I got this
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
                {
                    if(PlayerToPoint(1.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
                    {
                        if(PlayerInfo[playerid][pBreakingIn] == 0)
                        {
                            if(HouseInfo[h][hOwned] == 1)
                            {
                                if(HouseInfo[h][hRentabil] == 0)
                                {
                                    format(string, 128, "~r~%s~n~~w~Owner: ~g~%s",HouseInfo[h][hDiscription],HouseInfo[h][hOwner]);
                                }
                                else
                                {
                                    format(string, 128, "~r~%s~n~~w~Owner: ~g~%s~n~~w~Rent: ~g~$%d~n~~w~Type ~b~/rentroom ~w~to rent a room.",HouseInfo[h][hDiscription],HouseInfo[h][hOwner],HouseInfo[h][hRent]);
                                }
                                GameTextForPlayer(playerid, string, 5000, 3);
                            }
                            else
                            {
                                format(string, 128, "~r~%s ~n~~w~Cost: ~g~$%d~n~~w~ LS Time : ~g~%d~n~~b~/buyhouse ~w~to buy this house",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
                            }
                            GameTextForPlayer(playerid, string, 5000, 3);
                        }
                    }
                }
This actually is a gametext shows to the player when He enters a pickup, what I wanna do is to make them textdraws
Can you guys show me how ? Sorry im a noob in scripting D:
Reply
#2

1- you create your text draw
2- you Change the gametext

Quote:

GameTextForPlayer(playerid, string, 5000, 3);

to

TextDrawSetString(TextDrawID, string);
TextDrawShowForPlayer(playerid,TextDrawID);

Do not forget the timer ex for Hide the text draw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)