Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. source? what version? by theway, what was fixed?
  2. أولاً ياحبيبي ماقلت لنا الأرور ذا يجي أول ماتضغط على أسم السيرفر أو يجي بعد ما تدخل السيرفر بوقت قصير؟ يعني يكون التحميل معلق مثلاً؟ جربت تحذف أم تي اي و تعيد التثبيت؟ ماهو الأصدار؟
  3. TAPL

    getZoneName

    This event can't be canceled you need to disable fire toggleControl("fire",false) function onClientPlayerWeaponFireFun(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) local x,y,z = getElementPosition(source) if getZoneName(tonumber(x),tonumber(y),tonumber(z),true) == "San Fierro" then toggleControl("fire",false) else toggleControl("fire",true) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFun ) also use bindKey better function xxx() local x,y,z = getElementPosition(localPlayer) if getZoneName(tonumber(x),tonumber(y),tonumber(z),true) == "San Fierro" then toggleControl("fire",false) else toggleControl("fire",true) end end bindKey("fire", "down", xxx)
  4. https://community.multitheftauto.com/ind ... ls&id=2082 https://community.multitheftauto.com/ind ... ails&id=54 https://community.multitheftauto.com/ind ... ls&id=2484
  5. blacklist and people names? hahaha funny You just put a mess code that make no sense and totally wrong.
  6. maybe use timer? model = 3095 elevador1E = createObject(model, 140.3994140625, 1930.7998046875, 17.799999237061) elevador2E = createObject(model, 137.7998046875, 1930.69921875, 17.799999237061) elevador3E = createObject(model, 128.7998046875, 1930.69921875, 17.799999237061) marker1 = createMarker(133.97859191895, 1916.5592041016, 18, "cylinder", 4, 255, 255, 255, 30) elevador6 = createObject(model, 129.19921875, 1917.5, 17.60000038147) elevador5 = createObject(model, 137, 1917.5, 17.60000038147) elevador4 = createObject(model, 140.69921875, 1917.3994140625, 17.60000038147) function mover(hitPlayer) if (hitPlayer == localPlayer) then moveObject(elevador6, 5000, 129.19921875, 1917.5, 25) moveObject(elevador5, 5000, 137, 1917.5, 25) moveObject(elevador4, 5000, 140.69921875, 1917.3994140625, 25) setTimer(moveObject,5000,1,elevador6, 5000, 129.19921875, 1930.7998046875, 25) setTimer(moveObject,5000,1,elevador5, 5000, 137, 1930.7998046875, 25) setTimer(moveObject,5000,1,elevador4, 5000, 140.69921875, 1930.7998046875, 25) end end addEventHandler("onClientMarkerHit", marker1, mover)
  7. what is this? it's just mess code.
  8. function repair1_Button (state) local lp = getLocalPlayer() if state == "left" then if source == GUIEditor_Button[1] then if tonumber(getElementData(lp, "Money")) >= 50 then takePlayerMoney ( 50 ) setElementData(lp, "Repair", tonumber(getElementData(lp,"Repair") or 0) + 1) outputChatBox ("Du hast Dir ein Auto Repair gekauft!", 0, 255, 0 ) else outputChatBox ( "Du hast nicht genug Geld - Ein Auto Repair kostet 50$", 255, 0, 0 ) end end end end addEventHandler("onClientGUIClick", getRootElement(), repair1_Button)
  9. try function resStart() local result = mysql:query_fetch_assoc("SELECT value FROM settings WHERE name='globalsupplies' LIMIT 1") globalSupplies = tonumber(result[1]["value"]) end addEventHandler("onResourceStart",resourceRoot, resStart)
  10. عن طريق الوظيفة ذي تقدر مثلاً تزيد الدمج للسلاح أو تزيد المدى أو حتى تزيد عدد الطلقات مثلاً المسدس 7 طلقات تقدر تسويها مثلاً 500 تقدر تسوي اللاعب يحمل سلاحين uzi أو يطلق و هو يمشي مثلاً بأم4 زي السلاح ...وفي أشياء كثير أكتشفها بنفسك https://wiki.multitheftauto.com/wiki/SetWeaponProperty
  11. what error? there no error i test it and it's work.
  12. local Marker = createMarker ( 1007.4000244141, -2302.6999511719, 12.10000038147, "cylinder", 1.29999995, 255, 0, 0, 255 ) addEventHandler('onClientMarkerHit', Marker, function (hitPlayer) if (hitPlayer == localPlayer) then guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(502,268,480,290,"Buy Ticket",false) GUIEditor_Image[1] = guiCreateStaticImage(240,20,229,261,"images/space.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(9,251,91,30,"Buy Ticket",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(155,251,69,30,"Exit",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(15,20,219,221,"=====|PlanetsTrip|=====\nWelcome to the\" Planets trip\", the moon trip is wonderful trip full of mystery stuff and nice gravitation,You'll find the absolute fun but try to find fun enough \nbecause time is only 10 minutes you will find above signs should find it in different areas, each one under 5k have a nice time\n====|Tickets|====\nMoon 50,000$\nMars 64,000$\nVenus 54,000$\nSaturn 75,000$\nMercury 35,000$=====|PlanetsTrip|====",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false)
  13. addEventHandler ( "robbergui", root, robbergui ) function buttonClick () if ( source == button ) then triggerServerEvent( "onRobberAccept", localPlayer) elseif ( source == close ) then guiSetVisible (windowrobber, false) showCursor (false) end end addEventHandler ( "onClientGUIClick", getRootElement(), buttonClick )
  14. 1- https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup 2- weapon.dat حسب علمي لا توجد طريقة لأستبدال ملف تقدر تغير بخصائص الأسلحة عن طريق الوظيفة ذي https://wiki.multitheftauto.com/wiki/SetWeaponProperty
  15. I've told you about the errors in your code, now you should fix it and if it doesn't work post it .
  16. This local model = getElementID(element) should be local model = getElementModel(element) and this if element == 584 then should be if model == 584 then and here you didn't put dataName -_-" local who = getElementData(element) also here 'own' is player name not element -_-" local he = getPlayerFromName(own) local givemoney = math.random(400, 700) outputChatBox("you got " .. givemoney .. " $") givePlayerMoney(own, givemoney) setElementData(own, "Cangetnew", true) also the type here if element == "Vehicle" then should be if element == "vehicle" then https://wiki.multitheftauto.com/wiki/Element/Vehicle
  17. stolen https://community.multitheftauto.com/ind ... ls&id=4816 original https://community.multitheftauto.com/ind ... ls&id=2562
  18. also you should use getVehicleModelFromName Instead of getElementModel
  19. thevehicle is not defined
  20. function OnPlayerIsDamaged(attacker,_,_,loss) local PlayerWantedLevel = getPlayerWantedLevel(source) local AttackerTeam = getPlayerTeam(attacker) if PlayerWantedLevel == 0 then if AttackerTeam == getTeamFromName("Police") then setElementHealth(source, getElementHealth(source) + loss) setElementHealth(attacker, getElementHealth(attacker) - 20) outputChatBox("Don't shot unwanted players or you will lose health!", attacker, 255, 0, 0) end end end addEventHandler("onPlayerDamage", root, OnPlayerIsDamaged) addEventHandler("onResourceStart", resourceRoot, function() outputChatBox("#FF0000Harm Script Made By : #00FF00Hussein", root, 255, 255, 255, true) end)
  21. local cont = 0 local count = dbPoll(dbQuery(SQLconnect, "SELECT * FROM players"),-1) if count and type(count) == 'table' then for i, v in ipairs(count) do cont = cont +1 end outputChatBox(cont) end
  22. Try local count = dbPoll(dbQuery(SQLconnect, "SELECT * FROM players"),-1) if count and type(count) == 'table' then outputChatBox(#count["id"]) end end
  23. what wrong in this? you have 1 row or you have more? lol
  24. TAPL

    Help

    it's should work are sure you're not using it server-side? did you try debugscript 3 ?
×
×
  • Create New...