Jump to content

ططلب تعديل


SmoKing

Recommended Posts

Posted (edited)

السلام عليكم

ي شباب انا ابي الكود يخلي الاعب ينفجر ويموت

بس ذا السكربت يموت على طول

ابيه يصير زي انفجار القنبله

لو تقدرون في اسرع وقت ممكن :cry:

function command ( player, command ) 
killPed ( player, player ) 
outputChatBox(""..getPlayerName(player).." :  Player Used /gun Command And Killed !! ", getRootElement(), 255, 255, 0, true) 
end  
addCommandHandler ( "gun", command ) 

وكمان مابيه كلمه ابيه اذا طلقت عليه يموت

Edited by Guest
Posted

ههههههههههههههههه

الا يطلع

function command ( player, command ) 
killPed ( player, player ) 
outputChatBox(""..getPlayerName(player).." :  Player Used /gun Command And Killed !! ", getRootElement(), 255, 255, 0, true) 
end  
addCommandHandler ( "gun", command ) 

Posted
لالا

انا قصدي اذا طلقت عليه وقتلته ينفجر ويموت

بعد ماتذبحه يعيش ولا وش الهرجة ؟

ههههههههههههههههه

Posted
function explosionOnWasted ( ) 
  local pX, pY, pZ = getElementPosition ( source ) 
  createExplosion ( pX, pY, pZ, 6, source ) 
end 
addEventHandler ( "onPlayerWasted", getRootElement(), explosionOnWasted ) 

ماجربته

Posted
استخدم
onPlayerDamage -- لما يصاب الاعب 
getElementPosition -- احضار احداثيات الاعب 
 createExplosion-- صنع انفجار 

هو قصده اذا مات مب لما يصاب الاعب

Posted (edited)
addEventHandler ( 'onPlayerWasted', getRootElement ( ), 
    function ( ) 
        local x, y, z = getElementPosition ( source ) 
        createExplosion ( x, y, z, 0, source ) 
    end 
) 

هب ماشفت ردودكم

Edited by Guest
Posted

طيب ذا كلينت ولا سيرفر

    function explosionOnWasted ( ) 
      local pX, pY, pZ = getElementPosition ( source ) 
      createExplosion ( pX, pY, pZ, 6, source ) 
    end 
    addEventHandler ( "onPlayerWasted", getRootElement(), explosionOnWasted ) 

Posted

يوم حطيته كلينت ماشتغل السكربت

وانا قصدي مايتقشرون لا التيم الي معي ولا التيم الثاني

ولا يجيهم الضربه بس انا انفجر

Posted

-_-

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

حط ذاه كلنت

Posted

client

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

meta

    

Posted
  
addEventHandler ( "onClientPlayerWasted", localPlayer, 
    function ( ) 
        local x, y, z = getElementPosition ( localPlayer ) 
        createExplosion ( x, y, z, 0 ) 
    end 
) 
  

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

حط ذاه كلنت

getElementPosition ( source ) 

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

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