Professional Posted February 20, 2015 Share Posted February 20, 2015 السلام عليكم ابي بس واحد يدخل منطقه معينه انا احط حجمها بل كول شيب بس ابي انه بس يدخل تنسحب منه سياره ول سلاح طبعا السلاح يرجع بس يطلع اما سياره لا Link to comment
Professional Posted February 20, 2015 Author Share Posted February 20, 2015 كذا يعمل ؟ col = createColSphere(x, y, z, fRadius) function onJoin () takeWeapon( thePlayer, 2 ) takeWeapon( thePlayer, 3 ) takeWeapon( thePlayer, 4 ) takeWeapon( thePlayer, 5 ) takeWeapon( thePlayer, 6 ) takeWeapon( thePlayer, 7 ) takeWeapon( thePlayer, 8 ) takeWeapon( thePlayer, 9 ) takeWeapon( thePlayer, 22 ) takeWeapon( thePlayer, 23 ) takeWeapon( thePlayer, 24 ) takeWeapon( thePlayer, 25 ) takeWeapon( thePlayer, 26 ) takeWeapon( thePlayer, 27 ) takeWeapon( thePlayer, 28 ) takeWeapon( thePlayer, 29 ) takeWeapon( thePlayer, 30 ) takeWeapon( thePlayer, 31 ) takeWeapon( thePlayer, 33 ) takeWeapon( thePlayer, 34 ) takeWeapon( thePlayer, 35 ) takeWeapon( thePlayer, 36 ) takeWeapon( thePlayer, 37 ) takeWeapon( thePlayer, 38 ) takeWeapon( thePlayer, 16 ) takeWeapon( thePlayer, 17 ) takeWeapon( thePlayer, 18 ) takeWeapon( thePlayer, 39 ) takeWeapon( thePlayer, 41 ) takeWeapon( thePlayer, 42 ) takeWeapon( thePlayer, 43) takeWeapon( thePlayer, 10 ) takeWeapon( thePlayer, 11 ) takeWeapon( thePlayer, 12 ) takeWeapon( thePlayer, 14 ) takeWeapon( thePlayer, 15 ) takeWeapon( thePlayer, 44 ) takeWeapon( thePlayer, 45 ) takeWeapon( thePlayer, 46 ) takeWeapon( thePlayer, 40 ) outputChatBox ( "تم اخفاء جميع اسلحتك بسبب دخولك منطقه محميه ", source, 255, 255, 255 ) else outputChatBox ( "!!! ", source, 255, 255, 255 ) end end end Link to comment
jafar Posted February 20, 2015 Share Posted February 20, 2015 "onPlayerWeaponSwitch" "onColShapeHit" takeAllWeapons Link to comment
Professional Posted February 20, 2015 Author Share Posted February 20, 2015 WeaponID = { [31] = true, [36] = true, [38] = true, } function ( currentWeaponID ) if ( WeaponID[currentWeaponID] ) then col = createColSphere(x, y, z, fRadius) takeAllWeapons(source) addEventHandler ( 'onPlayerWeaponSwitch', getRootElement ( ), end end ) Link to comment
Max+ Posted February 24, 2015 Share Posted February 24, 2015 WeaponID = { [31] = true, [36] = true, [38] = true, } function ( currentWeaponID ) if ( WeaponID[currentWeaponID] ) then col = createColSphere(x, y, z, fRadius) takeAllWeapons(source) addEventHandler ( 'onPlayerWeaponSwitch', getRootElement ( ), end end ) انت حايس امها الافنت لحاله والفنكشن لحاله 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