Snakegold

Members
  • Content Count

    96
  • Joined

  • Last visited

Community Reputation

6 Neutral

About Snakegold

  • Rank
    Punk-@ss B*tch

Details

  • Gang
    Avalan
  • Location
    Guengla
  • Occupation
    Nothing
  • Interests
    KWE

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. شكرا اشتغل ممكن تقلي ليش getRealTime ما يسوي refresh في gui يعني الوقت يتغير بس لما اسوي restart لل مود
  2. اشتغل على لوحة معلومات ايش المشكل في اللوحة؟ Client side userserial = guiCreateLabel(226, 80, 474, 25, "Serial:", false, userpanel) function getserialboy () triggerServerEvent("triggerSerial",localPlayer,theSerial) guiSetText( userserial, theSerial) end ------------ Server side function getserial (thePlayer) local theSerial = getPlayerSerial( thePlayer ) end addEvent("triggerSerial",true) addEventHandler("triggerSerial",root,getserial)
  3. يجيني النص بس اقدر اكتب في الشات
  4. إيش الغلط في الكود؟ function callAdmin ( chatter ) chatteraccount = getPlayerAccount ( chatter ) if isGuestAccount ( chatteraccount ) then outputChatBox ( "Please register to use this function!", chatter ) else end end addEventHandler("onPlayerChat",root,callAdmin)
  5. Snakegold

    Help

    Thank you, do you know how to convert them to minutes and seconds? also without points like 3.487s
  6. Snakegold

    Help

    Hello community. i tried to work with this function but unfortunately i failed. i did alot of attemps but nothing happened getTimerDetails This is my code function test (player) local timer = 5000 if getElementData(player, "data1", true) then outputChatBox("You already got health. Please wait "..getTimerDetails(timer).."", player, 255,0,0) return end setElementHealth(player, 100) outputChatBox("Done",player,255,0,0,true) setElementData(player, "data1", true) setTimer(function () setElementData(player, "data1", false) end, timer,1) end addCommandHandler("health",test) debugscript: Bad argument @ 'getTimerDetails' [Expected lua-timer at argument 1, got number '5000'] Error: attempt to concatenate a boolean value
  7. Snakegold

    Help

    Sorry, i'm beginner, didn't understand can you correct my script?
  8. Snakegold

    Help

    Hello community Why this code doesn't work? function checkbox (element) if ( element == checkbox_output ) if ( guiCheckBoxGetSelected(source) ) then outputChatBox("checked") else outputChatBox("unchecked") end end end addEventHandler("onClientGUIClick", root, checkbox, false) Nothing in debugscript !!
  9. كودك صعب و معقد شوي عليا لأني مازلت ممبتدأ function setbounty(thePlayer, playername) local player = getPlayerFromNamePart(playername or "") local name = getPlayerName(thePlayer) if player then outputChatBox(""..name.." وضع مبلغ على "..getPlayerName(player).."", root, 255, 255, 255, true) else outputChatBox("إسم اللاعب غير موجود", root, 255, 255, 255, true) end end addCommandHandler("setbounty", setbounty) function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end ايش مشكلته هذا؟
  10. شباب بدي لما أكتب /setbounty "إسم لاعب" يكتب X set bounty on Z function setbounty(thePlayer) local player = getPlayerName(thePlayer) if player then outputChatBox(""..name.." set bounty on "..player.."", root, 255, 255, 255, true) else outputChatBox("لاعب غير موجود", root, 255, 255, 255, true) end end addCommandHandler("setbounty",setbounty)
  11. شباب كيف أسوي الزون بال fade effect
  12. بدي لما شخص يدخل للسيرفر و معه ميوت تجي كذا has joined the game [muted] addEventHandler("onClientPlayerJoin", root, function() triggerServerEvent ( "checkmutedevent", thePlayer) return outputChatBox("• #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#006400 has joined the game", 0, 100, 0, true) end) addEvent ("checkmutedevent",true) addEventHandler ("checkmutedevent",root, function checkmuted (thePlayer) if isPlayerMuted ( thePlayer ) then outputChatBox("• #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#006400 has joined the game [#ffffffMuted#006400]", 0, 100, 0, true) end end)
  13. أيش بدي : لما يكون اللاعب داخل الأيفينت يعني ديموشن تبعه 1 فلما يكتب الكوماند الي بدخله للإيفنت ما يقدر لنو هو أصلا في الديومشن 1 لما حطيت الكود تبعك يا مصطفى صرت لما أكتب الكوماند بيروح للديموشن 1 بس ما يدخل اللاعب للتيم و لما أموت و أكتب الكوماند بيدخل للتيم و ديموشن 1 ليش؟ كودك صعب ما اقدر اتعامل معه
  14. شباب بدي لما يكون ديموشن تبع اللاعب 1 ما يقدر يدخل للتيمات مرة ثانية function addtoteam (source) setElementData(resourceRoot,"any",math.random(0,1)) local Data = getElementData(resourceRoot,"any") if (Data == 1) then setElementPosition ( source, -1610.37890625 , -151.01559448242, 14.546875 ) setPlayerTeam(source,Team1) elseif (Data == 0) then setElementPosition ( source, 395.79275512695, 2534.6953125, 16.543769836426 ) setPlayerTeam(source,Team2) end end addCommandHandler('join', addtoteam) جربت هذا الكود if ( getElementDimension ( source ) == 1 ) then return end .... بس خربت كل شي