Jump to content

onPlayerWasted


BorderLine

Recommended Posts

Hi everyone

well i dont know what i need add to give back same weapons before to wasted.

this is my code

addEventHandler( "onPlayerWasted", getRootElement( ), 
    function() 
        local skin = getElementModel(source) 
        local w0 = getPedWeapon (source, 0) 
        local w1 = getPedWeapon (source, 1) 
        local w2 = getPedWeapon (source, 2) 
        local w3 = getPedWeapon (source, 3) 
        local w4 = getPedWeapon (source, 4) 
        local w5 = getPedWeapon (source, 5) 
        local w6 = getPedWeapon (source, 6) 
        local w7 = getPedWeapon (source, 7) 
        local w8 = getPedWeapon (source, 8 ) 
        local w9 = getPedWeapon (source, 9) 
        local w10 = getPedWeapon (source, 10) 
        local w11 = getPedWeapon (source, 11) 
        local w12 = getPedWeapon (source, 12) 
        local a0 = getPedTotalAmmo (source, 0) 
        local a1 = getPedTotalAmmo (source, 1) 
        local a2 = getPedTotalAmmo (source, 2) 
        local a3 = getPedTotalAmmo (source, 3) 
        local a4 = getPedTotalAmmo (source, 4) 
        local a5 = getPedTotalAmmo (source, 5) 
        local a6 = getPedTotalAmmo (source, 6) 
        local a7 = getPedTotalAmmo (source, 7) 
        local a8 = getPedTotalAmmo (source, 8 ) 
        local a9 = getPedTotalAmmo (source, 9) 
        local a10 = getPedTotalAmmo (source, 10) 
        local a11 = getPedTotalAmmo (source, 11) 
        local a12 = getPedTotalAmmo (source, 12) 
        setTimer( spawnPlayer, 5000, 1, source, -343.3, 1544.2, 75.5, 180, skin ) 
        giveWeapon(source, w0, a0, true) 
        giveWeapon(source, w1, a1, true) 
        giveWeapon(source, w2, a2, true) 
        giveWeapon(source, w3, a3, true) 
        giveWeapon(source, w4, a4, true) 
        giveWeapon(source, w5, a5, true) 
        giveWeapon(source, w6, a6, true) 
        giveWeapon(source, w7, a7, true) 
        giveWeapon(source, w8, a8, true) 
        giveWeapon(source, w9, a9, true) 
        giveWeapon(source, w10, a10, true) 
        giveWeapon(source, w11, a11, true) 
        giveWeapon(source, w12, a12, true) 
    end 
) 
  

Like spawn, i must add settimer to weapons?

Edited by Guest
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...