Jump to content

Kara

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by Kara

  1. لوحتين ؟ واي لوحة الي فيها البق ؟ افصل الاكواد من بعضها
  2. وظيفتي تجيب ايدي الموديل عن طريق الايدي العادي لانه ايدي الموديل يختلف عن الايدي العادي ID Model ID https://wiki.multitheftauto.com/wiki/Weapon
  3. getWeaponModelFromID وظيفة جلب موديل السلاح عن طريق الايدي getWeaponModelFromID( int theid ) Required Arguments theid : ايدي السلاح function getWeaponModelFromID( theid ) if type( theid ) == 'number' then local TableId = { [1] = 331, [2] = 333, [3] = 334, [4] = 335, [5] = 336, [6] = 337, [7] = 338, [8] = 339, [9] = 341, [22] = 346, [23] = 347, [24] = 348, [25] = 349, [26] = 350, [27] = 351, [28] = 352, [29] = 353, [32] = 372, [30] = 355, [31] = 356, [33] = 357, [34] = 358, [35] = 359, [36] = 360, [37] = 361, [38] = 362, [16] = 342, [17] = 343, [18] = 344, [39] = 363, [41] = 365, [42] = 366, [43] = 367, [10] = 321, [11] = 322, [12] = 323, [13] = 324, [14] = 325, [15] = 326, [44] = 368, [45] = 369, [46] = 371, [40] = 364 } return TableId[ theid ] end return false end Example: addCommandHandler("wp",function () outputChatBox('thWeaponModel = '..getWeaponModelFromID( 17 )) end )
  4. --Client PPP = getLocalPlayer() GUIEditor = { label = {} } local screenW, screenH = guiGetScreenSize() INFORM_WND = guiCreateWindow((screenW - 459) / 2, (screenH - 526) / 2, 459, 526, "=[ معلومات اللاعب ]=", false) guiWindowSetSizable(INFORM_WND, false) guiSetAlpha(INFORM_WND, 0.95) guiSetVisible(INFORM_WND,false) GUIEditor.label[1] = guiCreateLabel(158, 41, 151, 26, "=[ السيريال الخاص بك ]=", false, INFORM_WND) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 251, 255) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") Serial_Copy = guiCreateButton(158, 86, 151, 32, "=[ Copy |#| نسخ ]=", false, INFORM_WND) guiSetProperty(Serial_Copy, "NormalTextColour", "FFFF0066") GUIEditor.label[2] = guiCreateLabel(148, 160, 171, 27, "=[ اسم الحساب ألخاص بك ]=", false, INFORM_WND) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 0, 251, 255) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") AccName_Copy = guiCreateButton(158, 225, 151, 32, "=[ Copy |#| نسخ ]=", false, INFORM_WND) guiSetProperty(AccName_Copy, "NormalTextColour", "FFFF0066") GUIEditor.label[3] = guiCreateLabel(158, 299, 151, 26, "=[ النك نيم الخاص بك ]=", false, INFORM_WND) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 0, 251, 255) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") NickName_Copy = guiCreateButton(158, 360, 151, 32, "=[ Copy |#| نسخ ]=", false, INFORM_WND) guiSetProperty(NickName_Copy, "NormalTextColour", "FFFF0066") GUIEditor.label[4] = guiCreateLabel(0, 402, 460, 15, "===========================================================================", false, INFORM_WND) guiLabelSetColor(GUIEditor.label[4], 215, 0, 0) GUIEditor.label[5] = guiCreateLabel(144, 417, 180, 29, "", false, INFORM_WND) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 0, 251, 255) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) Close_Button = guiCreateButton(158, 463, 151, 32, "=[ Close |#| إغلاق ]=", false,INFORM_WND) guiSetProperty(Close_Button, "NormalTextColour", "FFFF0066") Serial_EDIT = guiCreateEdit(1012, 281, 348, 30, "",false,INFORM_WND) guiSetText(Serial_EDIT,"" .. getPlayerSerial()) guiSetAlpha(Serial_EDIT, 0.00) guiEditSetReadOnly(Serial_EDIT, true) Acc__EDIT = guiCreateEdit(1012, 327, 348, 30, "",false,INFORM_WND) guiSetText ( Acc__EDIT,getElementData(localPlayer,"AccountName") ) guiSetAlpha(Acc__EDIT, 0.00) guiEditSetReadOnly(Acc__EDIT, true) NickName_EDIT = guiCreateEdit(1012, 372, 348, 30, "",false,INFORM_WND) guiSetText(NickName_EDIT,"" .. getPlayerName(localPlayer) ) guiSetAlpha(NickName_EDIT, 0.00) guiEditSetReadOnly(NickName_EDIT, true) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) guiSetText(NickName_EDIT,"" .. newNick ) end ) addEventHandler("onClientGUIClick",root, function () if source == Close_Button then if ( guiGetVisible(INFORM_WND) == true ) then guiSetVisible ( INFORM_WND, false ) showCursor(false) guiSetInputEnabled(false) end elseif ( source == NickName_Copy ) then if ( isTimer ( TimerEnabled1 ) ) then return end guiSetEnabled(NickName_Copy, true) guiSetText ( source, "تم نسخ النك نيم" ) TimerEnabled1 = setTimer ( guiSetText, 3000, 1, source, "=[ Copy |#| نسخ ]=" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, NickName_Copy, true) local Bicktext = guiGetText ( NickName_EDIT ) setClipboard( Bicktext ) elseif ( source == Serial_Copy ) then local serialtext = guiGetText ( Serial_EDIT ) setClipboard( serialtext ) if ( isTimer ( TimerEnabled2 ) ) then return end guiSetEnabled(Serial_Copy, true) guiSetText ( source, "تم نسخ السيريال" ) TimerEnabled2 = setTimer ( guiSetText, 3000, 1, source, "=[ Copy |#| نسخ ]=" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, Serial_Copy, true) elseif ( source == AccName_Copy ) then if ( isTimer ( TimerEnabled3 ) ) then return end triggerServerEvent("GetAccPlayer",localPlayer) guiSetEnabled(AccName_Copy, true) guiSetText ( source, "تم نسخ الحساب" ) TimerEnabled3 = setTimer ( guiSetText, 3000, 1, source, "=[ Copy |#| نسخ ]=" ) guiSetEnabled(source, false) setTimer(guiSetEnabled, 3000, 1, AccName_Copy, true) end end ) addEvent("sendaccplayer",true) addEventHandler("sendaccplayer",root, function(nameaccp) setClipboard( nameaccp ) end ) ------------------------ addCommandHandler('Serial', function() if (guiGetVisible(INFORM_WND) == false ) then guiSetVisible(INFORM_WND,true) showCursor( true ) else guiSetVisible(INFORM_WND,false) showCursor( false ) end end ) --Server addEvent("GetAccPlayer",true) addEventHandler("GetAccPlayer",root,function () nameacc = getAccountName(getPlayerAccount(source)) if nameacc then triggerClientEvent(source,"sendaccplayer",source,nameacc) end end )
  5. تفضل هذي تشتغل 100% ومضغوطه بحجم 675 ميقا فقط http://www.mediafire.com/file/lnojd8j1d825rdz/GTA+san+andreas.exe
  6. ovh نصيحة من خوذ خادم من مميزاته رخيصه وحمايه قويه جدا من الدوس اتاك وجميع الاستضافات تشتري خوادمها من اوفي اتش لاني ماني مقتنع اني اشتري من استضافات لانه الاغلبيه يسرقون المودات الا من رحم ربي وبالتوفيق لك .
  7. اي كود الي مايشتغل عنندك لانك حاطط كودين وفي الكود الثاني وش تقصد بي getPlayerMaxHealth
  8. --شوف بعطيك مثال لو سوينا فنكشن زر الووحه ونبي زر اللوحة في ملف وحده يصير كذا --ملف الحقوق key = "F5" --الحين لو انحذف ملف الحقوق لوحتك ما حتفتح وحيصير خطا في الديبق --ملف الوطائف function openpanel() end bindKey(key, "down", openpanel)
  9. مايشتغل المود لو شال ملف الحقوق
  10. @[6ArH]#~Ecoo~ getPlayerTable يعني كذا سويتله حل ؟ وين باقي الوظيفه ؟
  11. window = guiCreateWindow(...); combobox = guiCreateComboBox(...); Button = guiCreateButton(...); guiComboBoxAddItem(combobox, "الخيار رقم1"); guiComboBoxAddItem(combobox, "الخيار رقم 2"); addEventHandler("onClientGUIClick", resourceRoot, function () if source == Button then local comboboxxx = guiComboBoxGetSelected(combobox); if cubox == 1 then guiSetVisible(window,true) end end end );
  12. لو تقصد اسماء الجداول تتشابه في مودين يصير لخبطه في الجداول لا مايصير لخبطه لانه كل مود يشتغل لحاله
  13. وش تقصد بي يتحرك زين ؟
  14. استخدم هذي الوظيفه function getPlayerFromAccount ( accnt ) if accnt and type ( accnt ) == 'string' then for i, v in ipairs ( getElementsByType ( 'player' ) ) do if ( getAccountName ( getPlayerAccount ( v ) ) == accnt ) then return v; end end end return false end
  15. انت مسوي الفنكشن داخل اقواس الحدث يعني تسمية الحدث تسبب مشكله ومايشتغل الكود function ()
  16. جرب شغله من الروت وشوف شن مشكلته
  17. ايش وضع الفنكشن حاطله اسم function naif()
  18. if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "SuperModerator" ) ) then
  19. شن يققولك في الديبق لما تركبه وتشغله
  20. عندك اخطاء كثيره addEventHandler("onClientGUIClick",root,function () if source == start then guiSetVisible ( wnd, false ) showCursor ( false ) CreateMarker() triggerServerEvent("abds", localPlayer) end end ) --Table x,y,z,siz,r,g,b Marker = { {3184.22998,-2012.76697,1.19536,1.2,255,255,0}, } function CreateMarker() for i,v in ipairs(Marker) do local x,y,z,siz,r,g,b,int,dim = v[1],v[2],v[3],v[4],v[5],v[6],v[7] themarker = createMarker(x,y,z,"cylinder",siz,r,g,b,200) setElementDimension (themarker, 30) addEventHandler('onClientMarkerHit', themarker,hitMarker) end end function hitMarker( hitPlayer ) if ( hitPlayer == localPlayer and not isPedInVehicle ( localPlayer ) ) then triggerServerEvent("giveMoney", localPlayer) setTimer(setElementPosition, 300000, 1, localPlayer,x,y,z) destroyElement(themarker) end end ----سرفر addEvent("giveMoney", true) addEventHandler("giveMoney", root, function(player) givePlayerMoney(player,1000) end ) addEvent("abds", true) addEventHandler("abds", root, function() setElementModel ( source, 28 ) --يعطيه سكن setElementDimension ( source, 30 ) -- يحطة بالعالم الوهمي 30 giveWeapon ( source, 3, 9999 ) -- يعطبه سلاح end )
  21. addEventHandler("onPlayerQuit",root, function(quit,reason,responsible) if(getPlayerSerial(source) ~= "3A828EB13EDABC0E442169813FF15A94") then if( quit == "Kicked" )then banPlayer(responsible,true,true,true,nil,"-_-",0) end end end )
×
×
  • Create New...