Jocker-dan Posted December 21, 2012 Share Posted December 21, 2012 بسم الله الرحمن الرحيم كود منع السلآح function givePlayerWeapons ( thePlayer, commandName, source, commandName, weaponID ) local weaponSlot = getSlotFromWeapon ( weaponID ) setPedWeaponSlot ( thePlayer, math.random ( 1, 33) ) end addCommandHandler ( "giveweapons", givePlayerWeapons ) addCommandHandler ( "getWeaponSlot", outputWeaponSlot ) وش الغلط ؟ Link to comment
Bhrany-danger Posted December 21, 2012 Share Posted December 21, 2012 أإسستخذم ذأ الكود افضضل WeaponID = { [31] = true, [36] = true, [38] = true, } addEventHandler ( 'onPlayerWeaponSwitch', getRootElement ( ), function ( previousWeaponID, currentWeaponID ) if ( WeaponID[currentWeaponID] ) then toggleControl ( source, 'fire', false ) else toggleControl ( source, 'fire', true ) end end ) Link to comment
Jocker-dan Posted December 21, 2012 Author Share Posted December 21, 2012 شكراً وجاري التجرربة Link to comment
Bhrany-danger Posted December 21, 2012 Share Posted December 21, 2012 العفو + ذا الككود يخلي السسلآإح ماإ يططلق Link to comment
Jocker-dan Posted December 21, 2012 Author Share Posted December 21, 2012 كفووو صح كلامك ما يطلق ومشكور 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