TheGrimReaper

Members
  • Content Count

    35
  • Joined

  • Last visited

Community Reputation

1 Neutral

About TheGrimReaper

  • Rank
    Rat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. TheGrimReaper

    One hit Kill when hydra attacks other hydra

    okai thanks man , ill try it now
  2. TheGrimReaper

    One hit Kill when hydra attacks other hydra

    @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
  3. TheGrimReaper

    One hit Kill when hydra attacks other hydra

    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
  4. TheGrimReaper

    One hit Kill when hydra attacks other hydra

    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
  5. TheGrimReaper

    One hit Kill when hydra attacks other hydra

    thanks alot bro , appreciate your help @Galactix i have tried that man but no difference can u show me in script form if possible
  6. -- 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
  7. TheGrimReaper

    Kill player when Rammed by a car

    -- 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
  8. TheGrimReaper

    Kill player when Rammed by a car

    -- 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
  9. TheGrimReaper

    [help] Display Player Account data

    thnx
  10. TheGrimReaper

    [help] Display Player Account data

    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. TheGrimReaper

    Join As Guest , Nick Name

    thnx
  12. TheGrimReaper

    Join As Guest , Nick Name

    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 )
  13. TheGrimReaper

    Join As Guest , Nick Name

    i did but it just stops the nick change dialog from showing nun else
  14. TheGrimReaper

    Join As Guest , Nick Name

    @Patrick2562 is there a way that i can stop the guest from changing his nick??
  15. TheGrimReaper

    [HELP] Get element from a Table?

    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