Jump to content

ططلب تعديل


SmoKing

Recommended Posts

-_-
addEventHandler ( 'onClientPlayerWasted', getLocalPlayer ( ), 
    function ( ) 
        local x, y, z = getElementPosition ( source ) 
        createExplosion ( x, y, z, 0, true, -1.0, true ) 
    end 
) 

حط ذاه كلنت

getElementPosition ( source ) 

لأنه كلنت getLocalPlayer ( ) المفروض

https://wiki.multitheftauto.com/wiki/OnC ... ayerWasted

The source of this event is the player that died.
Link to comment

-- Server Side --

addEventHandler("onPlayerWasted", root, 
function() 
    local x, y, z = getElementPosition(source) 
    triggerClientEvent(root, "onWasted", root, x, y, z) 
end) 

-- Client Side --

addEvent("onWasted") 
addEventHandler("onWasted", root, 
function(x, y, z) 
    createExplosion(x, y, z, 0, true, -1.0, false) 
end) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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