Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Dosen't work, No Errors, + My point here: I think this script will only make another marker when you hit the other?, i don't need like that! i need when you hit other marker this marker will work, like if you don't hit another marker and moved on it it will say "You're not ready Yet to join". I hope you understand. No Errors? Why you lying? I'm pretty sure this line will give a clear error in the debug. addEventHandler ( "MarkerAppear, root, marker ) What FaDY-Jo posted doesn't make any sense it's all wrong.
  2. Are you making examples for him? * getElementModel return integer NOT string. * You've used variable accName while you have it defined as hmm.
  3. وعليكم السلام getElementData و بالمرة القادمة حاول تكتب عربي مفهوم او اتجه لقسم اللغة الأنجليزية إذا ما تعرف عربي
  4. TAPL

    Vote redo problem

    addCommandHandler("redo", function(source) if not i then i = 0 end if i >= 4 then outputChatBox("[REDO]: Die Map wird bereits wiederholt!", root,0,125,0) else i = i + 1 end if i == 3 then outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) outputChatBox("[REDO]: Map will be restarted!",root,0,125,0) g_ForcedNextMap = currentMap setTimer(function() i = 0 end, 150*1000,1) elseif i <= 2 then outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) end end)
  5. true? From where did you come with true? This argument must be string. You don't even need 5th argument nor the function itself since moveObject has rotation arguments and it would be much better to use it because it will move smooth. @|xTR|Silver, You used moveObject rotation 271 when the gate close, use it the same way when the gate open but with -271.
  6. ._. اعطاء فلوس مو سحب فلوس
  7. TAPL

    help

    You're welcome.
  8. TAPL

    help

    Copy again.
  9. تصنع هريس؟ إذا ما عندك خبره بالبرمجة لا تحاول تساعد
  10. TAPL

    mechanic script

    What have event onClientPlayerDamage to do with vehicle. This is medic code, it's never going to work with vehicle.
  11. TAPL

    help

    Copy the code again.
  12. TAPL

    help

    addEventHandler("onClientResourceStart",resourceRoot, function() grid = guiCreateGridList(423, 276, 159, 207, false) guiGridListSetSelectionMode(grid,2) guiSetVisible(grid, false) addEventHandler ( "onClientGUIClick", grid, click ) column = guiGridListAddColumn( grid, "Nombre del Jugador", 0.9 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, row, column, getPlayerName ( player ):gsub ( "#%x%x%x%x%x%x", "" ), false, false ) guiGridListSetItemData ( grid, row, column, getPlayerName ( player ) ) end end end) function click () local playerName = guiGridListGetItemData ( grid, guiGridListGetSelectedItem ( grid ), 1 ) guiSetText ( edit, playerName ) end function showPanel1() guiSetVisible(closed, true) guiSetVisible(Reclutar, true) guiSetVisible(Expulsar, true) guiSetVisible(Permisos, true) guiSetVisible(qpermisos, true) guiSetVisible(edit, true) guiSetVisible(grid, true) showCursor(true) playSound("open.ogg") addEventHandler("onClientRender", root, draw1) end addEvent( "showPanel1", true ) addEventHandler ( "showPanel1", getRootElement(), showPanel1) function onGuiClick (button, state, absoluteX, absoluteY) if (source == closed) then guiSetVisible (closed, false) guiSetVisible(closed, false) guiSetVisible(Reclutar, false) guiSetVisible(Expulsar, false) guiSetVisible(Permisos, false) guiSetVisible(qpermisos, false) guiSetVisible(edit, false) guiSetVisible(grid, false) playSound("open.ogg") showCursor (false) elseif (source == qpermisos) then local name = guiGetText ( edit ) local target = getPlayerFromName(name) triggerServerEvent ("remove1", getLocalPlayer(), target) elseif (source == Reclutar) then local name = guiGetText ( edit ) local target = getPlayerFromName(name) triggerServerEvent("Moderator1", getLocalPlayer(), target) playSound("sec.wav",false) elseif (source == Permisos) then local name = guiGetText ( edit ) local target = getPlayerFromName(name) triggerServerEvent("SuperModerator1", getLocalPlayer(), target) playSound("sec.wav",false) elseif (source == Expulsar) then local name = guiGetText ( edit ) local target = getPlayerFromName(name) triggerServerEvent("Admin1", getLocalPlayer(), target) playSound("sec.wav",false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function GetPermission() triggerServerEvent ("OpenPanel1", getLocalPlayer(), OpenPanel1) end function nopsound () playSound("np.mp3",false) end addEvent( "nopsound", true ) addEventHandler ( "nopsound", getRootElement(), nopsound) function removedsound () playSound("removed.wav",false) end addEvent( "removedsound", true ) addEventHandler ( "removedsound", getRootElement(), removedsound) function updateList(old, new) if eventName == "onClientPlayerJoin" then local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, column, getPlayerName(source):gsub("#%x%x%x%x%x%x", ""), false, false) guiGridListSetItemData(grid, row, column, getPlayerName(source)) elseif eventName == "onClientPlayerQuit" then for i=0, guiGridListGetRowCount( grid ) do if guiGridListGetItemText(grid, i, column) == getPlayerName(source):gsub("#%x%x%x%x%x%x", "") then guiGridListRemoveRow(grid, i) end end elseif eventName == "onClientPlayerChangeNick" then for i=0, guiGridListGetRowCount(grid) do if guiGridListGetItemText(grid, i, column) == old:gsub("#%x%x%x%x%x%x", "") then guiGridListSetItemText(grid, i, column, new:gsub("#%x%x%x%x%x%x", ""), false, false) guiGridListSetItemData(grid, i, column, new) end end end end addEventHandler("onClientPlayerJoin", root, updateList) addEventHandler("onClientPlayerQuit", root, updateList) addEventHandler("onClientPlayerChangeNick", root, updateList)
  13. TAPL

    help

    Post your code.
  14. fileDelete should no longer used for the mentioned purpose since cache option in meta is available. https://wiki.multitheftauto.com/wiki/Meta.xml
  15. الخطأ في شرحك تقول إذا قفلت النافذه يموت و الكود الي فوق هذا يمنع الدمج يعني ما ينقص الدم فيه فرق بين يموت و بين ما ينقص دمه
  16. TAPL

    help

  17. Event onPlayerChat doesn't have player parameter, use source instead.
  18. addEvent( 'a', true ) addEventHandler( 'a', root, function( ) if( getPlayerMoney( source ) >= 2 )then if( getElementHealth( source ) < 100 )then takePlayerMoney( source, 2 ) setElementHealth( source, getElementHealth( source ) + 20 ) end else outputChatBox( 'you dont have mony', source, 255, 0, 0 ) end end )
  19. bindKey("اسم الزر", "down", function() guiSetVisible(اسم النافذه, not guiGetVisible(اسم النافذه)) showCursor(guiGetVisible(اسم النافذه)) end) ينقل الى قسم البرمجة
  20. setWorldSpecialPropertyEnabled
  21. TAPL

    Resolution restarting

    This should solve the problem.
  22. Client Side: addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and attacker ~= source and getElementType(attacker) == "player" then cancelEvent() end end)
×
×
  • Create New...