Mando Posted February 1, 2014 Share Posted February 1, 2014 السلام عليكم بسم الله الرحمن الرحيم اريد اعرف استخدم شو لو ابي اعمل كدا لو في تيم " Robbers" وانا كاتبت open يفتح مركر واذا دخله يجي له لوحة انا بحط اكواد شراء الاسلحة , بس بدي اعرف كيف اخليه لما يشتري الفلوس يروح لللاعب اللي فاتح المركر ؟ Link to comment
Do_De<3 Posted February 1, 2014 Share Posted February 1, 2014 (edited) ! Edited February 1, 2014 by Guest Link to comment
Do_De<3 Posted February 1, 2014 Share Posted February 1, 2014 السلام عليكم بسم الله الرحمن الرحيم اريد اعرف استخدم شو لو ابي اعمل كدا لو في تيم " Robbers" وانا كاتبت open يفتح مركر واذا دخله يجي له لوحة انا بحط اكواد شراء الاسلحة , بس بدي اعرف كيف اخليه لما يشتري الفلوس يروح لللاعب اللي فاتح المركر ؟ Client wnd = guiCreateWindow(198,142,455,261,"[ شوب فنون الهجولة من قبل انكسآر ]",false) war1 = guiCreateButton(35,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war1,"default-bold-small") war3 = guiCreateButton(337,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war3,"default-bold-small") war2 = guiCreateButton(184,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war2,"default-bold-small") guiSetVisible (wnd, false ) _marker = createMarker ( 2008.3304443359, 1167.8548583984, 9.8546875, 'cylinder', 1, r, g, b, a ) Blipp = createBlip ( 2008.3304443359, 1167.8548583984, 9.8546875, 52) setBlipVisibleDistance(Blipp,400) addEventHandler ( 'onClientMarkerHit', _marker, function ( _player ) if _player == localPlayer then guiSetVisible (wnd, true ) showCursor ( true ) --guiSetInputEnabled ( true ) end end ) addEventHandler ( 'onClientGUIClick', root, function () if source == war1 then triggerServerEvent("give1",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) end end ) addEventHandler ( 'onClientGUIClick', root, function () if source == war2 then triggerServerEvent("give2",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) end end ) addEventHandler ( 'onClientGUIClick', root, function () if source == war3 then triggerServerEvent("give3",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) end end ) Server addEvent("give1", true) addEventHandler("give1",root, function () if getPlayerMoney(source) >= 1000 then takePlayerMoney(source, 1000) giveWeapon( source, 31, 200 ) outputChatBox("[sever]: تم شرآء السلآح",255,255,0,true) else outputChatBox("[sever]: مامعك فلوس تكفي لشرآء السلاح",255,255,0,true) end ) addEvent("give2", true) addEventHandler("give2",root, function () if getPlayerMoney(source) >= 1000 then takePlayerMoney(source, 1000) giveWeapon( source, 31, 200 ) outputChatBox("[sever]: تم شرآء السلآح",255,255,0,true) else outputChatBox("[sever]: مامعك فلوس تكفي لشرآء السلاح",255,255,0,true) end ) addEvent("give3", true) addEventHandler("give3",root, function () if getPlayerMoney(source) >= 1000 then takePlayerMoney(source, 1000) giveWeapon( source, 31, 200 ) outputChatBox("[sever]: تم شرآء السلآح",255,255,0,true) else outputChatBox("[sever]: مامعك فلوس تكفي لشرآء السلاح",255,255,0,true) end ) جرب ورد لي خبر : ) Link to comment
The Killer Posted February 1, 2014 Share Posted February 1, 2014 ما اتوقع ان له علاقه بالطلب ! Link to comment
Do_De<3 Posted February 1, 2014 Share Posted February 1, 2014 ما اتوقع ان له علاقه بالطلب ! عطيتتهه مثآل صغنون : ) يقول كيف اخليهه يسحب فلوس الي شرآء من الشوب عن طريق if ( getPlayerMoney(source) >= 50000) then takePlayerMoney(source,50000) Link to comment
The Killer Posted February 1, 2014 Share Posted February 1, 2014 (edited) نصيحه تعلم ترتب الاكواد + حتى لو مثال ما هو قريب منه يصير كذا ! wnd = guiCreateWindow(198,142,455,261,"[ شوب فنون الهجولة من قبل انكسآر ]",false) war1 = guiCreateButton(35,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war1,"default-bold-small") war2 = guiCreateButton(337,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war2,"default-bold-small") war3 = guiCreateButton(184,227,70,22,"[ شرآء ]",false,wnd) guiSetFont(war3,"default-bold-small") guiSetVisible (wnd, false ) function open ( _player ) if _player == localPlayer then guiSetVisible (wnd, true ) showCursor ( true ) guiSetInputEnabled ( true ) end end addCommandHandler("open", function () if marker then destroyElement(marker) marker = nil end local x,y,z = getElementPosition(localPlayer) Blipp = createBlip ( x,y,z) setBlipVisibleDistance(Blipp,400) marker = createMarker ( x,y,z-1, "cylinder", 1.3, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", marker, open) end) addCommandHandler("close", function () removeEventHandler ( "onClientMarkerHit", marker, open) destroyElement(marker) end) addEventHandler ( "onClientGUIClick", root, function () if source == war1 then triggerServerEvent("give1",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) guiSetInputEnabled ( false ) elseif source == war2 then triggerServerEvent("give2",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) guiSetInputEnabled ( false ) elseif source == war3 then triggerServerEvent("give3",localPlayer) guiSetVisible ( wnd, false ) showCursor ( false ) guiSetInputEnabled ( false ) end end ) @ صاحب الموضوع جرب ادخل هنا راح يفيدك viewtopic.php?f=160&t=68538&hilit=&start=15 # Edited February 1, 2014 by Guest Link to comment
Mando Posted February 1, 2014 Author Share Posted February 1, 2014 مشكور شباب لكن ماحد فهمني انا سويت نافذة الحين لكن ابي اخليها اقد اشتري اكتر من سلاح واحد ! روح شوف " دروس البرمجة " هناك انا وش كاتب + انا ابي لما اكون في تيم Robbers اكتب open يفتح مركر + اي شخص يروح للمركر هذه يشتري اسلحة والفلوس تروح للي فاتح المركر بس انا عايز شويا شرح انا مسوي نافذة ابيه لما اضغط ياخد منه فلوس ويعطيه للتاني + اكتر من سلاح يارب تكون فهمتوني شكرآ شباب جدا Link to comment
The Killer Posted February 1, 2014 Share Posted February 1, 2014 viewtopic.php?f=160&t=68538&hilit=&start=15 ! Link to comment
Mando Posted February 1, 2014 Author Share Posted February 1, 2014 انا عملت لوحة اوك ؟ بازرار فيها اسلحة ودخلت قسم الشروحات لقيت شرح عن الاسلحة بس انا ماقدر اعمل غير سلاح واحد انا ازاي اخليه اسلحة كتير ؟؟ ----------- اوك مثلآ لو لوحة خلصت ابيها لما اكون في تيم " Robbers " اكتب open يفتح مركر اي لاعب تاني يروح يفتح له النافذة اللي انا مصممه يقدر منها يشتري السلاح اذا كان معه 8000 من فلوس واشتري سلاح ب 8000 ريال تنساحب منه وتروح للعامل المركر فهمت ؟ Link to comment
The Killer Posted February 1, 2014 Share Posted February 1, 2014 طيب اذا انت دخلت الرابط الي عطيتك فوق راح تلاقي نفس طلبك بالضبط بس هذا درع ودم انت غير الدرع والدم وخليه سلاح وضيف ازرار ما اتوقع انها صعبه # Link to comment
Mando Posted February 1, 2014 Author Share Posted February 1, 2014 مابي حق باين بس انا ابي اكوادددد Link to comment
aL.Kfo Posted February 7, 2014 Share Posted February 7, 2014 يب حق باين فيه مشاكل الاعب لا فتح ماركر يقدر يروح و يخليه لامات الاعب ما يروح الماركر لا فتحت الماركر ما تقدر تقفله لا شريت ما تروح فلوس للبائع Link to comment
Recommended Posts