mr.3mmar Posted November 17, 2012 Share Posted November 17, 2012 السلام عليكم ابغى كود سوبر ديقل و كود سوبر سنايبر Link to comment
TAPL Posted November 17, 2012 Share Posted November 17, 2012 ايش السوبر ديقل و ايش السوبر سنايبر؟ Link to comment
Bhrany-danger Posted November 17, 2012 Share Posted November 17, 2012 سسسوبر Deagle addEventHandler("onPlayerDamage",root, function(i,w) if (w == 24) then killPed(source,i,w) end end) --- super sniper addEventHandler("onPlayerDamage",root, function(i,w) if (w == 34) then killPed(source,i,w) end end) Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 ابغى المسدس على طلقات الخلاط وسوبر سنايبر ابغاه مثل سوبر ام4 Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 سسسوبر Deagle addEventHandler("onPlayerDamage",root, function(i,w) if (w == 24) then killPed(source,i,w) end end) --- super sniper addEventHandler("onPlayerDamage",root, function(i,w) if (w == 34) then killPed(source,i,w) end end) اخوي مافهمتك Link to comment
Bhrany-danger Posted November 17, 2012 Share Posted November 17, 2012 انت تقصد انه اول ما يطلق رصاص من السلاح على شخص يموت من اول طلقة صح ؟ Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 انت تقصد انه اول ما يطلق رصاص من السلاح على شخص يموت من اول طلقة صح ؟ ايه Link to comment
Bhrany-danger Posted November 17, 2012 Share Posted November 17, 2012 يـب هذا هو الكود Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 يـب هذا هو الكود مني فاهم الكود Link to comment
3NAD Posted November 17, 2012 Share Posted November 17, 2012 ID = رقم السلاح addEventHandler ( "onPlayerDamage", root, function ( Attacker, Weapon ) if ( Weapon == ID ) then killPed ( source, Attacker, Weapon ) end end ) Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 ID = رقم السلاح addEventHandler ( "onPlayerDamage", root, function ( Attacker, Weapon ) if ( Weapon == ID ) then killPed ( source, Attacker, Weapon ) end end ) جاري التجربه Link to comment
mr.3mmar Posted November 17, 2012 Author Share Posted November 17, 2012 اخوي الكود مو شغال Link to comment
Baseplate Posted November 17, 2012 Share Posted November 17, 2012 addEventHandler ( "onPlayerDamage", root, function ( attacker, weapon, bodypart, loss ) if ( weapon == 24 ) then killPed ( source, attacker, weapon ) end end ) Link to comment
nony Posted November 18, 2012 Share Posted November 18, 2012 جربت الكود شغال بس انا حاط اخذ الفلوس سيرفر وذا الكود سيرفر اول شي اسوي تريقر من كلنت لسيرفر ويتأكد اذا معه فلوس بعدين كيف اسوي تريقر من نفس سيرفر لـٍسيرفر Link to comment
Baseplate Posted November 18, 2012 Share Posted November 18, 2012 addEvent addEventHandler triggerEvent Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 ذا للديقل setWeaponProperty(24,"pro","maximum_clip_ammo",500) و ذا للسنيبر setWeaponProperty(34,"pro","maximum_clip_ammo",500) Link to comment
mr.3mmar Posted November 18, 2012 Author Share Posted November 18, 2012 ذا للديقل setWeaponProperty(24,"pro","maximum_clip_ammo",500) و ذا للسنيبر setWeaponProperty(34,"pro","maximum_clip_ammo",500) اخوي طلال اشتغل الكود لكن قصدي مو مايعشق قصدي انه بطلقه واحده يموت Link to comment
TAPL Posted November 18, 2012 Share Posted November 18, 2012 -- Server Side -- addEventHandler("onPlayerDamage", root, function(attacker, weapon) if (weapon == 24) and getElementData(attacker, "HaveSuperDeagle") then killPed(source, attacker, weapon) elseif (weapon == 34) and getElementData(attacker, "HaveSuperSniper") then killPed(source, attacker, weapon) end end) *** طريقة الأستخدام *** لتفعيل السوبر ديجل لـ لاعب معين setElementData(player, "HaveSuperDeagle", true) لألغاء السوبر ديجل لـ لاعب معين setElementData(player, "HaveSuperDeagle", false) ============ لتفعيل السوبر سنايبر لـ لاعب معين setElementData(player, "HaveSuperSniper", true) لألغاء السوبر سنايبر لـ لاعب معين setElementData(player, "HaveSuperSniper", false) *** مثال *** -- ديجل -- addCommandHandler("dg", function(player) if not getElementData(player, "HaveSuperDeagle") then setElementData(player, "HaveSuperDeagle", true) else setElementData(player, "HaveSuperDeagle", false) end end) -- سنايبر -- addCommandHandler("sn", function(player) if not getElementData(player, "HaveSuperSniper") then setElementData(player, "HaveSuperSniper", true) else setElementData(player, "HaveSuperSniper", false) end end) Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 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