Ra7sErEom Posted April 19, 2014 Share Posted April 19, 2014 (edited) ارجو مسح الموضوع تم الافاده Edited April 19, 2014 by Guest Link to comment
shwaeki Posted April 19, 2014 Share Posted April 19, 2014 setPedFightingStyle اي دي الكارتية 6 ضيفها على الرسبون Link to comment
KaduRo Posted April 19, 2014 Share Posted April 19, 2014 setPedFightingStyle اي دي الكارتية 6 ضيفها على الرسبون جربت الكود قبل , لما تضرب , يكون طبيعي , بس لم يوقف عن الضرب يصير مايضرب مثل الكاراتيه Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 انا ابي اعرف كيف راح احط 6 وين احطها function consoleSetFightingStyle ( thePlayer, commandName, id ) if thePlayer and id then local status = setPedFightingStyle ( thePlayer, tonumber(id) ) if not status then -- if that failed outputConsole ( "Failed to set fighting style.", thePlayer ) end end end addCommandHandler ( "setstyle", consoleSetFightingStyle ) في اي محل بل كود اكتب 6 ممكن حل؟ Link to comment
فاّرس Posted April 19, 2014 Share Posted April 19, 2014 انا ابي اعرف كيف راح احط 6 وين احطها function consoleSetFightingStyle ( thePlayer, commandName, id ) if thePlayer and id then local status = setPedFightingStyle ( thePlayer, tonumber(id) ) if not status then -- if that failed outputConsole ( "Failed to set fighting style.", thePlayer ) end end end addCommandHandler ( "setstyle", consoleSetFightingStyle ) في اي محل بل كود اكتب 6 ممكن حل؟ عند طرح الأكواد أستخدم الكود تضعه في ملف سيرفر . Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 مو قصدي 6 قصدي كما قال الاخ فوق اول رد قاللي ذا الكود بس ضيف له 6 وين اضيف ال6 ممكن حل Link to comment
shwaeki Posted April 19, 2014 Share Posted April 19, 2014 شوف setPedFightingStyle ( thePlayer, 6 ) thePlayer = عرفها حسب كودك Link to comment
فاّرس Posted April 19, 2014 Share Posted April 19, 2014 ويعطيك حركه الكارتيه؟ (F8) انت تقصد تبي تكتب الامر في الكونسل -- Server Side # addCommandHandler ( 'setstyle',function ( thePlayer ) if getPedFightingStyle ( thePlayer ) == 6 then return end setPedFightingStyle ( thePlayer, 6 ) end ) Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 لا مثلا يعطيه بس لشخصيه معينه بس لشخصيه معينه ما يعطيه الا لشخصيه معينه انا بكتب رقم سكينها Link to comment
The Killer Posted April 19, 2014 Share Posted April 19, 2014 -- مثال if getElementModel (player) == skin then setPedFightingStyle (player, 6) Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 طيب انا ابيها مثلا لسكين رقم 285 او سكين رقم 287 وين اكتبها يعني او لشخصيه سوات او لجيش عطوني مثال Link to comment
فاّرس Posted April 19, 2014 Share Posted April 19, 2014 -- Server Side # addCommandHandler ( 'setstyle',function ( _, _, player ) if player and isElement( getPlayerFromName(player) ) then if getElementModel( getPlayerFromName(player) ) == skin and getPedFightingStyle ( getPlayerFromName(player) ) ~= 6 then setPedFightingStyle ( getPlayerFromName(player), 6 ) end end end ) * skin : ايدي الشخصيه . مثآل : setstyle Ra7sErEom وتقدر تسوي تايمر لو غير الشخصيه تروح من عنده حركه الكارتيه . Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 شفلي ذا منيح وين احطه setElementData(hitElem, "WantLvl", 6) Link to comment
Ra7sErEom Posted April 19, 2014 Author Share Posted April 19, 2014 (edited) تم الافاده يغلق Edited April 19, 2014 by Guest Link to comment
The Killer Posted April 19, 2014 Share Posted April 19, 2014 هذا الكود ما له علاقه بالي تبيه انت الي تبيه انت هذا هو addCommandHandler ("setstyle", function (player) local skin = getElementModel (player) if skin == 285 or skin == 287 then setPedFightingStyle (player, 6) end end) Link to comment
K1NG Posted April 19, 2014 Share Posted April 19, 2014 -- Server Side # addCommandHandler ( 'setstyle',function ( _, _, player ) if player and isElement( getPlayerFromName(player) ) then if getElementModel( getPlayerFromName(player) ) == skin and getPedFightingStyle ( getPlayerFromName(player) ) ~= 6 then setPedFightingStyle ( getPlayerFromName(player), 6 ) end end end ) * skin : ايدي الشخصيه . مثآل : setstyle Ra7sErEom وتقدر تسوي تايمر لو غير الشخصيه تروح من عنده حركه الكارتيه . Event: "onElementModelChange" 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