25.07.2011, 12:41
pawn Код:
// Coloque o cуdigo abaixo nesta public OnGameModeInit()
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(string, sizeof(string), "~w~proprietЃrio da casa:~n~%s~n~Level : %d",HouseInfo[h] [hOwner],HouseInfo[h][hLevel]);
Create3DTextLabel(string,COR,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,40,0,1);
//Create3DTextLabel(texto[],cor,coord: X,coord:Y,coord,Z,distancia mбxima que pode vizualizar o texto,virtual world,se podemos ver o texto atraves de objetos);
//mais detalhes sobre esta funзгo procura na sa-mp wiki
}
else if(HouseInfo[h][hRentabil] == 1)
{
format(string, sizeof(string), "~w~proprietЃrio da casa:~n~%s~n~Aluguel: R$ %d Level : %d~n~digite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
Create3DTextLabel(string,COR,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,40,0,1);
}
}
else if(HouseInfo[h][hOwned] == 0)
{
format(string, sizeof(string), "~w~a casa estЃ a venda~n~Descriњљo: %s ~n~Preњo: ~g~R$ %d ~n~~w~ Level : %d~n~para comprar digite /comprarcasa",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
Create3DTextLabel(string,COR,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,40,0,1);
}
}