Ja[B]er[X]Pro Posted May 4, 2016 Share Posted May 4, 2016 السلام عليكم ورحمة الله وبركاته سويت منطقة ابي عندما لاعب يدخلها تلاحقه صواريخ ممكن الفنكشنات؟ Link to comment
billal Posted May 4, 2016 Share Posted May 4, 2016 كلينت 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
Ja[B]er[X]Pro Posted May 4, 2016 Author Share Posted May 4, 2016 شكراً لكم ممكن شرح لهذه الارقمنتات ؟؟ 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
mouamle Posted May 4, 2016 Share Posted May 4, 2016 شكراً لكمممكن شرح لهذه الارقمنتات ؟؟ 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now