[Ajuda] Нcone da Casa some ao Reiniciar o Servidor
#6

PHP код:
stock CreateHouse(Filename[], CostFloat:PickupxFloat:PickupyFloat:PickupzFloat:TelexFloat:TeleyFloat:Telezinteriorsell)
{
    if(!
dini_Exists(house))
    {
        
dini_Create(house);
    }
    
    
HouseCount ++;
    new 
ID HouseCount//HouseID
    
format(HouseInfo[ID][HouseNames], 60"%s"Filename); //Saves the HouseName into a variable
    
HouseInfo[ID][HouseCost] = Cost;
    
HouseInfo[ID][PickupX] = Pickupx;
    
HouseInfo[ID][Virtual] = 2000000 ID;
    
HouseInfo[ID][PickupY] = Pickupy;
    
HouseInfo[ID][PickupZ] = Pickupz;
    
HouseInfo[ID][TeleX] = Telex;
    
HouseInfo[ID][TeleY] = Teley;
    
HouseInfo[ID][TeleZ] = Telez;
    
HouseInfo[ID][Interior] = interior;
    
HouseInfo[ID][HouseSell] = sell;
    
format(HouseInfo[ID][HouseOwner], 24"gj9043jg-er((23");
    if(
strlen(dini_Get(houseFilename))) //This is to see if there is any owner.
    
{
        
format(HouseInfo[ID][HouseOwner], 24"%s"dini_Get(houseFilename));
        
HouseInfo[ID][Owned] = 1;
        
PickupID[ID] = CreatePickup(127223PickupxPickupyPickupz, -1); //Creates the pickup :).
    
}
    else
    {
        
PickupID[ID] = CreatePickup(127323PickupxPickupyPickupz, -1); //Creates the pickup :).
        
HouseInfo[ID][Owned] = 0;
    }
    
    
Create3DTextLabel("House"0x00A0F6AAPickupxPickupyPickupz 0.7515.001);

Reply


Messages In This Thread
Нcone da Casa some ao Reiniciar o Servidor - by WKhalifa - 19.04.2015, 14:09
Re: Нcone da Casa some ao Reiniciar o Servidor - by Fel486 - 19.04.2015, 14:31
Re: Нcone da Casa some ao Reiniciar o Servidor - by WKhalifa - 19.04.2015, 14:42
Re: Нcone da Casa some ao Reiniciar o Servidor - by Fel486 - 19.04.2015, 14:46
Re: Нcone da Casa some ao Reiniciar o Servidor - by WKhalifa - 19.04.2015, 22:09
Re: Нcone da Casa some ao Reiniciar o Servidor - by Fel486 - 19.04.2015, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)