AddStaticVehicle
#1

can i add all this vehicles in one line


PHP код:
    AddStaticVehicle(495,1805.6975,-2517.9045,13.8921,356.3799,0,139);
    
AddStaticVehicle(495,1810.1093,-2518.0725,13.9040,358.6580,128,183); 
    
AddStaticVehicle(495,1814.2990,-2517.5632,13.8919,358.0862,118,117); 
    
AddStaticVehicle(495,1818.6648,-2517.5454,13.7844,5.4847,119,122); 
    
AddStaticVehicle(494,1823.1331,-2517.1870,13.4407,359.1140,36,13);
    
AddStaticVehicle(496,1815.9048,-2479.1980,13.2721,89.4300,66,72); 
    
AddStaticVehicle(497,1837.7059,-2480.3740,13.7313,110.9542,0,1); 
    
AddStaticVehicle(471,1607.3881,-2543.7551,13.0266,270.1700,211,226);
    
AddStaticVehicle(522,1607.1715,-2538.3337,13.1188,273.1926,211,0); 
    
AddStaticVehicle(522,1607.0608,-2533.4197,13.1180,281.7062,222,252); 
    
AddStaticVehicle(522,1606.8660,-2530.0740,13.1182,275.0715,226,194); 
    
AddStaticVehicle(522,1606.7081,-2524.8394,13.1146,283.8929,212,211); 
    
AddStaticVehicle(522,1606.2941,-2520.6865,13.1124,274.7867,244,240); 
    
AddStaticVehicle(462,1607.1208,-2540.7180,13.1465,269.3733,13,175); 
    
AddStaticVehicle(545,1545.2229,-2656.2593,13.3580,355.4931,47,1);.
    
AddStaticVehicle(545,1538.4860,-2656.2664,13.3579,359.9922,44,96); 
    
AddStaticVehicle(545,1528.4694,-2656.3735,13.4126,0.0024,40,96); 
    
AddStaticVehicle(545,1534.0547,-2656.3379,13.3579,356.6699,39,1); 
    
AddStaticVehicle(545,1522.3324,-2656.3452,13.3580,2.9041,30,1); 
    
AddStaticVehicle(556,1621.9866,-2637.5930,13.9219,0.0539,1,1);
    
AddStaticVehicle(557,1614.5913,-2637.2363,13.9218,0.9741,1,1);.
    
AddStaticVehicle(572,1607.8171,-2639.1033,13.1268,356.6909,101,211);
    
AddStaticVehicle(572,1604.4700,-2639.0684,13.1268,359.9980,116,183); 
    
AddStaticVehicle(572,1600.3271,-2639.1274,13.1267,0.0037,117,167); /
    
AddStaticVehicle(578,1632.1604,-2634.7869,14.1722,356.7451,1,1); 
    
AddStaticVehicle(583,1626.7498,-2637.4968,13.0874,359.7458,1,1); 
    
AddStaticVehicle(425,1568.9409,-2626.1094,14.1394,359.9998,43,0); 
    
AddStaticVehicle(432,1587.2917,-2688.0649,13.5547,359.5374,43,0); 
Reply
#2

help!
Reply
#3

You can't do that with vehicles, because they will spawn in the same place and probably bug/crash/lag your server. You can only with AddPlayerClass(Ex).
Reply
#4

ok with AddStaticVehicleEx what i do to make it in one line?
Reply
#5

what do you mean "in one line"?
You must add static vehicles in OnGameModeInit()
Reply
#6

all Vehicle in one code line
Reply
#7

you can declare array(or file with) with vehicle-info and then add vehicles by cycle
or just add this line in your OnGameModeInit.
Reply
#8

Quote:
Originally Posted by BoU3A
Посмотреть сообщение
all Vehicle in one code line
Guy this is > Impossible <
U need to paste All these lines on OnGameModeInit

Like this :

pawn Код:
public OnGameModeInit()
{
    AddStaticVehicle(495,1805.6975,-2517.9045,13.8921,356.3799,0,139);
    AddStaticVehicle(495,1810.1093,-2518.0725,13.9040,358.6580,128,183);  
    AddStaticVehicle(495,1814.2990,-2517.5632,13.8919,358.0862,118,117);  
    AddStaticVehicle(495,1818.6648,-2517.5454,13.7844,5.4847,119,122);  
    AddStaticVehicle(494,1823.1331,-2517.1870,13.4407,359.1140,36,13);
    AddStaticVehicle(496,1815.9048,-2479.1980,13.2721,89.4300,66,72);  
    AddStaticVehicle(497,1837.7059,-2480.3740,13.7313,110.9542,0,1);  
    AddStaticVehicle(471,1607.3881,-2543.7551,13.0266,270.1700,211,226);
    AddStaticVehicle(522,1607.1715,-2538.3337,13.1188,273.1926,211,0);  
    AddStaticVehicle(522,1607.0608,-2533.4197,13.1180,281.7062,222,252);  
    AddStaticVehicle(522,1606.8660,-2530.0740,13.1182,275.0715,226,194);  
    AddStaticVehicle(522,1606.7081,-2524.8394,13.1146,283.8929,212,211);  
    AddStaticVehicle(522,1606.2941,-2520.6865,13.1124,274.7867,244,240);  
    AddStaticVehicle(462,1607.1208,-2540.7180,13.1465,269.3733,13,175);  
    AddStaticVehicle(545,1545.2229,-2656.2593,13.3580,355.4931,47,1);.
    AddStaticVehicle(545,1538.4860,-2656.2664,13.3579,359.9922,44,96);  
    AddStaticVehicle(545,1528.4694,-2656.3735,13.4126,0.0024,40,96);  
    AddStaticVehicle(545,1534.0547,-2656.3379,13.3579,356.6699,39,1);  
    AddStaticVehicle(545,1522.3324,-2656.3452,13.3580,2.9041,30,1);  
    AddStaticVehicle(556,1621.9866,-2637.5930,13.9219,0.0539,1,1);
    AddStaticVehicle(557,1614.5913,-2637.2363,13.9218,0.9741,1,1);.
    AddStaticVehicle(572,1607.8171,-2639.1033,13.1268,356.6909,101,211);
    AddStaticVehicle(572,1604.4700,-2639.0684,13.1268,359.9980,116,183);  
    AddStaticVehicle(572,1600.3271,-2639.1274,13.1267,0.0037,117,167); /
    AddStaticVehicle(578,1632.1604,-2634.7869,14.1722,356.7451,1,1);  
    AddStaticVehicle(583,1626.7498,-2637.4968,13.0874,359.7458,1,1);  
    AddStaticVehicle(425,1568.9409,-2626.1094,14.1394,359.9998,43,0);  
    AddStaticVehicle(432,1587.2917,-2688.0649,13.5547,359.5374,43,0);  
return 1;
}
Reply
#9

It's not impossible. As a poster already said, you can use an array or even a MySQL table. There are plenty of ways.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)