MR.S3D
Members-
Posts
732 -
Joined
-
Last visited
Everything posted by MR.S3D
-
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)
-
work. make sure use my full code....
-
http://pastebin.com/3w0pxFMp http://pastebin.com/YeWZkwps
-
show me your code in server ,,, triggerClinetEvent
-
ماعندك ftp وتركب مودات من خلاله؟؟
-
I think we have an issue with 'setPlayerNametagText' .
MR.S3D replied to MR.GRAND's topic in Suggestions
same problme,,, -
ماشوف انك تحفظ كلام ماله داعي ويعلق عليك السيرفر خل التعديل من نفس المود lua وتخش الأستضافه وتعدل وتسوي ريفرش وريستارت بس اذا تبي طرق للحفظ من ضمنها xml
-
try with this server function destroyIt (target) if getElementType(target) == "player" then return end destroyElement(target) end addEvent( "destroyIt", true ) addEventHandler( "destroyIt", root, destroyIt )
-
function boom ( ) local pX, pY, pZ = getElementPosition ( getLocalPlayer() ) createExplosion ( pX, pY, pZ, 2 ) end addCommandHandler( "rob", boom)
-
i = false function testBinds() if not i then setPedWeaponSlot ( localPlayer, 2 ) else setPedWeaponSlot ( localPlayer, 3 ) end i = not i end bindKey("1", "down", testBinds)
-
بسبب انك شايل اكواد الوان اللاعب وليس اسمه الأصلي يرجى تعديل هذا الكود guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false)
-
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 )
-
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 )
-
الكلام يتكرر ياكفو ربما بسبب وجود اللاعب في اكثر من قروب
-
You're Welcome.
-
بعدين على فكرة انا مستخدم انه لما يوصل لقروب اللاعب يتوقف اللوب وثم يدخل على جميع القروبات ... لو فرضنا كلامك مثل ماقلت وانا مثلا كنت برتبة رقم 5 باللوب كذا راح يدخل على جميع الااعبين برتبه رقم 6 الى الاخير وماراح برجع للرتبه الأولى