Z-Dash Posted July 18, 2013 Share Posted July 18, 2013 هلا شباب ابي اسوي سكريبت "OnColShapeHit" = Function Function = setPedAnimation الكود runwayped1 = createPed (16, -1344, 418, 7.2, 90) runwayped2 = createPed (16, -1344, 382, 7.2, 90) runwayped3 = createPed (16, -1344, 347, 7.2, 90) run1col = createColCuboid (-1388.8000488281, 420, 5.5, 13.7, 10) function toggleFreeze () setPedFrozen ( runwayped1, true ) setPedFrozen ( runwayped2, true ) setPedFrozen ( runwayped3, true ) end function takeoff1 () setPedAnimation( runwayped1, "ped","ON_LOOKERS", "wave_loop", 4000) end addEventHandler( "onResourceStart", getRootElement(), toggleFreeze ) addEventHandler( "onColShapeHit", run1col, takeoff1) ماعليكم من runwayped2 و runwayped3 للي يجيني بـ كنسل السيرفر Bad argument @ 'createColCuboid" Bad argumrnt @ 'addEventHandler' [Expected element at argument 2, got boolean] Link to comment
فاّرس Posted July 18, 2013 Share Posted July 18, 2013 سطر 6 ناقص ارقومنت, + getRootElement() بتكون اذا اشتغل اي مود , خليها resourceRoot Link to comment
#DRAGON!FIRE Posted July 18, 2013 Share Posted July 18, 2013 ColCuboid Syntax colshape createColCuboid ( float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight ) Arguments fX: The X position of the collision cuboid's western side fY: The Y position of the collision cuboid's southern side fZ: The Z position of the collision cuboid's lowest side fWidth: The collision cuboid's width fDepth: The collision cuboid's depth fHeight: The collision cuboid's height 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