Jump to content

MR.S3D

Members
  • Posts

    732
  • Joined

  • Last visited

Everything posted by MR.S3D

  1. guiSetProperty(mainGUI["checkbox"],"NormalTextColour","FFFF7F00") FF is the main FF7F00 color code without #
  2. local barrier = nil function consoleCreateObject ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) local rx,ry,rz = getElementRotation ( thePlayer ) barrier = createObject ( 981, x + 10, y, z, rx, ry, rz ) if ( barrier ) then else end end end addCommandHandler ( "b", consoleCreateObject ) if you need destroy just use if isElement(barrier) then destroyElement(barrier) barrier = nil end
  3. guiSetProperty(mainGUI["checkbox"][i],"NormalTextColour","FFFF7F00")
  4. I written the exact name but it doesn't work. With color codes? Maybe he used without color code
  5. try with this Server addCommandHandler("givemoney", function(player, cmd, quantita, soldi) local soldi = tonumber(soldi) local quantita = findPlayerByName(tostring(quantita)) if soldi and quantita then givePlayerMoney(quantita, soldi) else outputChatBox("|Uso:| /givemoney [giocatore] [soldi]",player) end end ) function findPlayerByName (playerPart ) local players = getPlayerFromName(playerPart) if ( players ) then return players end local matches = {} for id, players in ipairs ( getElementsByType ( "player" ) ) do if ( string.find ( string.upper ( getPlayerName ( players ) ), string.upper ( playerPart ), 1, true ) ) then table.insert(matches,players) end end if #matches == 0 then return false elseif #matches == 1 then return matches[1] else return false end end
  6. Does not have a problem Make sure other Function or use this to above visibility replace this showCursor(false) then put this showCursor(not isCursorShowing())
  7. ايه نفس المشكلة والمتصفح ذا دايم ارد منه أكيد المشكلة من المنتدى جرب رد على موضوع من القسم الرئيسي ~ شغال الرد لكن هنا في الأقسام الجديدة مايرد
  8. ايه نفس المشكلة والمتصفح ذا دايم ارد منه أكيد المشكلة من المنتدى
  9. طلال نفس اللي دايم ارد منه وش تغير؟
  10. ما اقدر رد حط اقتباس ويرد غريبه وش الحل؟ حتى انا مدري لية أنت نفس المشلكة؟ انا يفتح معي صندوق الرد لكن لما ارد مايطلع شي
  11. ما اقدر رد حط اقتباس ويرد غريبه وش الحل؟
  12. أهلين لما أجي أعلق على اي موضوع مايرد معاي الرد خربان ولكن اذا حطيت اقتباس يرد هل المشكلة عندي بس أو من الأقسام الجديدة؟
  13. اقتراح حلو ض2 شكلك تونسي
  14. showFishignArea = createRadarArea ( 3122.1650390625, -1563.978515625, 300, 300, 0, 255, 255, 100 ) fishingArea = createColRectangle ( 3122.1650390625, -1563.978515625, 300, 300 ) fishingAllowed = nil local fishTimes = { {4000}, {6000}, {8000}, {10000}, {2000}, {12000}, } local fishAmount = { {3}, {4}, {5}, {6}, {7}, } function unpackTimes() return unpack(fishTimes[math.random(#fishTimes)]) end function unpackAmounts() return unpack(fishAmount[math.random(#fishAmount)]) end addCommandHandler ( "fish", function(player) --Required Arguments player local timer = unpackTimes() --if (getElementData(player, "class") == "Fisherman") then if (fishingAllowed) then setPedAnimation ( player, "SWORD", "sword_part") payTimer = setTimer( payPlayer, timer, 0 ,player) end end ) addCommandHandler ( "stopfish", function(player) ---Required Arguments player setPedAnimation(player,false) if isTimer(payTimer) then killTimer(payTimer) payTimer = nil end end ) function payPlayer(player) --- here element player local amount = unpackAmounts() givePlayerMoney( player, amount ) resetTimer ( payTimer ) --- I think this is unnecessary end addEventHandler ( "onColShapeHit", fishingArea, function( thePlayer ) if getElementType ( thePlayer ) == "player" then fishingAllowed = true end end ) addEventHandler ( "onColShapeLeave", fishingArea, function( thePlayer ) if getElementType ( thePlayer ) == "player" then fishingAllowed = false end end )
  15. MR.S3D

    1 Question

    I'm not the OP, but is it possible to add new ones? I really do not know that there was a possibility of adding a new Because I have never experience this thing
  16. MR.S3D

    1 Question

    You can not change the animations
  17. واذا كان يبيها في وسط الشاشه local scrX,scrY = guiGetScreenSize() window = guiCreateWindow( ... ) local w,h = guiGetSize (window,false) local x,y = (scrX-w)/2,(scrY-h)/2 guiSetPosition (window,x,y,false)
  18. شوف كودي اللي فوق تغير lfet و top مكتوب رقم 2 يعني يكون في وسط الشاشة انت تغير الرقم مثلا تحط 3 وراح تشوفه وين راح معك وتحط عرض النافذة او الصورة + طولها
  19. هذا الكود يضبط يوسط لك النافذة والصورة على حسب حجم شاشتك local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 350, 350 left = screenWidth/2-mainWidth/2 top = screenHeight/2-mainHeight/2 window = guiCreateWindow( left, top, mainWidth, mainHeight, "MY Window", false ) mainWidth,mainHeight = 350, 350 mainWidth العرض ,mainHeight الطول left يسار او يمين top فوق او تحت
  20. MR.S3D

    MTA Market

    Good luck and nice job
  21. لا زي حرب العصابات ----------------------------------------------------------------------------- جراند العرب هي حرب العصابات ولا ؟ المهم ابيها زي حرب العصابات لاهنت تقدر ؟ اقدر اسويه لك لكن بمقابل اذا موافق راسلني عالخاص
×
×
  • Create New...