Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    مشكله

    https://wiki.multitheftauto.com/wiki/GetTeamColor + أستخدم ذا لتحويله من أرقام إلى كود https://wiki.multitheftauto.com/wiki/RGBToHex
  2. TAPL

    مشكله

    لا صح بس خطأ < >
  3. TAPL

    مشكله

    local playerTeam = getTeamName(getPlayerTeam(source)) or "N/A" outputChatBox(name.. " | "..playerTeam.." #ffff00Has Bought #00ffff[Minigun]", root, 255, 0, 0, true)
  4. Not our fault, simply we can't help you to fix it because it compiled and as far as i know there is no newer version than 1.0.3 the Official website for this Game Mode was working from 2 weeks it's was http://mate.unixstorm.org but it's dead again.
  5. وين كودك؟
  6. جرب الكود و أفتح /debugscript 3 و قل لنا إذا فيه أي مشكلة
  7. الأسماء ما يصير تحطها رقم غير إلى أحرف و أنجليزي كمان EDIT الكود بعد التصحيح GUIEditor_TabPanel = {} wnd = guiCreateWindow(0.3814,0.2331,0.1999,0.4974,"مود السيارات",true) guiSetVisible(wnd,false) GUIEditor_TabPanel[1] = guiCreateTabPanel(11,28,253,345,false,wnd) tab3 = guiCreateTab("Tab",GUIEditor_TabPanel[1]) image = guiCreateStaticImage(24,11,224,252,"images/mtalogo.png",false,tab3) button = guiCreateButton(12,294,229,42,"اضغط هنا",false,tab3) bindKey("F2", "down", function() guiSetVisible(wnd, not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) guiSetInputEnabled(guiGetVisible(wnd)) end)
  8. أسدح كودك
  9. إلى أسم النافذة الي عندك GUIEditor_Window[1] غير bindKey("F2", "down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end)
  10. You want delete the blip or hide it? You want the blip deleted/hidden for only who wrote the command or for all players? This for delete addCommandHandler("xxx", function() for i,blip in ipairs(getElementsByType("blip")) do destroyElement(blip) end end) if you want it for only who wrote the command, put it client side. if you want it for all players, put it server side.
  11. شكله الصيام مأثر عليك
  12. الرابط الي أنا حاطه قلت لك شوف ردي مو الموضوع و الآيدي إذا أنت مو فاهم وش سالفه أمه و شلون جا بكودك ========================== أنا نسيت قوس هنا guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID") التصحيح guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) ========================== مو معرف playername و هنا addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) x,y,z = getElementPosition( source ) hunter = createVehicle ( 425, x, y, z ) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end ) التصحيح addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if (getPlayerMoney (source) >= 100) then takePlayerMoney(source, 100) local playername = getPlayerName(source) x,y,z = getElementPosition(source) hunter = createVehicle(425, x, y, z) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff "..playername.." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end) Teteomar و يا عزيزي أرجع أقرأ ردي جيداً مرتين أو ثلاث مرات أو حتى مليون لحتى تفهم و إذا ما فهمت قل لي أفهمك بطريقة أخرى
  13. not understand anything at all the subject say other thing and the topic itself say another thing please explain better.
  14. You're welcome.
  15. بالنسبة لذا الكود ياليت تشوف ردي هنا viewtopic.php?f=119&t=46443#p462794 bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("mrsl6an.wav") end end ) ======================== هنا ناقص قوس بالأخير addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[5] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2])) end end التصحيح addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor_Button[5]) then triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) end end) =============================== و هنا كمان ناقص قوس + addEvent ناقص أضافة إلى أنه ماله معنى أنك مسويه سيرفر و كل ثانية ترقير! addEventHandler("getID",getRootElement(), function(id) if ( id ) then guiSetText ( GUIEditor_Label[15] , tostring(id)) end end التصحيح أحذفه + أحذف الي بالسيرفر setTimer( function () for _,player in ipairs ( getElementsByType("player") ) do local id = getElementData ( player,"ID" ) triggerClientEvent(player,"getID",player, id or "N/A") end end ,1000,0) refreshStats وراح نضيفه بالكود الي تحت مع فنكشن =============================================== ذي الأكواد مليانة أخطاء function refreshStats() if guiGetVisible(GUIEditor_Image[1], true) then GUIEditor_Label[10](GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) else guiSetText(GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------ money label] function refreshStatss() if guiGetVisible(GUIEditor_Image[1], true) then GUIEditor_Label[12](GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) else guiSetText(GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatss) ------------------------------------------------------------------------Name function refreshStatsss() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[5](GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) else guiSetText(GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatsss) ------------------------------------------------------------------------Serial label function refreshStatssss() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[9](GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) else guiSetText(GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatssss) ------------------------------------------------------------------------Skin label function refreshStatsssss() if guiGetVisible(GUIEditor_Image[2],true) then GUIEditor_Label[7](GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) else guiSetText(GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatsssss) التصحيح function refreshStats() if guiGetVisible(GUIEditor_Image[1]) then guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) guiSetText(GUIEditor_Label[9],getPlayerSerial()) guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID") -- تم أضافة كود الآيد هنا end end addEventHandler("onClientRender", root, refreshStats) ======================================================= عندك قوس زيادة في سطر 99 ) التصحيح
  16. local gate = createObject(985, 3112.888671875, -1914.9187011719, 1.8218749761581, 0, 0, -80) local marker = createMarker(3109.8999023438, -1915.0999755859, 1.7999999523163, "cylinder", 1, 255, 255, 255, 140) function moveGate(psource) local Deadusergroup = getAccountName(getPlayerAccount(psource)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Dead")) then moveObject(gate, 5000, 3113, -1921, 2.79999995231635) setTimer(moveBack, 5000, 1) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 5000, 3113, -1915.19921875, 0.80000001192093, 6.1875) end
  17. i was already uploading it for you before viewtopic.php?f=91&t=44850&hilit=+aspect#p449445
  18. really? what the wiki example have to do with this topic?
  19. i think this is what you looking for. function warpplayer() for i,player in ipairs(getElementsByType("player")) do if isElementWithinColShape(player, Bankcol) then setElementPosition(player, 2655, 2706, 411) end end end
  20. addEventHandler("onClientMarkerHit", root), teleport) addEventHandler("onClientMarkerHit", root, teleport)
  21. gui.lua أفتح الملف أبحث عن guiCreateWindow و أستبدلها بـ guiCreateStaticImage إلى أسم الصورة و مكانها wnd.text و غير
  22. As far as i know, it's not possible.
  23. Your button names is GUIEditor_Window but you are using GUIEditorButton in functions guiSetVisible. and spawnPlayer in line 21 and 50 is Server-only function. and outputChatBox in Client does not require argument visibleTo.
  24. Mostly, your server IP is the Host.
  25. TAPL

    [HELP]Timer

    and you need getTimerDetails to get the remaining time and draw it i recommend Text functions as it available server side. https://wiki.multitheftauto.com/wiki/Ser ... _functions
×
×
  • Create New...