24.02.2013, 15:59
I got this
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:
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);
}
}
}
Can you guys show me how ? Sorry im a noob in scripting D: