Jump to content

MR.S3D

Members
  • Posts

    732
  • Joined

  • Last visited

Everything posted by MR.S3D

  1. MR.S3D

    help

    hillArea = { {1436.6826171875, -2940.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -2640.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -2340.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -640.1494140625, 13.546875, 500,500,500} } hillRadar = { {1262.2802734375, -2769.48828125, 300, 300, 171, 175, 174, 80}, {1262.2802734375, -2469.48828125, 300, 300, 92, 46, 2, 80}, {2762.2802734375, -2169.48828125, 200, 300, 255, 0, 143, 80} } local turfcol_ = nil function maketurf (thePlayer) if turfcol_ == nil then --- create local turfCol for i,v2 in ipairs(hillArea) do turfCol = createColCuboid(unpack(v2)) end local hill for i,v1 in ipairs(hillRadar) do hill = createRadarArea(unpack(v1)) end turfcol_ = true else --- destroy local allturfs = getElementsByType("radararea") local allcols = getElementsByType("colshape") for i, v2 in ipairs(allturfs) do destroyElement(v2) end for i, v1 in ipairs(allcols) do destroyElement(v1) end turfcol_ = nil end end addCommandHandler("show", maketurf)
  2. work. make sure use my full code....
  3. http://pastebin.com/3w0pxFMp http://pastebin.com/YeWZkwps
  4. show me your code in server ,,, triggerClinetEvent
  5. ماعندك ftp وتركب مودات من خلاله؟؟
  6. ماشوف انك تحفظ كلام ماله داعي ويعلق عليك السيرفر خل التعديل من نفس المود lua وتخش الأستضافه وتعدل وتسوي ريفرش وريستارت بس اذا تبي طرق للحفظ من ضمنها xml
  7. try now with it. and Bye.....SlpZzzzzzzzzzzzz
  8. ADD HERE https://itextpad.com/ turpo
  9. I can't copy lua code add code here https://itextpad.com/cjqyAV5CYs
  10. show me full code client and server
  11. try with this server function destroyIt (target) if getElementType(target) == "player" then return end destroyElement(target) end addEvent( "destroyIt", true ) addEventHandler( "destroyIt", root, destroyIt )
  12. function boom ( ) local pX, pY, pZ = getElementPosition ( getLocalPlayer() ) createExplosion ( pX, pY, pZ, 2 ) end addCommandHandler( "rob", boom)
  13. i = false function testBinds() if not i then setPedWeaponSlot ( localPlayer, 2 ) else setPedWeaponSlot ( localPlayer, 3 ) end i = not i end bindKey("1", "down", testBinds)
  14. بسبب انك شايل اكواد الوان اللاعب وليس اسمه الأصلي يرجى تعديل هذا الكود guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false)
  15. groups = { "Console", "Admin", "SuperModerator", "Moderator", "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Head.Admin", "Owner", "Leve16Plus", "Level5Plus", "Level4Plus", "Level3Plus", "Level2Plus", "Level1Plus", "AdminChat" } addCommandHandler("AdminChat", function(player,cmd,...) local msg = table.concat({...}, " ") for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg,player,255,0,0,true) for theKey,thePlayer in ipairs(getElementsByType("player")) do if thePlayer == player then else for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg,thePlayer,255,0,0,true) break end end end end break end end end ) addEventHandler("onResourceStart",root, function() for theKey,thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer,"[","down","chatbox","AdminChat") end end ) addEventHandler("onPlayerJoin",root, function() bindKey(source,"[","down","chatbox","AdminChat") end )
  16. groups = { "Console", "Admin", "SuperModerator", "Moderator", "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Head.Admin", "Owner", "Leve16Plus", "Level5Plus", "Level4Plus", "Level3Plus", "Level2Plus", "Level1Plus", "AdminChat" } addCommandHandler("AdminChat", function(player,cmd,...) local msg = table.concat({...}) for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg,player,255,0,0,true) for theKey,thePlayer in ipairs(getElementsByType("player")) do if thePlayer ~= player then for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg,thePlayer,255,0,0,true) break end end end end break end end end ) addEventHandler("onResourceStart",root, function() for theKey,thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer,"[","down","chatbox","AdminChat") end end ) addEventHandler("onPlayerJoin",root, function() bindKey(source,"[","down","chatbox","AdminChat") end )
  17. الكلام يتكرر ياكفو ربما بسبب وجود اللاعب في اكثر من قروب
  18. بعدين على فكرة انا مستخدم انه لما يوصل لقروب اللاعب يتوقف اللوب وثم يدخل على جميع القروبات ... لو فرضنا كلامك مثل ماقلت وانا مثلا كنت برتبة رقم 5 باللوب كذا راح يدخل على جميع الااعبين برتبه رقم 6 الى الاخير وماراح برجع للرتبه الأولى
×
×
  • Create New...