-
Posts
1,429 -
Joined
-
Last visited
Everything posted by EH10
-
اإنا قلت شي ؟ ماتبي نعدل كودك , بكيفك
-
أإطرح الـكود كـأإمل ,
-
الله يـهديك يـقدر , يعدلة وأنا أعطيتة الكـود , . وعدلت اشياء .
-
# By The Best Edit EH10 . #Client . addEventHandler('onClientGUIClick',root,function () local row, col = guiGridListGetSelectedItem(GridList) local name = guiGridListGetItemText(GridList,row,1) local EH10 = guiGridListGetItemText(GridList,row,2) if ( source == Button ) then local plr = guiGetText(GridList) local add = guiGetText(GridList) triggerServerEvent('Save',localPlayer, plr,add) end end ) addEvent ( 'AddDataName', true ) addEventHandler ( 'AddDataName', root,function (plr,add) local row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( , row, 1,tostring ( plr ), false, false ) guiGridListSetItemText ( GridList, row, 2,tostring ( add ), false, false ) end ) addEvent ( 'AddName', true ) addEventHandler ( 'AddName', root,function ( onClientSqlList ) guiGridListClear ( GridList ) for _, v in ipairs ( onClientSqlList ) do local row = guiGridListAddRow ( GridList ) guiGridListSetItemText (GridList, row, 1, tostring ( v.plr ), false, false ) guiGridListSetItemText (GridList, row, 2, tostring ( v.add ), false, false ) end end ) #Server . addEventHandler ( 'onResourceStart', resourceRoot,function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS `AddSystem` (add,plr)" ) outputDebugString("SQL Data Base Started!",0,0,255,0,0) end ) function setSQL_Data ( add , plr) return executeSQLQuery ( "INSERT INTO `AddSystem` ( `add`, `plr` ) VALUES ( ?,? )", tostring(add),tostring(plr) ) end function SelectFromSql ( ) local data = executeSQLQuery ( "SELECT * FROM `AddSystem`" ) if ( type ( data ) == "table" and #data == 0) or not data then return { } else return data; end end function UpDateListInSql ( element ) if ( not isElement ( element ) ) then return; end local Upsql = SelectFromSql ( ) triggerClientEvent ( element, "AddName", element, Upsql ) end addEvent ( 'Save', true ) addEventHandler ( 'Save', root,function (add,plr) setSQL_Data (add,plr) triggerClientEvent ( root, "AddDataName", root,add,plr ) end ) addEvent ( 'Refresh', true ) addEventHandler ( 'Refresh', root,function ( ) UpDateListInSql ( source ) end )
-
من الاساس اصلا مو المفروض ترد انت المفروض يرد صاحب الكلمه الي كتبها في حال انك عرفت معناها , ممكن تقول مو تجي تستهبل محنا اطفال أول مـرهه أسمعها , وشفت الوضع متعكر قلت خلني الطفة .
-
الـسلامم عليكم ورحمة الله وبـركأإتـة , أبدا كـ الـتـالي , مـقدمة , بـ البرمجة : Wiki https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 ,UAEpro الدرس , الأول , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77002 الدرس الثاني , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77174 الدرس الـثالث , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77256 الدرس الرابـع, https://forum.multitheftauto.com/viewtopic.php?f=164&t=77585 الـدرس الخامس , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77754 الـدرس الـسادس , https://forum.multitheftauto.com/viewtopic.php?f=164&t=77951 . شـروحـات ,. EH10 , شـرح البرمجـة , https://forum.multitheftauto.com/viewtopic.php?f=164&t=74130 , xX|KeMo|Xx شـرح مـهم للـبرمجة https://forum.multitheftauto.com/viewtopic.php?f=164&t=67453 شـرح مـختصر , لـ سـينـتاكس , ٍSyntax : https://forum.multitheftauto.com/viewtopic.php?f=164&t=50863 , شـرح الـترايـقر ,AboShanab . Max+ مـن كلنت لـ سيرفر , https://forum.multitheftauto.com/viewtopic.php?f=164&t=59342 مـن سـيرفر لـكلنت , https://forum.multitheftauto.com/viewtopic.php?f=164&t=57769 وأإنـصحك للا تتعود على الـجاهـز , . فـي أمـان الله , ( # )
-
^ أما , يـعني م ـضنيتك غـبي أنا قـلت لـك أستهبل ,
-
أستهبل معك , شفيك زعلت .
-
هاذي كلمة أجنبية , جديدة يعني انتبة لارستخك , أي لامحطك .
-
قـصدك , إذا دخلت الماركر , يجي ماركر ثاني , واذا دخلتة يرجع الماركر الأول بغير مكان , . ويستمر كذا ؟
-
الـكود عبارة عن خربيط فاضية , أمزحح . انـت وش تبي تسوي ,#
-
بـ التوفيق , صراحة سكربت رائع . .
-
حـيأإك الله ,
-
يدخل الأوبجكت داخل اللسيارة ولا يلصقة ؟
-
الـكـود خربيط , وش تبي تسوي أنت ؟
-
, جـرب * إذا تبي بـ سلاح محدد , سوي تحقق , وعرفها , if ( weapon == id ) then #Client . local Marker = createMarker( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) addEventHandler("onClientPlayerWeaponFire", localPlayer, function () if isElementWithinMarker(localPlayer, Marker) then triggerServerEvent("Event", localPlayer) end end ) #Server . addEvent("Event", true) addEventHandler("Event", root, function () createObject( id, x, y, z ) end )
-
, رحنا فيها ياحضي .
-
# function . createMarker isElementWithinMarker getWeaponAmmo createObject
-
الـعـفو , لأإكن لـو تـفيد الأعضاء وتطرح الـكود غيرك بيستفيد #
-
وضح , قـصدك زي الأإعـلان يجي من اليسار لليمين ويرجع مـرة أخرى ويستمر ؟
-
, جـرب * - Client Side # MarkerPanalnag = createMarker(-1628.9000244141, -2247, 30.5, "cylinder", 1.5, 255, 255, 255, 0 ) createBlipAttachedTo ( MarkerPanalnag, 56 ) createObject ( 2387, -1628.9000244141, -2247, 30.5, 0, 0, 274 ) createObject ( 341, -1628.8000488281, -2246.1999511719, 30.39999961853, 20, 292, 0 ) Window = guiCreateWindow(311,145,228,305,"",false) guiSetVisible(Window, false) Gridlist = guiCreateGridList(9,25,210,227,false,Window) guiGridListSetSelectionMode(Gridlist,2) guiGridListAddColumn(Gridlist, "Number", 0.5) guiGridListAddColumn(Gridlist, "Skin", 0.5) Skin = guiCreateButton(65,255,95,19,"اخـتيار",false,Window) Close = guiCreateButton(81,275,66,26,"الـغـاء",false,Window) local Skins = { {'79', 79 } } for i, skin in ipairs( Skins ) do row = guiGridListAddRow(Gridlist) guiGridListSetItemText(Gridlist, row, 1, skin[1], false, false) guiGridListSetItemData(Gridlist, row, 1, skin[2]) end function joinTeamnag() if ( source == Skin ) then local Row, column = guiGridListGetSelectedItem ( Gridlist ) if ( Row and column and Row ~= -1 and column ~= -1 ) then local selct = tonumber( guiGridListGetItemData( Gridlist, guiGridListGetSelectedItem( Gridlist ) ) ) if selct and selct ~= '' then setElementModel ( localPlayer, selct ) triggerServerEvent("khashab",localPlayer) guiSetVisible(Window, false) showCursor(false) end end end end addEventHandler("onClientGUIClick", Skin , joinTeamnag, false) function SAPDjobnag(hitElement) setElementData ( localPlayer, "ownskin", getElementModel (localPlayer) ) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(Window) then guiSetVisible(Window, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", MarkerPanalnag, SAPDjobnag) function removeSAPDWindownag() guiSetVisible(Window, false) showCursor(false) setElementModel(localPlayer, getElementData(localPlayer, "ownskin")) end addEventHandler("onClientGUIClick", Close , removeSAPDWindownag, false)
-
, جـرب كـذأإ * local Admin = "Console" addCommandHandler('Console', function (player) if getElementType (player) == "player" then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup(Admin)) then outputChatBox ("* [ أهـلا وسـهلا بـك ] .", player, 255, 160, 0) setElementPosition ( player, 8, 4, 3 ) else outputChatBox ("* [ مـمـنوع الـدخول غـير الأدمن ] .", player, 255, 0, 0) killPed(player) end end end )