01.05.2012, 15:18
Nao Seia Assim ?
pawn Код:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
NameTimer(i);
GetPlayerPos(i, oldposx, oldposy, oldposz);
//new tmpcar = GetPlayerVehicleID(i);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
new MostString7[500];
Delete3DTextLabel(Text3D:MostLabel6);
format(MostString7, sizeof(MostString7), "{00FF00}Brasil {FFFF00}Play{0000FF}game{FFFFFF}\n%s\nDono: %s\nExtorзгo: %s\nEntrada: $%d\nNнvel: %d\nProdutos: %d\nPreзo por Produto: %d\nFundos: %d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded],(SBizzInfo[h][sbMaxProdutos]-SBizzInfo[h][sbProdutos]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
MostLabel7 = Create3DTextLabel(MostString7 ,0x0FFFC8FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0, 1);
}
else
{
new MostString6[256];
Delete3DTextLabel(Text3D:MostLabel7);
format(MostString6, sizeof(MostString6), "{00FF00}Brasil {FFFF00}Play{0000FF}Game{FFFFFF}\nEsta empresa estб a venda\n%s\nPreзo: $%d\nNivel: %d \nSe vocк for um Jogador VIP pode comprar esta empresa\nUsando /comprarempresa",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
MostLabel6 = Create3DTextLabel(MostString6 ,0x0FFFC8FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],10, 0, 1);
}
return 1;
}
}