Jump to content

ivor

Members
  • Posts

    575
  • Joined

  • Last visited

About ivor

  • Birthday 22/11/2002

Details

  • Gang
    SRC

Recent Profile Visitors

1,340 profile views

ivor's Achievements

Mack

Mack (28/54)

3

Reputation

  1. -- اعدادات المياة . height = 40 -- ارتفاع المياه SizeVal = 2998 -- منسوب المياه او حجم المياه بالمنطقة الي بتحط احداثياتها -- southWest_X = -SizeVal southWest_Y = -SizeVal southEast_X = SizeVal southEast_Y = -SizeVal northWest_X = -SizeVal northWest_Y = SizeVal northEast_X = SizeVal northEast_Y = SizeVal -- OnClientResourceStart الفنكشن الي يصنع المياه . function thaResourceStarting( ) water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) -- الاحداثيات الموجوده للمكان setWaterLevel ( height ) -- ارتفاع المياه الموجود end addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting) -- مثال رقم2 function thaResourceStarting( ) water = createWater ( 1866 "southWest_X" , -1444 "southWest_Y",10 "southWest_Z", 1968 "southEast_X", -1442 "southEast_Y", 10 "southEast_Z", 1866 "northWest_X", -1372 "northWest_Y", 10 "northWest_Z", 1968 "northEast_X", -1370 "northEast_Y", 10 "northEast_Z" ) setWaterLevel ( water, 20 ) -- ارتفاع منسوب المياة end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) بس عشان لاتخطأ واسهل لك مثال رقم 2 الاشياء الي بالاقواس بعد الارقام هذه للشرح فقط لا اكثر يعني لاتضيفها وانت تبرمج بس حط الاحداثيات بالظبط وخلاص وهذا كود حق الاخ ريان طالب عليه تعديل وسويته له , اعتقد بتفهم من الكود هذا اكثر x1, y1 = 3059, 1063 x2, y2 = 3016, 1063 x3, y3 = 3016, 1092 x4, y4 = 3059, 1092 height = 40 -- ارتفاع المياه function thaResourceStarting( ) water = createWater ( x1,y1,height,x2,y2,height,x3,y3,height,x4,y4,height ) createBlipAttachedTo ( water, 52 ) setWaterLevel ( height ) if water then print("ssssssssssssssssssssssssssss") else print("s") end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) وإتمنى اكون افدتك .
  2. x1, y1 = 3059, 1063 x2, y2 = 3016, 1063 x3, y3 = 3016, 1092 x4, y4 = 3059, 1092 height = 40 -- ارتفاع المياه function thaResourceStarting( ) water = createWater ( x1,y1,height,x2,y2,height,x3,y3,height,x4,y4,height ) createBlipAttachedTo ( water, 52 ) setWaterLevel ( height ) if water then print("ssssssssssssssssssssssssssss") else print("s") end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) جرب هذا .
  3. يب طلعت بالكلينت , وشكرآ لمجهودك الرجاء الاغلاق - تم الحل
  4. مايطلع شي بالشات ولا يعطي فلوس الا لو حطيت قيمة الاكس بي يعطي اكس بي ويطلع بالشات فقط بس لما ما احط قيمة اكس بي يطلع هيك بالدي بق Error: GivePrizes\server.lua:17: attempt to compare nil with number ومايطلع شي بالشات
  5. تم اعطاء اللاعب ivor الجائزة ولكن ماياخذ الفلوس بس ياخذ الاكس بي
  6. مافي اخطاء تطلع بالدي بق .
  7. مايعطي فلوس يوم اضغط ع زر تسليم الجائزة ,
  8. سلام عليكم , الحين انا مسوي هذا الكود يعطي لاعب فلوس عن طريق اسم الحساب ومسويها ع الاكس بي وشغاله انما الفلوس لا .. " بنفس الاكواد "َ هذا الكود + الدي بق مايقول انه في خطأ addEvent("SendGiftMoney", true) addEventHandler("SendGiftMoney", getRootElement(), function(acc, moneyPlayer) local Account = getAccount(acc) local thePlayer = getAccountPlayer (Account) if isElement(thePlayer) then if Account then setElementData(acc, "Money", (getElementData(acc, "Money")) + tonumber(moneyPlayer)) outputChatBox( "["..getPlayerName(thePlayer).."] تم إرسال الجائزة الي اللاعب",source, 100, 255, 100, true) else outputChatBox("* Account did not exist !", source, 255, 0, 0) end end end )
  9. سلام عليكم . . عندي استفسار وهو هل فيه كود يجعل صورة موجوده في لوحة gui تلف 45 درجة عند ضغط الزر ؟
  10. وين الخطأ الي هنا ؟ , اشغل المود ويشتغل والدي بق مايطلع اي اخطاء ! function gmcommand () if getElementData(localPlayer,"HUD",true) then setElementData(localPlayer,"HUD",false) end elseif getElementData(localPlayer,"HUD",false) then setElementData(localPlayer,"HUD",true) end end addCommandHandler ( "showgm", gmcommand ) للتوضيح : - هذا امر اذا يكتبه اللاعب يخفي له الجيو مسج واذا يكتبه ثاني يظهر له الجيو مسج .
  11. سلام عليكم .. ابي استفسر منكم في كم كود مسويهم لمود اذا اشتري لاعب شي من مثلا محل الاسلحه والفلوس الي تروح لمحل الاسلحه تروح للاعب ولكن في مثلا البنك استخدم هذه الاكواد؟ onClientGUIClick getElementData setPlayerMoney
  12. سلام عليكم , الحين انا مسوي جريد ليست وفيها 14 سيارة فيه مثلا سياره منهم ابي اللاعب اذا اخذها مره مايقدر ياخذها الا بعد 4 ساعات حتي لو سوي ريكونكت للعبه او الجهاز انا حاولت اسوويها بس مانفعت
  13. استخدم ذول -------------ServerSide---------------- OnPlayerClick ------------Shared Function----------- setGameSpeed
  14. ivor

    سؤال .

    سلام عليكم كيف اسوي لما اضغط زر من السيرفر يرسل الامر ل executeSQLQuery عشان يطبقها فورا؟ وسؤال ثاني executeSQLQuery وش ابسط شرح لها ؟ وهل ينفع احط فيها اي شي ولا فقط اشياء معينه
×
×
  • Create New...