Jump to content

صواريخ


Recommended Posts

كلينت

    billal = getLocalPlayer () 
narotu = getRootElement () 
  
addEvent ( "destroyTrepassor", true ) 
addEventHandler ( "destroyTrepassor", narotu, 
    function () 
         
        X = 15.31 
        Y =  1718.45 
        Z =  25.92 
         
        local isInResArea = getElementData ( billal, "inRestrictedArea" ) 
         
        rotZ = getPlayerRotation ( billal ) 
         
        if isInResArea == "true" then 
            timer = setTimer ( createProjectile, 2500, 0, billal, 20, X, Y, Z, 1.0, billal, 0, 0, rotZ, 0.1, 0.1, 0.1 ) 
        end 
         
    end 
) 
  
addEvent ( "destroyTimers", true ) 
addEventHandler ( "destroyTimers", narotu, 
    function () 
         
        local isInResArea = getElementData ( billal, "inRestrictedArea" ) 
        if isInResArea == "false" then 
            killTimer ( timer ) 
     
        end 
         
    end 
) 

سيرفر

DZ = createColCuboid ( 97.3376, 1800.0384, 15, 250, 280, 120 ) 
createRadarArea(97.3376, 1800,250,280,0,250,0,200) 
function hit ( pla, dim ) 
    if not getElementType ( pla ) == "player" then 
                outputChatBox ( "Welcome", pla, 0, 150, 0 ) 
            else 
                triggerClientEvent ( pla, "destroyTrepassor", pla ) 
                outputChatBox ( "***دخلت منطقة صواريخ***", pla, 255, 0, 0 ) 
                 
            end 
        end 
addEventHandler ( "onColShapeHit", DZ, hit ) 

Link to comment

شكراً لكم

ممكن شرح لهذه الارقمنتات ؟؟

force: float representing the starting force for throwable projectiles.

target: element target used for heat seeking rockets.

rotX, rotY, rotZ: float starting rotation for the projectile.

velX, velY, velZ: float starting velocity for the projectile.

model: Integer representing the projectile's model, uses default model for weaponType if not specified.

Link to comment
شكراً لكم

ممكن شرح لهذه الارقمنتات ؟؟

force: float representing the starting force for throwable projectiles.

target: element target used for heat seeking rockets.

rotX, rotY, rotZ: float starting rotation for the projectile.

velX, velY, velZ: float starting velocity for the projectile.

model: Integer representing the projectile's model, uses default model for weaponType if not specified.

force -- قوة الضربه

target -- الهدف يشتغل بس اذا استخدمت heat seeking rockets.

rotX, rotY, rotZ -- الدوران

velX, velY, velZ: -- السرعه في كل محور

model -- نوع القذيفه

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