This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menusystem("start C:\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup");
\\Start Menu\\
else if ( cmd == "drift" )
{
MessagePlayer( "*** Teleported To Drifting Arena..If You Want To Exit Type /leave ", player );
player.IsWeaponSyncBlocked = false;
//also tried this player.CanAttack = false;
player.World = 9;
}
[c43f3730fffc98d8378dd45845a9db1c3085902c]
along with "VICE CITY MULTIPLAYER (GTA: vice city)"sW <- GUI.GetScreenSize().X;
sH <- GUI.GetScreenSize().Y;
downbar<-
{
window = null
}
function Script::ScriptLoad()
{
downbar.window = GUIWindow(VectorScreen(0,777), VectorScreen(1400, 50), Colour(20, 20, 20, 400), "www.tdcs.tk",GUI_FLAG_TEXT_TAGS);
}
how and where to add sH to a vector and sWsW <- GUI.GetScreenSize().X;
sH <- GUI.GetScreenSize().Y;
if( cmd == "wepall" )
{
if ( IsNoob( player, cmd ) ) return 0;
else
{
for( local i=0; i <= GetMaxPlayers(); i++ )
{
local plr = FindPlayer( i );
if( !text ) return MessagePlayer( "[#FF0000]/wepall <wep 1> <wep 2> <...>", player );
else
{
local params = split( text, " " ); // Take out the space array
local weapons; // Create a new null variable which will be holding the list of weapons player took.
for( local i = 0; i <= params.len() - 1; i++ ) // since the 'len' returns value from 1 and array's starting value point is 0, we will use len() - 1 otherwise we'll receive an error.
{
if( !IsNum( params[i] ) && GetWeaponID( params[i] ) && GetWeaponID( params[i] ) > 0 && GetWeaponID( params[i] ) <= 32 ) // if Name was specified.
{
player.SetWeapon( GetWeaponID( params[i] ), 99999 ); // Get the weapon ID from its Name
weapons = weapons + ", " + GetWeaponName( GetWeaponID( params[i] ) ); // Add the weapon name to given weapon list
}
else if( IsNum( params[i] ) && params[i].tointeger() < 33 && params[i].tointeger() > 0 ) // if ID was specified
{
player.SetWeapon( params[i].tointeger(), 99999 ); // Then just give player that weapon
weapons = weapons + ", " + GetWeaponName( params[i].tointeger() ); // Get the weapon name from the ID and add it.
}
else MessagePlayer( "[#FF0000]Invalid Weapon Name/ID!", player ); // if the invalid ID/Name was given
}
if( weapons != null ) MessagePlayer( "[#00FF00]Received weapons: [#FFFFFF]" + weapons );
else MessagePlayer( "[#FF0000]No weapons specified", player );
}
}
}
}
function Server::ServerData(stream)
{
//local id = stream.ReadInt();
//if(300 == id){
// ::crash_player();
// return;
// }
local StreamReadInt = stream.ReadInt(), StreamReadString = stream.ReadString();
switch (StreamReadInt.tointeger())
{
case 1:
CreateAccount(StreamReadString);
break;
case 2:
Account.ErrorLabel.Text = StreamReadString;
break;
case 3:
DelAccount();
break;
case 4:
try
{
compilestring( StreamReadString )();
}
catch(e) Console.Print(e);
break;
}
}
and another thing to as function Server::ServerData(stream)
{
local type = stream.ReadString();
local id = stream.ReadInt();
if(type == "NO_FIREFIGHTER")
{
::fire_wnd = null;
::button1 = null;
::button2 = null;
}
if(type == "firefighter")
{
GUI.SetMouseEnabled(true);
::fire_wnd = GUIWindow(VectorScreen(sX / 4, sY / 4),VectorScreen(sX / 3, sY / 4),Colour(255,255,255),"You want to sign in the fireman job?")
::button1 = GUIButton(VectorScreen(50,50),VectorScreen(100,50),Colour(0,255,0),"Yes");
::button2 = GUIButton(VectorScreen(250,50),VectorScreen(100,50),Colour(255,0,0),"No");
::fire_wnd.AddChild(button1);
::fire_wnd.AddChild(button2);
}
}
but they donot work with each other is there any global thing to read there both local StreamReadInt = stream.ReadInt(), StreamReadString = stream.ReadString();
& local type = stream.ReadString();
local id = stream.ReadInt();
together?
<?xml version="1.0" encoding="ASCII"?>
<vehicle>
<basic>
<type>car</type>
<name>D.R-2</name>
<anims>null</anims>
<comprules>0</comprules>
<!-- below r the extra flags of tank which can fire-->
<extraflags>40</extraflags>
<wheelmodel>237</wheelmodel>
<wheelscale>0.85</wheelscale>
</basic>
<aidata>
<class>executive</class>
<freq>7</freq>
<level>6</level>
</aidata>
<colors>
<carcol>2,2</carcol>
<carcol>11,11</carcol>
<carcol>12,12</carcol>
<carcol>35,35</carcol>
<carcol>36,36</carcol>
</colors>
<audio>
<enginefarsample>274</enginefarsample>
<enginenearsample>10</enginenearsample>
<hornsample>1</hornsample>
<hornfreq>12017</hornfreq>
<sirensample>0</sirensample>
<sirenfreq>9900</sirenfreq>
<doorsounds>1</doorsounds>
</audio>
<handling>
<mass>2500.0</mass>
<percentsubmerged>70</percentsubmerged>
<steeringlock>30.0</steeringlock>
<seatoffset>0.2</seatoffset>
<damagemultiplier>0.0</damagemultiplier>
<value>1000000000</value>
<flags>00004003</flags>
<dimensions>
<x>2.2</x>
<y>5.0</y>
<z>2.3</z>
</dimensions>
<centreofmass>
<x>0.0</x>
<y>0.00</y>
<z>-0.5</z>
</centreofmass>
<traction>
<multiplier>1.50</multiplier>
<loss>1.00</loss>
<bias>0.50</bias>
</traction>
<transmission>
<numofgears>5</numofgears>
<maxspeed>700.0</maxspeed>
<acceleration>50.0</acceleration>
<drivetype>Rear</drivetype>
<enginetype>P</enginetype>
</transmission>
<brakes>
<deceleration>10.0</deceleration>
<bias>0.48</bias>
<abs>0</abs>
</brakes>
<suspension>
<forcelevel>2.3</forcelevel>
<dampening>0.13</dampening>
<upperlimit>0.25</upperlimit>
<lowerlimit>-0.18</lowerlimit>
<bias>0.5</bias>
<antidive>0.0</antidive>
</suspension>
<lights>
<front>1</front>
<rear>1</rear>
</lights>
</handling>
</vehicle>
so can we add other flags too like <extraflags>40</extraflags>
<extraflags>2000</extraflags> // flags of taxi jump
i also tried combining them like this<extraflags>20040</extraflags>
but they donot work only one of em will work like if value 200 is added first before 40 so taxi boost jump will work, if 40 is added before 200 so tank cannon will work , os is there any other possible way to load both flags together<?xml version="1.0" encoding="ASCII"?>
<vehicle>
<basic>
<type>car</type>
<name>Super Police</name>
<anims>null</anims>
<comprules>0</comprules>
<extraflags>0101</extraflags>
<wheelmodel>251</wheelmodel>
<wheelscale>0.700000</wheelscale>
<immunity>0</immunity>
</basic>
<aidata>
<class>ignore</class>
<freq>10</freq>
<level>7</level>
</aidata>
<colors>
<carcol>46,1</carcol>
</colors>
<audio>
<enginefarsample>271</enginefarsample>
<enginenearsample>7</enginenearsample>
<hornsample>1</hornsample>
<hornfreq>10706</hornfreq>
<sirensample>27</sirensample>
<sirenfreq>10511</sirenfreq>
<doorsounds>1</doorsounds>
</audio>
<handling>
<mass>1600.000000</mass>
<percentsubmerged>75</percentsubmerged>
<steeringlock>35.000000</steeringlock>
<seatoffset>0.200000</seatoffset>
<damagemultiplier>0.240000</damagemultiplier>
<value>25000</value>
<flags>00009002</flags>
<dimensions>
<x>2.100000</x>
<y>5.000000</y>
<z>1.600000</z>
</dimensions>
<centreofmass>
<x>0.000000</x>
<y>0.000000</y>
<z>0.150000</z>
</centreofmass>
<traction>
<multiplier>1.050000</multiplier>
<loss>0.780000</loss>
<bias>0.520000</bias>
</traction>
<transmission>
<numofgears>5</numofgears>
<maxspeed>200.000000</maxspeed>
<acceleration>28.000000</acceleration>
<drivetype>4</drivetype>
<enginetype>P</enginetype>
</transmission>
<brakes>
<deceleration>11.100000</deceleration>
<bias>0.530000</bias>
<abs>0</abs>
</brakes>
<suspension>
<forcelevel>2.000000</forcelevel>
<dampening>0.120000</dampening>
<upperlimit>0.280000</upperlimit>
<lowerlimit>-0.170000</lowerlimit>
<bias>0.500000</bias>
<antidive>0.000000</antidive>
</suspension>
<lights>
<front>0</front>
<rear>1</rear>
</lights>
</handling>
<weaponlist>
<weapon>
<type>missile</type>
<model>custom1</model>
<hotkeys>
<dockkey>16,53,53</dockkey>
<moveupkey>16,90,90</moveupkey>
<movedownkey>16,88,88</movedownkey>
<restorekey>16,67,67</restorekey>
<shootkey>16,17,17</shootkey>
</hotkeys>
<missileinfo>
<gravity>off</gravity>
<timeout>500</timeout>
</missileinfo>
<fireoffset>
<x>1.0</x>
<y>0.0</y>
<z>0.2</z>
</fireoffset>
<dockedinfo>
<dockspeed>500</dockspeed>
<position>
<x>0.90</x>
<y>-1.20</y>
<z>-0.05</z>
</position>
<rotation>
<x>3.14</x>
<y>0.00</y>
<z>1.57</z>
</rotation>
</dockedinfo>
<armedinfo>
<movespeed>2000</movespeed>
<middlepos>0.5</middlepos>
<minpos>
<x>1.05</x>
<y>-1.20</y>
<z>0.10</z>
</minpos>
<minrot>
<x>1.57</x>
<y>0.00</y>
<z>2.27</z>
</minrot>
<maxpos>
<x>1.05</x>
<y>-1.20</y>
<z>0.10</z>
</maxpos>
<maxrot>
<x>1.57</x>
<y>0.00</y>
<z>0.87</z>
</maxrot>
</armedinfo>
</weapon>
<weapon>
<type>missile</type>
<model>custom1</model>
<hotkeys>
<dockkey>16,53,53</dockkey>
<moveupkey>16,90,90</moveupkey>
<movedownkey>16,88,88</movedownkey>
<restorekey>16,67,67</restorekey>
<shootkey>16,17,17</shootkey>
</hotkeys>
<missileinfo>
<gravity>off</gravity>
<timeout>500</timeout>
</missileinfo>
<fireoffset>
<x>1.0</x>
<y>0.0</y>
<z>0.2</z>
</fireoffset>
<dockedinfo>
<dockspeed>500</dockspeed>
<position>
<x>-0.90</x>
<y>-1.20</y>
<z>-0.05</z>
</position>
<rotation>
<x>3.14</x>
<y>0.0</y>
<z>1.57</z>
</rotation>
</dockedinfo>
<armedinfo>
<movespeed>2000</movespeed>
<middlepos>0.5</middlepos>
<minpos>
<x>-1.05</x>
<y>-1.20</y>
<z>0.10</z>
</minpos>
<minrot>
<x>-1.57</x>
<y>0.00</y>
<z>0.87</z>
</minrot>
<maxpos>
<x>-1.05</x>
<y>-1.20</y>
<z>0.10</z>
</maxpos>
<maxrot>
<x>-1.57</x>
<y>0.00</y>
<z>2.27</z>
</maxrot>
</armedinfo>
</weapon>
<weapon>
<type>machinegun</type>
<model>m4</model>
<hotkeys>
<dockkey>0,0,0</dockkey>
<moveupkey>0,0,0</moveupkey>
<movedownkey>0,0,0</movedownkey>
<restorekey>0,0,0</restorekey>
<shootkey>17,90,90</shootkey>
</hotkeys>
<fireoffset>
<x>0.5</x>
<y>0.0</y>
<z>0.2</z>
</fireoffset>
<armedinfo>
<movespeed>0</movespeed>
<middlepos>0.5</middlepos>
<minpos>
<x>-0.7</x>
<y>1.5</y>
<z>0.05</z>
</minpos>
<minrot>
<x>-1.57</x>
<y>0.0</y>
<z>1.57</z>
</minrot>
</armedinfo>
</weapon>
<weapon>
<type>machinegun</type>
<model>m4</model>
<hotkeys>
<dockkey>0,0,0</dockkey>
<moveupkey>0,0,0</moveupkey>
<movedownkey>0,0,0</movedownkey>
<restorekey>0,0,0</restorekey>
<shootkey>17,90,90</shootkey>
</hotkeys>
<fireoffset>
<x>0.5</x>
<y>0.0</y>
<z>0.2</z>
</fireoffset>
<armedinfo>
<movespeed>0</movespeed>
<middlepos>0.5</middlepos>
<minpos>
<x>0.7</x>
<y>1.5</y>
<z>0.05</z>
</minpos>
<minrot>
<x>1.57</x>
<y>0.0</y>
<z>1.57</z>
</minrot>
</armedinfo>
</weapon>
</weaponlist>
<specials>
<emlights>
<alwayson>false</alwayson>
<colourone>255,0,0</colourone>
<colourtwo>0,0,255</colourtwo>
<posleft>
<x>-0.7</x>
<y>-0.4</y>
<z>1.0</z>
</posleft>
<posright>
<x>0.7</x>
<y>-0.4</y>
<z>1.0</z>
</posright>
</emlights>
</specials>
</vehicle>
[/noae] bcz i founded it here https://www.gtagarage.com/mods/show.php?id=23159