plesae help with disance steam
#4

try this

PHP код:
stock OnPropTextdrawUpdate(updateid)
{
    new 
PropertyString[256];
    if(
update == 1)
    {
        switch(
id)
        {
            case 
.. 798:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  -1,  -1, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  -1,  -1, -1200.0);
                }
            }
            case 
799 .. 816:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  1,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  1,  18, -1200.0);
                }
            }
            case 
817 .. 834:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  2,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  2,  18, -1200.0);
                }
            }
            case 
835 .. 852:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  3,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  3,  18, -1200.0);
                }
            }
            case 
853 .. 870:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  4,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  4,  18, -1200.0);
                }
            }
            case 
871 .. 888:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  5,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  5,  18, -1200.0);
                }
            }
            case 
889 .. 906:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  6,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  6,  18, -1200.0);
                }
            }
            case 
907 .. 924:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  7,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  7,  18, -1200.0);
                }
            }
            case 
925 .. 942:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  8,  18, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  8,  18, -1200.0);
                }
            }
            case 
943 .. 1100:
            {
                if(
HouseInfo[id][hOwned] == 0)
                {
                    if(
HouseInfo[id][hSetted] == 1)
                    {
                        
DestroyDynamic3DTextLabel(HouseLabel[id]);
                        
format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[id][hWorld], HouseInfo[id][hValue],HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
                        
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FF00AAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  -1,  -1, -1200.0);
                    }
                }
                else if(
HouseInfo[id][hOwned] == 1)
                {
                    new 
Rents[16];
                    if(
HouseInfo[id][hRentabil] != 0)
                    {
                        
format(Rents,sizeof(Rents),"$%d"HouseInfo[id][hRent]);
                    }
                    else
                    {
                        
Rents "Unrentable";
                    }
                    
DestroyDynamic3DTextLabel(HouseLabel[id]);
                    
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: %s \n Description: %s \n To Rent Type /rentroom"HouseInfo[id][hMessage],HouseInfo[id][hOwner],HouseInfo[id][hWorld], RentsHouseInfo[id][hDiscription]);
                    
HouseLabel[id] = CreateDynamic3DTextLabel(PropertyString 0x00FFFFAAHouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID0,  -1,  -1, -1200.0);
                }
            }
        }
    }
    else if(
update == 2)
    {
        if(
BizzInfo[id][bOwned] == 0)
        {
            
DestroyDynamic3DTextLabel(BizzLabel[id]);
            
format(PropertyString,sizeof(PropertyString),"Bizz is Unowned! \n %s \n Bizz ID: %d \n Price: $%d \n Level Needed: %d \n To Buy This, Type /buybiz",BizzInfo[id][bMessage], BizzInfo[id][bVirWorld], BizzInfo[id][bBuyPrice], BizzInfo[id][bLevelNeeded]);
            
BizzLabel[id] = CreateDynamic3DTextLabel(PropertyString0x00FF00AABizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID,  0,  -1,  -1,  -1200.0);
        }
        else if(
BizzInfo[id][bOwned] == 1)
        {
            
DestroyDynamic3DTextLabel(BizzLabel[id]);
            
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Bizz ID: %d \n Extortion: %s \n Entering Fee: $%d. \n To Enter This, /enter.",BizzInfo[id][bMessage],BizzInfo[id][bOwner], BizzInfo[id][bVirWorld], BizzInfo[id][bExtortion], BizzInfo[id][bEntranceCost]);
            
BizzLabel[id] = CreateDynamic3DTextLabel(PropertyString0x00FFFFAABizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ], 10INVALID_PLAYER_IDINVALID_VEHICLE_ID,  0,  -1,  -1,  -1200.0);
        }
    }
    return 
1;

Reply


Messages In This Thread
plesae help with disance steam - by Barnwell - 18.12.2015, 13:11
Re: plesae help with disance steam - by N0FeaR - 18.12.2015, 13:13
Re: plesae help with disance steam - by Barnwell - 18.12.2015, 13:24
Re: plesae help with disance steam - by N0FeaR - 18.12.2015, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)