Jump to content

TheGrimReaper

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by TheGrimReaper

  1. Odyssey Freeroam [English Freeroam Server] IP: mtasa://51.68.190.72:22003 We are yet here again with another Free-roam Server Fitting your Needs. With New Dogfight system, Weapon system, Turf System and Damage System we try to offer you the smoothest game-play even on low end PC's. The scripts are carefully optimized to reduce lag and increase FPS. Since we are now in Beta, we Provide a free VIP for Players Who register into our server. VIP have the ability to Spawn specific vehicles and use different Types of Vehicles which normal players wont be able to use. Depending on your Requests we may add new features considering the importance of it to the server. We are also recruiting new staff depending on your capability as a leader. We have our own custom Crew system which allows players to manage their crew in a wide range of ways. Each crew can have their own specific vehicle skin and weapon skin which only the cew members can use. We have Custom Download Manager so that you don't have to spend hours waiting to play the server. To join the server you need maximum 23 MB download. The rest is downloaded while you enjoy your game-play. All features are Under maintenance so we would love it if you could let us know of any bugs within the features. Thank you From Odyssey Team
  2. There are a lot of Tunable car mods out there and i tried replacing the models in my server .. the upgrades work just fine but some parts are textureless ( places where there is no car color ) it looks like a car when texture isnt loaded // but the thing is ... custom upgrade models doesn't have any textures any ideas on how i can fix this?
  3. @Mr.Loki last question , sorry for this , i know this might be a bit annoying, is there a way which i can make the script trigger just once for each player , right now when u hit with double missles u get dual kills , and also when rammed by another hydra the player dies and again sorry for so many questions
  4. thanks to u both @Mr.Loki the script kills the attacker too the script works as i wanted to but it kills attacker and hydra doesnt blow
  5. well we do have a hosted server , if u wish we can test it there or u can just provide me with a untested script as an example and i could try to figure it out if there are any mistakes
  6. thanks alot bro , appreciate your help @Galactix i have tried that man but no difference can u show me in script form if possible
  7. -- client explosiveWeaponIDS = { [ 51 ] = true, [ 19 ] = true, [ 50 ] = true, } function check(attacker, weapon) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if theVehicle then local id = getElementModel ( theVehicle ) if id = 520 then triggerServerEvent ( "onVehicleKill", resourceRoot, attacker ) else end end addEventHandler ( "onClientVehicleDamage", root, check ) -- server function killPlaya(attacker) local hisVehicle = getPedOccupiedVehicle(source) killPed(source, attacker, 49) blowVehicle(hisVehicle) end addEvent( "onVehicleKill", true ) addEventHandler( "onVehicleKill", root, killPlaya ) hello , i am working on a script in which destroys hydra from one hit and and get the right kill mesaage , can someone tell me whats wrong and sorry if there are mistakes , i am new to scripting
  8. -- server function check ( attacker, weapon, bodypart, loss ) if ( weapon == 49 ) then killPed ( source, attacker, weapon, bodypart, false ) end end addEventHandler ( "onPlayerDamage", getRootElement (), check ) yes bro i figured out later , and i wrote this more optimized code but thanks for the help man , it was helpful too
  9. -- client function check( attacker, weapon ) local theVehicle = getPedOccupiedVehicle ( getLocalPlayer ) if getElementType ( weapon ) == "Rammed" then triggerServerEvent ( "kill", resourceRoot, attacker ) else end end addEventHandler("onPlayerDamage"", root, check) -- server function kill(attacker) outputChatBox("Collided.", source) killPed(source, attacker) end addEvent( "kill", true ) addEventHandler( "kill", resourceRoot, kill ) -- Bound to this resource only, saves on CPU usage. addCommandHandler("col", kill )-- this is just to test the kill Hi i am trying to make a script that kills player instantly when hit by a car, can anyone pls help me out nevermind my mistake xDDDDD topic close
  10. local level = 0 function render (player, level) level = getElementData player, "LEVEL") or 0 dxDrawText("level ".. level, 110 - 1, 717 - 1, 381 - 1, 754 - 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 + 1, 717 - 1, 381 + 1, 754 - 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 - 1, 717 + 1, 381 - 1, 754 + 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 + 1, 717 + 1, 381 + 1, 754 + 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110, 717, 381, 754, tocolor(255, 255, 255, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, render) can someone pls tell me whats wrong with this script pls and yes i am a bit new to scripting in lua
  11. Well on Chat it used to show when the play changed his name, But when i add the cancel event function , its just doesnt show on chat but the player can change his or her name i used this addEventHandler('onPlayerChangeNick', getRootElement(), function() cancelEvent() end )
  12. i did but it just stops the nick change dialog from showing nun else
  13. @Patrick2562 is there a way that i can stop the guest from changing his nick??
  14. tag = "Radio off" -- Channel Name local change = -1 -- Channel ID -- Turns off Default SA Radio function noRadio() setRadioChannel(0) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function() cancelEvent() end ) end -- Changing radio Stations, And checks which radio station is on ( it keeps adding to 0 , if channel is 0 then its means Radio is Off ) function change() -- Checks If Radio Was Off And Moves To Channel 1 if change == 0 then change = 1 play1() else change2() end end function change2() -- Checks If Radio Channel was 1 and moves To 2 if change == 1 then change = 2 play2() else change3() end end function change3() -- Checks If Radio Channel was 2 and moves To 3 if change == 2 then change = 3 play3() else change4() end end function change4() -- Checks If Radio Channel was 3 and moves To 0 if change == 3 then change = -1 -- Resets Channel Back to 0 play4() else if change == -1 then play5() end end end function change5() -- Checks If Radio Channel was 3 and moves To 0 if change == -1 then change = 1 -- Resets Channel Back to 0 play() else end end addEvent( "change", true ) addEventHandler( "change", localPlayer, change ) -- Channels For the Radio -- Radio Off function play() tag = "Radio Off" local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) for i, element in ipairs(attachedElements) do destroyElement(element) end tag() end addEvent( "r0", true ) addEventHandler( "r0", localPlayer, play1 ) -- Channel 1 function play1() tag = "HipHop" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) for i, element in ipairs(attachedElements) do destroyElement(element) end sound = playSound3D( "http://us3.internet-radio.com:8313/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) end addEvent( "r1", true ) addEventHandler( "r1", localPlayer, play1 ) -- Channel 2 function play2() tag = "Metal" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) for i, element in ipairs(attachedElements) do destroyElement(element) end sound = playSound3D( "http://188.40.32.140:8061/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) tag() end addEvent( "r2", true ) addEventHandler( "r2", localPlayer, play2 ) -- Channel 3 function play3() tag = "Pop" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) for i, element in ipairs(attachedElements) do destroyElement(element) end sound = playSound3D( "http://uk7.internet-radio.com:8040/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) tag() end addEvent( "r3", true ) addEventHandler( "r3", localPlayer, play3 ) -- Channel 4 function play4() tag = "Dubstep" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) destroyElement(attachedElements) sound = playSound3D( "http://83.142.226.45:25700/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) tag() -- Suppose to Use OnClientRender Here But As Im not Working On the Test Anymore I just Called the function So that I will know Channel Changed. end addEvent( "r4", true ) addEventHandler( "r4", localPlayer, play4 ) -- Channel Name Display function tag() dxDrawText(tag, 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) end there you go @Pirulax , lets see if u can help me
  15. local tag = -1 addEventHandler('onPlayerJoin', root, local tag = tag + 1 function(oldNick, newNick) name = getPlayerName(source) setPlayerName ( source, "Guest_".. tag ) end ) addEventHandler('onPlayerLogin', root, function () setPlayerName ( source, name ) end ) any idea how to make this work , i want to change the player name into guest_*** if he or she hasnt logged in , and when logged in i want the name to be changed back to name they joined from
  16. ty but will its work when the sound element is attached to more than one vehicle?? ill just post my script here. the problem with it is that when i use stop sound it stops the sound from all vehicles , so i need to get the element from the player vehicle itself so i will just get the sound element on his car. and destroy it to stop the first radio and so on. -- client tag = off local change = 0 function noRadio() setRadioChannel(0) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function() cancelEvent() end ) end function change() if change == 0 then change = 1 play1() else change2() end end function change2() if change == 1 then change = 2 play2() else change3() end end function change3() if change == 2 then change = 3 play3() else change4() end end function change4() if change == 3 then change = 0 play4() else change = 0 change() end end addEvent( "change", true ) addEventHandler( "change", localPlayer, change ) function play() noRadio() outputChatBox("Radio off!!" ) local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local off = getAttachedElements ( vehicle ) destroyElement(off) end addEvent( "play", true ) addEventHandler( "play", localPlayer, play ) function play1() tag = "Hi-Roam HipHop" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) destroyElement(attachedElements) sound = playSound3D( "http://us3.internet-radio.com:8313/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) dxDrawText("Hi-Roam HipHop", 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) end addEvent( "r1", true ) addEventHandler( "r1", localPlayer, play1 ) function play2() tag = "Hi-Roam Metal" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) destroyElement(attachedElements) sound = playSound3D( "http://188.40.32.140:8061/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) dxDrawText("Hi-Roam Metal", 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) tag() end addEvent( "r2", true ) addEventHandler( "r2", localPlayer, play2 ) function play3() tag = "Hi-Roam Pop" noRadio() local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) destroyElement(attachedElements) dxDrawText("Hi-Roam Pop", 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) sound = playSound3D( "http://uk7.internet-radio.com:8040/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) tag() end addEvent( "r3", true ) addEventHandler( "r3", localPlayer, play3 ) function play4() tag = "Hi-Roam Dubstep" noRadio() channel = dxDrawText("Hi-Roam Dubstep", 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) local attachedElements = getAttachedElements ( vehicle ) destroyElement(attachedElements) sound = playSound3D( "http://83.142.226.45:25700/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) tag() end addEvent( "r4", true ) addEventHandler( "r4", localPlayer, play4 ) function tag() dxDrawText("Hi-Roam Pop", 492, 10, 907, 61, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", true, false, false, false, false) end ignore the function tag() , i didnt clean up this script so it has a lot of useless stuff. so this is how it looks like and from the server side i just call the client side function "change" and dependiing on the number it scrolls through , but the sound doesnt stop at all . and yeah i am not much of a good coder so pls help me out
  17. is it possible to get an element from a table by type , for example when i get attached elements to my car , i attached a sound element to my car. but get attached elements returns all the attached elements in to a table ( as i know) , is there a way to get the sound element from the table ???
  18. nevermind i got it , i had to get attached elements and destroy the sound element Close topic note : there is a copy pasting error in the off function :V ,
  19. function noRadio() setRadioChannel(0) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function() cancelEvent() end ) end function off() stopSound(sound) noRadio() play1() end addEvent( "off", true ) addEventHandler( "off", localPlayer, play ) function play1() noRadio() stopSound(sound) outputChatBox("Radio 1!!" ) local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "http://us3.internet-radio.com:8313/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) end addEvent( "r1", true ) addEventHandler( "r1", localPlayer, play1 ) function play2() noRadio() stopSound(sound) outputChatBox("Radio 2" ) local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "http://188.40.32.140:8061/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) end addEvent( "r2", true ) addEventHandler( "r2", localPlayer, play2 ) function play3() noRadio() stopSound(sound) outputChatBox("Radio 3") local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "http://uk7.internet-radio.com:8040/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) end addEvent( "r3", true ) addEventHandler( "r3", localPlayer, play3 ) function play4() noRadio() stopSound(sound) outputChatBox("Radio 4!!" ) local vehicle = getPedOccupiedVehicle(getLocalPlayer( )) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "http://83.142.226.45:25700/listen.pls", x, y, z) setSoundMaxDistance( sound,50 ) attachElements ( sound, vehicle) end addEvent( "r4", true ) addEventHandler( "r4", localPlayer, play4 ) how can i stop sound only for me without stopping others sound?? like when i switch radio station it stops "sound" which stops everyones
×
×
  • Create New...