Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ahmed Ly

  1. العفو
  2. source
  3. "onPlayerWasted" getPlayerName outputChatBox
  4. isElement stopSound
  5. addEventHandler("onClientRender", root, function () name = getPlayerName(localPlayer) dxDrawRectangle(0, 740, 1366, 28, tocolor(0, 0, 0, 254), false) dxDrawRectangle(0, 0, 1366, 28, tocolor(0, 0, 0, 254), false) dxDrawText("Name : "..name.."", 10, 0, 202, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false,true, false) dxDrawText("Money : ", 10, 740, 202, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("IP : ", 286, 0, 478, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Serial : ", 659, 0, 851, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Account Neam : ", 960, 0, 1152, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("FPS : 0", 1252, -2, 1309, 29, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Ping : 0", 1309, -2, 1366, 29, tocolor(157, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Team : ", 289, 740, 481, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Skin : ", 683, 740, 875, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Players : ", 1020, 740, 1212, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) end )
  6. Ahmed Ly

    [Help]

    thank you bro
  7. Ahmed Ly

    [Help]

    hello guys how can i make translate. Arabic To English for Example if i put in memo "ا" translated to "A" Code ; translations = { ["A"] = "ا" , ["B"] = "ب" } window = guiCreateWindow(262, 164, 590, 357, "", false) guiWindowSetSizable(window, false) guiSetVisible(window,false) English = guiCreateMemo(14, 44, 215, 176, "", false, window) Arabic = guiCreateMemo(370, 44, 211, 176, "", false, window) addEventHandler("onClientGUIChanged",root, function () if source == Arabic then local selectedLanguage = guiGetText(Arabic) guiSetText(English, translations[selectedLanguage]['A']) end end ) function open () if guiGetVisible(window) == false then guiSetVisible(window,true) showCursor(true) else guiSetVisible(window,false) showCursor(false) end end bindKey("F6","down",open)
  8. كفوو واصل
  9. executeSQLQuery getPlayerSerial getElementData setElementData guiSetVisible
  10. use this functions in server side not in client side
  11. txt = "" function setClipboard (texts) txt = texts end function isClipboard () if txt ~= "" then return true else return false end end function getClipboard () return txt end -- Example addCommandHandler("qq", function (cmd,...) if arg ~= "" then local w = table.concat({...}, " ") setClipboard(w) outputChatBox("Done "..w.."") end end ) addCommandHandler("dd", function () if isClipboard () then outputChatBox(""..getClipboard().."") else outputChatBox("error") end end )
  12. Ahmed Ly

    [help]

    code Doesn't work but i fixed it thank you Nexus™
  13. Ahmed Ly

    [help]

    now i have new question how check if the player put link or not in edit Box i Use function string.find or no ??
  14. Ahmed Ly

    [help]

    thank you so much
  15. Ahmed Ly

    [help]

    thank you but how i can get time of sound to put it in setTimer
  16. Ahmed Ly

    [help]

    hello guys I want music moving with the Progress bar and ended up being the Progress has become 100 code --- Client addEventHandler ( "onClientGUIClick",root, function () if source == button1 then link = guiGetText(editBox) triggerServerEvent("start",localPlayer,link) end end ) soundPosition = 0 function timer () soundPosition = soundPosition + 1 guiProgressBarSetProgress(progressbar,soundPosition) if soundPosition == 100 then soundPosition = 0 end end addEvent("p",true) addEventHandler("p",root, function (link) if isElement(sound1) then stopSound(sound1) end sound1 = playSound(""..link.."",false) setTimer(timer,3000,1) end ) -- Server addEvent("start",true) addEventHandler("start",root, function (link) triggerClientEvent(root,"p",root,link) end )
  17. addEventHandler ( "onMarkerHit", c2 , function (hitElement) if hitElement == localPlayer then guiSetVisible ( w1 , true ) showCursor( true ) outputChatBox ( "حارس الحدود : تفضل أخوي ماذا تريد ؟ هل تريد عبور الحدود ؟",hitElement,255,255,255, true ) end end )
  18. --Server addEventHandler("onPlayerJoin",root, function () setElementData(source,"Serial",getPlayerSerial(source)) end ) addEventHandler("onResourceStart",root, function () for _,v in ipairs ( getElementsByType ( "player" ) ) do setElementData(v,"Serial",getPlayerSerial(v)) end end ) -- Client guiSetText(GUIEditor.label[5], "Serial : "..getElementData(localPlayer,"Serial").."")
  19. -- Server addEventHandler ( "onPlayerWasted", root, function ( _, attacker ) if ( attacker and attacker ~= source and isElement ( attacker ) ) then if getElementData ( attacker , 'kills' ) >= 25 or getElementData ( attacker , 'kills' ) >= 21 or getElementData (attacker , 'kills') >= 32 then outputChatBox("#00FFFF[Packges System]#DC143CYou Get packge Silver", attacker, 255, 0, 0,true) triggerClientEvent(attacker,"123",attacker) end end end ) --- Client addEvent("123",true) addEventHandler("123",root, function () addEventHandler("onClientRender", root, showOnSpawnS) Sound = playSound("sound.mp3",false) setTimer(function() guiSetEnabled (openPack,true) removeEventHandler("onClientRender", root, showOnSpawnS) triggerServerEvent('remove_packges', localPlayer) end,10000,1) end )
  20. for _, plr in pairs(getPlayersInTeam(gang)) do local account = getPlayerAccount(plr) if account then
  21. x,y,z = getElementPosition(localPlayer) export["freecam"]:setFreecamEnabled(x,y,z)
×
×
  • Create New...