[DooD]Heavyair
Members-
Posts
264 -
Joined
-
Last visited
Everything posted by [DooD]Heavyair
-
sorry to double post but im trying something a little different function createplatform ( player, commandname ) local battleplatform = createObject ( 3885, -734, 956, 11 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local movedup = 737, 955, 46 local movedtoairport = -1410, -5, 41 local moveddown = -1410, -5, 12 moveObject ( battleplatform, 5000, movedup ) setTimer ( moveObject, 7000, 1, ( battleplatform, 35000, movedtoairport ) ) setTimer ( moveObject, 44000, 1, ( battleplatform, 5000, moveddown ) )end i keep getting this error ive been looking at it for a while now and i cant see where im going wrong i think ive got the syntax right going by the wiki but obviously not i have also tried it like this setTimer ( moveObject, 7000, 1, battleplatform, 35000, movedtoairport ) setTimer ( moveObject, 44000, 1, battleplatform, 5000, moveddown ) but i get an error telling me it expects ) near battleplatform Any advice / help appreciated THANX
-
to open ports on the router u need to open your internet browser FIREFOX / INTERNET EXPLORER in the address bar type 192.168.2.1 and press enter that should get u to the router welcome screen just click login or whatever if its blank u should have your WAN IP number and 2 DNS numbers make a note of those now you need to open your local area connection if your on XP it should be START button / control panel / network connections click on properties once u open local area connection and at the bottom of the list in the properties screen select internet protocol TCP/IP and click properties again give yourself an IP address : SUBNET MASK should fill itself in and : GATEWAY IP is 192.168.2.1 DNS server IPs are the ones u made a note of earlier make a note of the ip u give yourself and click OK and OK again now back to the router welcome screen and u need something that looks like this Virtual Server Virtual server settings can be entered here. For detailed information, please see the Belkin Gateway Router user's manual. Private IP Private Port Type Public Port put your ip here 22004 udp 22004 put your ip here 22005 tcp 22005 put your ip here 22127 udp 22127 hope that helps
-
to open ports on the router u need to open your internet browser FIREFOX / INTERNET EXPLORER in the address bar type 192.168.2.1 and press enter that should get u to the router welcome screen just click login or whatever if its blank u should have your WAN IP number and 2 DNS numbers make a note of those now you need to open your local area connection if your on XP it should be START button / control panel / network connections click on properties once u open local area connection and at the bottom of the list in the properties screen select internet protocol TCP/IP and click properties again give yourself an IP address : SUBNET MASK should fill itself in and : GATEWAY IP is 192.168.2.1 DNS server IPs are the ones u made a note of earlier make a note of the ip u give yourself and click OK and OK again now back to the router welcome screen and u need something that looks like this Virtual Server Virtual server settings can be entered here. For detailed information, please see the Belkin Gateway Router user's manual. Private IP Private Port Type Public Port put your ip here 22004 udp 22004 put your ip here 22005 tcp 22005 put your ip here 22127 udp 22127 hope that helps
-
have got it almost working its very difficult to get them to spawn attached but i think its doable if you mess with rotaionZ function truckstopload () local cab1 = createVehicle ( 514, -594, -1081, 24, 0, 0, 150 ) local trailer1 = createVehicle ( 584, -588, -1072, 24, 0, 0, 150 ) attachTrailerToVehicle ( trailer1, cab1 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), truckstopload ) thanx for all the help ACE_GAMIT : 50p : morelli
-
have got it almost working its very difficult to get them to spawn attached but i think its doable if you mess with rotaionZ function truckstopload () local cab1 = createVehicle ( 514, -594, -1081, 24, 0, 0, 150 ) local trailer1 = createVehicle ( 584, -588, -1072, 24, 0, 0, 150 ) attachTrailerToVehicle ( trailer1, cab1 )end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), truckstopload ) thanx for all the help ACE_GAMIT : 50p : morelli
-
have now tried it with a timer but i get a bad argument error on the timer im pretty sure its right going by the wiki function createplatform( player, commandname ) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local east = X + 100 moveObject ( battleplatform, 10000, east, Y, Z ) end setTimer ( platformnorth, 1000, 1 ) function platformnorth () local X1,Y1,Z1 = getElementPosition ( battleplatform ) local north = Y1 + 100 moveObject ( battleplatform, 10000, X1, north, Z1 ) end this seems to be almost there function createplatform( player, commandname ) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local east = X + 100 moveObject ( battleplatform, 10000, east, Y, Z ) setTimer ( ( platformnorth ), 1000, 1 ) end function platformnorth () local X1,Y1,Z1 = getElementPosition ( battleplatform ) local north = Y1 + 100 moveObject ( battleplatform, 10000, X1, north, Z1 ) end but gives me an bad argument error on getElementPosition in the PLATFORMNORTH function and attempt to perform arithmetic on nil value Y1 Got It GOIN function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local movedwest = X + 1000 local movedeast = X - 1000 local movednorth= Y + 1000 local movedsouth= Y - 1000 local X1,Y1,Z1 = getElementPosition ( battleplatform ) moveObject ( battleplatform, 100000, movedwest, Y, Z ) setTimer ( moveObject, 11000, 1, battleplatform , 100000, X1, movednorth, Z1 ) end
-
have now tried it with a timer but i get a bad argument error on the timer im pretty sure its right going by the wiki function createplatform( player, commandname ) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local east = X + 100 moveObject ( battleplatform, 10000, east, Y, Z )end setTimer ( platformnorth, 1000, 1 ) function platformnorth () local X1,Y1,Z1 = getElementPosition ( battleplatform ) local north = Y1 + 100 moveObject ( battleplatform, 10000, X1, north, Z1 )end this seems to be almost there function createplatform( player, commandname ) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local east = X + 100 moveObject ( battleplatform, 10000, east, Y, Z ) setTimer ( ( platformnorth ), 1000, 1 )end function platformnorth () local X1,Y1,Z1 = getElementPosition ( battleplatform ) local north = Y1 + 100 moveObject ( battleplatform, 10000, X1, north, Z1 )end but gives me an bad argument error on getElementPosition in the PLATFORMNORTH function and attempt to perform arithmetic on nil value Y1 Got It GOIN function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local movedwest = X + 1000 local movedeast = X - 1000 local movednorth= Y + 1000 local movedsouth= Y - 1000 local X1,Y1,Z1 = getElementPosition ( battleplatform ) moveObject ( battleplatform, 100000, movedwest, Y, Z ) setTimer ( moveObject, 11000, 1, battleplatform , 100000, X1, movednorth, Z1 ) end
-
have u opened all the ports and such on the router can talk u through it if u need
-
have u opened all the ports and such on the router can talk u through it if u need
-
thank u very much will try it now no errors but no truck either VERY CONFUSING
-
thank u very much will try it now no errors but no truck either VERY CONFUSING
-
i noticed the /> just after i posted the script i did try to use the createObject command before but i had the syntax wrong i keep putting posX and stuff in getting confused with the .MAP file thanx for the help as im getting somewhere now and the object is being created just got to get it movin now ONCE AGAIN THANX LOADS GOT IT GOIN THANX AGAIN function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local moved = X + 10 moveObject ( battleplatform, 1000, moved, Y, Z ) end dont know why i got so confused just went back to the wiki and clicked all of a sudden and special thanxto u XetaQuake i would have been there all day trying to figure out that posX and stuff wasnt needed sorry to be a pain but could anyone give me an idea as to how to move the object in other directions i want it to fly around in a big square ( 1000 east, 1000 north, 1000 west, 1000 south ) i have tried to add to the function but i dont know if i need another function for each movement or if its possible to put all movements into the same function this is what im trying but it ignores the first moveObject command and moves me north but not west function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local movedwest = X + 1000 local movedeast = X - 1000 local movednorth= Y + 1000 local movedsouth= Y - 1000 local X1,Y1,Z1 = getElementPosition ( battleplatform ) moveObject ( battleplatform, 100000, movedwest, Y, Z ) moveObject ( battleplatform, 100000, X1, movednorth, Z1 ) end
-
i noticed the /> just after i posted the script i did try to use the createObject command before but i had the syntax wrong i keep putting posX and stuff in getting confused with the .MAP file thanx for the help as im getting somewhere now and the object is being created just got to get it movin now ONCE AGAIN THANX LOADS GOT IT GOIN THANX AGAIN function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local moved = X + 10 moveObject ( battleplatform, 1000, moved, Y, Z )end dont know why i got so confused just went back to the wiki and clicked all of a sudden and special thanxto u XetaQuake i would have been there all day trying to figure out that posX and stuff wasnt needed sorry to be a pain but could anyone give me an idea as to how to move the object in other directions i want it to fly around in a big square ( 1000 east, 1000 north, 1000 west, 1000 south ) i have tried to add to the function but i dont know if i need another function for each movement or if its possible to put all movements into the same function this is what im trying but it ignores the first moveObject command and moves me north but not west function createplatform( player, commandname) local battleplatform = createObject ( 17512, -704, 942, 78, 0, 0, 0 ) outputChatBox ( "Batlle Platform Is Ready" ) local X,Y,Z = getElementPosition ( battleplatform ) local movedwest = X + 1000 local movedeast = X - 1000 local movednorth= Y + 1000 local movedsouth= Y - 1000 local X1,Y1,Z1 = getElementPosition ( battleplatform ) moveObject ( battleplatform, 100000, movedwest, Y, Z ) moveObject ( battleplatform, 100000, X1, movednorth, Z1 )end
-
hello i have seen a working UFO on KWKSND server and was wondering how u make objects move i had a quick look at setElementVelocity in the wiki and im pretty sure thats what i need but am unsure as to how to do the settings i was thinking that maybe i should set velocity along some coordinates and then set timers to change direction so it moves in a circle but i dont know if thats the right way to go any advice would be appreciated but im not looking for a working script just an idea of how to begin as i have been trying to learn this lua scripting for a few months now and i think im starting to get the idea i want to use objectID : 17512 ( big round building ) as the UFO / floating platform THANX FOR ANY REPLYS EDIT : sorry everyone i have just found move object command in the wiki will post if i get anywhere EDIT : 2 have just tried this function battleplatform ( player, commandname ) local battleplatform = createObject ( 17512, posX="-704.44897460938" posY="942.72790527344" posZ="78.641380310059" rotX="0" rotY="0" rotZ="0"/> outputChatBox ( "Batlle Platform Has Been Launched" ) moveObject ( battleplatform, 10000, posX="-694" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-684" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-694" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-704" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) outputChatBox ( "Battle Platform Is On The Move" ) end but it doesnt seem to do anything / no message to chatbox / no errors in server any ideas where im goin wrong? EDIT : 3 tried simplifying it and doing create and move commands separately but still no message to chatbox and no error in server
-
hello i have seen a working UFO on KWKSND server and was wondering how u make objects move i had a quick look at setElementVelocity in the wiki and im pretty sure thats what i need but am unsure as to how to do the settings i was thinking that maybe i should set velocity along some coordinates and then set timers to change direction so it moves in a circle but i dont know if thats the right way to go any advice would be appreciated but im not looking for a working script just an idea of how to begin as i have been trying to learn this lua scripting for a few months now and i think im starting to get the idea i want to use objectID : 17512 ( big round building ) as the UFO / floating platform THANX FOR ANY REPLYS EDIT : sorry everyone i have just found move object command in the wiki will post if i get anywhere EDIT : 2 have just tried this function battleplatform ( player, commandname ) local battleplatform = createObject ( 17512, posX="-704.44897460938" posY="942.72790527344" posZ="78.641380310059" rotX="0" rotY="0" rotZ="0"/> outputChatBox ( "Batlle Platform Has Been Launched" ) moveObject ( battleplatform, 10000, posX="-694" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-684" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-694" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) moveObject ( battleplatform, 10000, posX="-704" posY="942" posZ="78" rotX="0" rotY="0" rotZ="0" ) outputChatBox ( "Battle Platform Is On The Move" ) end but it doesnt seem to do anything / no message to chatbox / no errors in server any ideas where im goin wrong? EDIT : 3 tried simplifying it and doing create and move commands separately but still no message to chatbox and no error in server
-
sorry but i dont know what VPS and SSH are ive just got a normal router/switch hub so im not sure what u need to do
-
that is absolutely AMAZING thanx for taking the time to put in so much detail if i cant figure it now then i think ill just throw away my pc THANX AGAIN VERCETTI 10 10 This script is to COOL i have got it working and its great much respect to u VERCETTI 10 10
-
if u have a router u do need to open ports but theres quite a lot more to it than that if u do have a router i can explain what u need to do but its a lot of typing so i just wanted to make sure happy to help
-
Thanx for the reply if i manage to figure something out i will try to post it here Thanx again u r a STAR ACE_GAMBIT EDIT : i am a bit confused by this if i try to spawn the trailer with the map file it never appears ( even when spawned with no truck cab ) i can spawn the cab ( linerunner , roadtrain ) fine but there doesnt seem to be a way of creating the trailer until your in the game i have tried writing a function to create cab and trailer then attach them like it says in the wiki but it just messes up the rest of my scripts and doesnt make a truck im pretty sure im doing something wrong but i just dont know what so here is what ive written and if anybody notices any obvious mistakes could u tell me THANX function filltruckstop () local cab1 = ( createVehicle, 514, -476, -489, 25 ) local trailer1 = ( createVehicle, 584, -480, -482, 25 ) attachTrailerToVehicle ( cab1, trailer1 ) end addEventHandler ( onResourceStart, root, filltruckstop ) i have also tried it as a console command but it doesnt do anything EDIT : i have tried to spawn a trailer on its own in the .MAP file but that doesnt seem to work either i thought if i could get the .MAP to spawn the cab and trailer i could then write a function to join them together but it seems the only way to create a trailer is within the game does anyone know if im just being dumb or is this possibly a bug i know im missing the rotation in the function above but i was trying to keep it short and easier to read
-
i have looked at the MTA WIKI but cant find what im looking for i want to spawn an attached truck and trailer with the .MAP file i know how to set car spawn points but am unsure as to how to attach the trailer can it be done and if it can could someone tell me how or link me to the right part of the WIKI if i have just missed it any help appreciated thanx
-
sorry but i am really struggling to understand this scripting stuff im not sure where to set the coordinates for the position of the sam site i want to put it on the air craft carrier in easter bay but i dont seem to be getting anywhere could u possibly show me what i need to change sorry if im wasting your time and theres no need to reply if your busy as im sure ill figure it out eventualy thanx for the help so far vercetti 10 10
-
vercetti 10 10 u ROCK thank u so much
-
the only way to get the game running is with the serial number its built into the installer so u have to create username at MTABETA.com to get it running even on LAN
-
i got help from LIL TOADY he looked up accounts on my ip address and sent me the details
-
http://mtavc.com/dllib/download.php did u download it from here it should just start the installer when u double click it with the serial number problem u need to speak to LIL TOADY he helped me LOADS !! if LIL TOADY has already made u a serail number then u need to use regedit to put the details in My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Multi Theft Auto San Andreas u should already have 2 entries u need to right click select new string value then right click new entry select rename and make 1 called serial and 1 called username then right click and modify username ( put your username in ) then right click and modify serial ( put your serial number in ) run the install again and it should work \ hope thats not confusing but if it is im here most days so i will help if i can
