Jump to content

ططلب تعديل


SmoKing

Recommended Posts

السلام عليكم

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

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

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

لو تقدرون في اسرع وقت ممكن :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
Link to comment

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

الا يطلع

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 ) 

Link to comment
addEventHandler ( 'onPlayerWasted', getRootElement ( ), 
    function ( ) 
        local x, y, z = getElementPosition ( source ) 
        createExplosion ( x, y, z, 0, source ) 
    end 
) 

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

Edited by Guest
Link to comment

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

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

Link to comment

client

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

meta

    

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

حط ذاه كلنت

getElementPosition ( source ) 

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

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