04.02.2013, 22:11
Tenho isto ja ! , mas queria colocar para aparecer CASA ha Venda de longe ...
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1.0,Houses[n][EnterX],Houses[n][EnterY],Houses[n][EnterZ]))
{
new string[230];
new VipTest[20];
if(Houses[n][HousePrice] != 0)
{
if(Houses[n][Owned] == 0)
{
if(Houses[n][VipSocio] == 1) VipTest = "Sim";
if(Houses[n][VipSocio] == 0) VipTest = "Nao";
format(string, sizeof(string), "~g~Esta casa esta a venda!~n~~w~Descriœšo: ~y~%s ~n~~w~Preœo: ~y~$%d~n~~g~Vip/Socio:%s",Houses[n][Description],Houses[n][HousePrice],VipTest); //~n~%s <----take from end
GameTextForPlayer(playerid, string, 3500, 3);
}
else
{
if(Houses[n][Rentable] == 1)
{
format(string, sizeof(string), "~w~Proprietario: ~y~%s ~n~~w~Descriœšo: ~y~%s~n~~w~Aluguel: ~y~$%d",Houses[n][Owner],Houses[n][Description],Houses[n][RentCost]);
GameTextForPlayer(playerid, string, 3500, 3);
}
else
{
format(string, sizeof(string), "~w~Proprietario: ~y~%s ~n~~w~Descriœšo: ~y~%s",Houses[n][Owner],Houses[n][Description]);
GameTextForPlayer(playerid, string, 3500, 3);
}
}
}
}
}