05.02.2013, 19:50
(
Последний раз редактировалось radiobizza; 09.02.2013 в 14:17.
)
In this filterscript created a civilian spawn with Attach3DTextLabelToVehicle
I hope you will like
Code.
I hope you will like
Code.
PHP код:
#include <a_samp>
#include <streamer>
new masinaspawn1;
new masinaspawn2;
new masinaspawn3;
new masinaspawn4;
new masinaspawn5;
new masinaspawn6;
new masinaspawn7;
new masinaspawn8;
new masinaspawn9;
new masinaspawn10;
new masinaspawn11;
new masinaspawn12;
new masinaspawn13;
new masinaspawn14;
new masinaspawn15;
new masinaspawn16;
new masinaspawn17;
#pragma unused masinaspawn17
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;
public OnGameModeInit()
{
CreateDynamicObject(2755,328.9800000,-1510.0000000,36.6400000,0.0000000,0.0000000,51.2400000); //
CreateDynamicObject(2755,330.9700000,-1507.7400000,36.6400000,0.0000000,0.0000000,48.6000000); //
CreateDynamicObject(2755,327.1400000,-1512.4100000,36.6400000,0.0000000,0.0000000,51.2400000); //
CreateDynamicObject(2755,325.1600000,-1514.8000000,36.6400000,0.0000000,0.0000000,51.2400000); //
CreateDynamicObject(2755,323.2900000,-1517.1600000,36.6400000,0.0000000,0.0000000,51.2400000); //
CreateDynamicObject(2755,321.5600000,-1519.5800000,36.6400000,0.0000000,0.0000000,58.2600000); //
CreateDynamicObject(2755,320.0400000,-1522.2300000,36.6400000,0.0000000,0.0000000,58.2600000); //
CreateDynamicObject(2755,318.4700000,-1524.8100000,36.6400000,0.0000000,0.0000000,58.2600000); //
CreateDynamicObject(2755,333.2100000,-1505.6200000,36.6400000,0.0000000,0.0000000,43.6800000); //
CreateDynamicObject(2755,335.4500000,-1503.5400000,36.6400000,0.0000000,0.0000000,43.6800000); //
CreateDynamicObject(3877,342.7000000,-1514.7700000,33.9600000,0.0000000,0.0000000,0.0000000); //
CreateDynamicObject(3877,349.4400000,-1507.2000000,32.4300000,0.0000000,0.0000000,0.0000000); //
CreateDynamicObject(3877,331.0700000,-1531.0300000,33.4600000,0.0000000,0.0000000,0.0000000); //
CreateDynamicObject(3877,325.1600000,-1539.7200000,32.6500000,0.0000000,0.0000000,0.0000000); //
CreateDynamicObject(3877,327.8500000,-1524.7100000,34.5600000,0.0000000,0.0000000,0.0000000); //
CreateDynamicObject(3877,338.2100000,-1511.8100000,34.5600000,0.0000000,0.0000000,0.0000000); //
masinaspawn1 = AddStaticVehicle(471, 323.9897, -1544.4772, 32.5687, -119.4600, 1, 1);//ATW
masinaspawn2 = AddStaticVehicle(471, 322.7121, -1546.6156, 32.5687, -109.3800, 1, 1);//ATW
masinaspawn3 = AddStaticVehicle(471, 321.6949, -1548.8788, 32.5687, -109.3800, 1, 1);//ATW
masinaspawn4 = AddStaticVehicle(471, 320.7823, -1551.1921, 32.5687, -109.3800, 1, 1);//ATW
masinaspawn5 = AddStaticVehicle(471, 319.7096, -1553.6362, 32.5687, -109.3800, 1, 1);//ATW
masinaspawn6 = AddStaticVehicle(411, 354.2966, -1506.6901, 32.6751, -79.2000, 1, 1);//INFERNUS
masinaspawn7 = AddStaticVehicle(566, 372.1708, -1525.2035, 33.0670, 0.0000, 1, 1);//TAHOMA
masinaspawn8 = AddStaticVehicle(566, 367.0481, -1530.7053, 33.0670, 0.0000, 1, 1);//TAHOMA
masinaspawn9 = AddStaticVehicle(560, 352.5932, -1549.8828, 32.9399, 0.0000, 1, 1);//SULTAN
masinaspawn10 = AddStaticVehicle(560, 347.8276, -1556.1193, 32.6348, 0.0000, 1, 1);//SULTAN
masinaspawn11 = AddStaticVehicle(468, 342.3645, -1499.0193, 35.5884, -139.9799, 1, 1);//SANCHEZ
masinaspawn12 = AddStaticVehicle(468, 343.7974, -1498.0267, 35.5884, -139.9799, 1, 1);//SANCHEZ
masinaspawn13 = AddStaticVehicle(468, 345.0550, -1496.9438, 35.5884, -139.9799, 1, 1);//SANCHEZ
masinaspawn14 = AddStaticVehicle(468, 346.3426, -1496.0112, 35.5884, -139.9799, 1, 1);//SANCHEZ
masinaspawn15 = AddStaticVehicle(468, 347.6156, -1494.9695, 35.5884, -139.9799, 1, 1);//SANCHEZ
masinaspawn16 = AddStaticVehicle(468, 348.7166, -1494.0121, 35.5884, -139.9799, 1, 1);//SANCHEZ
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn1, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn2, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn3, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn4, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn5, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn6, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn7, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn8, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn9, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn10, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn11, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn12, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn13, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn14, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn15, 0.0, 0.0, 2.0);
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "~Spawn Civil Vehicle~", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , masinaspawn16, 0.0, 0.0, 2.0);
return 1;
}