Jw8.
Members-
Posts
507 -
Joined
Everything posted by Jw8.
-
سلام عليكم عندي مشكله في مود addEventHandler("onClientGUIClick",root, function() if source == bu then local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1) local DmAr = getPlayerFromName(rp) triggerServerEvent("Chanllage", localPlayer, rp) showCursor(true) guiSetEnabled ( bu, false ) setTimer(guiSetEnabled,300,1,bu,true) guiSetVisible(Gwin,true) elseif source == accept then guiSetEnabled ( accept, true ) setTimer(guiSetEnabled,300,1,accept,true) triggerServerEvent("accept",source) setPedSkin ( source, 280 ) elseif source == naccept then guiSetEnabled ( naccept, true ) setTimer(guiSetEnabled,300,1,naccept,true) guiSetVisible(Gwin,false) guiSetEnabled ( bu, true ) setTimer(guiSetEnabled,300,1,bu,true) --guiSetEnabled ( gridplayer, true ) elseif source == cl then guiSetVisible(win,false) showCursor(false) end end ) انا مسوي مود تحديات كل ما اضغط على لاعب واكبس بوتين تجي لوحة ثانيه اسم الوحة حقتي win والوحة الي ابيه ترسل من القريد ليست Gwin
-
function Open () if getPlayerSerial(player) == "Serials" or getPlayerSerial(player) == "Serials" then if (guiGetVisible (window) == true) then guiSetVisible (window, false) showCursor (false) else outputChatBox( "The Window Open",0,255,255, true ) guiSetVisible (window, true) showCursor (true) end else outputChatBox( "* Not Allow",0,255,255, true ) end end addCommandHandler ( "Open", Open ) جرب
-
addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then executeCommandHandler ( "le" ) elseif source == GUIEditor.button[3] then executeCommandHandler ( "lee" ) elseif source == GUIEditor.button[4] then executeCommandHandler ( "leee" ) elseif source == GUIEditor.button[2] then executeCommandHandler ( "leeee" ) elseif source == GUIEditor.button[6] then executeCommandHandler ( "leeeee" ) elseif source == GUIEditor.button[5] then executeCommandHandler ( "ws" ) elseif source == GUIEditor.button[8] then executeCommandHandler ( "sam" ) elseif source == GUIEditor.button[7] then executeCommandHandler ( "samm" ) end end) الكود الصح هو كذا اول كود لازم كمان تحقق
-
addEventHandler("onClientGUIClick",root, function() if guiGridListGetSelectedItem(gridplayer) ~= -1 or source == bu then guiSetVisible(Gwin,true) local NameP = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1) triggerServerEvent("Chanllage", localPlayer, NameP) showCursor(true) elseif source == accept then triggerServerEvent("accept",localPlayer) elseif source == naccept then guiSetVisible(Gwin,false) elseif source == cl then guiSetVisible(win,false) showCursor(false) end end ) ذه كود الحين عملته
-
function update () guiGridListClear(gridplayer) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (gridplayer) guiGridListSetItemText (gridplayer,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) الاسماء رد لاهنت
-
--ClientSide addEventHandler("onClientGUIClick",root, function() local aplayer = guiGridListGetItemText ( gridplayer, guiGridListGetSelectedItem ( Gwine ), 1 ) -- Window outputChatBox(aplayer) triggerServerEvent("Chanllage", localPlayer) end ) --ServerSide addEvent ("Chanllage",true) addEventHandler ("Chanllage",root, function ( p ) local Chan = getPlayerFromName(p) if ( Chan ) then outputChatBox ( "[Chanllage System]"..Chan.." Seclect Player", player, 0, 255, 0 ) end end ) كذا؟ ي بروس
-
سلام عليككم ممكن كود كل ما تحدد لاعب قريد ليست ويضغط بوتين يرسل له لوحة لاني ما اعرف للقريد ليست اتمنى المساعده
-
local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) local account = getAccountName ( getPlayerAccount ( source ) ) function MarkerHit( hitElement, matchingDimension ) if ( isObjectInACLGroup ( "user." .. account, aclGetGroup ( "Console" ) ) ) then local elementType = getElementType( hitElement ) setElementPosition ( source, 298.83972 -35.25142 1001.51563 ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit )
-
سلام عليكم عندي مشكله ابي ذه اللكود function closeLogin ( ) removeEventHandler ( "onClientPreRender", root, dxDrawLoginPanel ) removeEventHandler ( 'onClientCursorMove', root, cursorMove ) removeEventHandler ( "onClientClick", root, clientClicking ) -- removeEventHandler ( "onClientPreRender", root, GetPedSkin ) guiSetVisible ( password, false ) guiSetVisible ( username, false ) showCursor ( false ) removeEventHandler ( 'onClientGUIClick', root, clientClosingErrorWindowEvent ) guiSetVisible ( window, false ) isOpen = false isLoggedin = true showChat(true) showPlayerHudComponent ( 'all', true ) end addEvent ( "onClientPlayerLogin", true ) addEventHandler ( "onClientPlayerLogin", root, closeLogin ) addEvent("onLoginSuccess", true) addEventHandler("onLoginSuccess", root, function() local radioURL = "sfx/intro.mp3" SelectSong = playSound(radioURL, true) showCursor(false) smoothMoveCamera(-2564.8342285156, 748.92218017578, 98.373344421387, -2560.1408691406, 848.46099853516, 90.007133483887 , -2556.1491699219, 971.96563720703, 79.286323547363, -2557.1953125, 1071.8724365234, 75.099548339844,1800) skinCount = 0 sPed = createPed(105, -2819.83545, 1177.29004, 20.27344) local pDim = getElementDimension ( localPlayer ) local pInt = getElementInterior ( localPlayer ) setElementDimension ( sPed, 0 ) setElementInterior ( sPed, 0 ) setElementDimension ( localPlayer, 0 ) setElementInterior ( localPlayer, 0 ) sRight() bindKey("arrow_l", "down", sLeft) bindKey("arrow_r", "down", sRight) bindKey("arrow_u", "down", sUp) bindKey("arrow_d", "down", sDown) bindKey("enter", "down", EnterSpawn) addEventHandler("onClientPreRender", root, drawTeamName) addEventHandler("onClientPreRender", root, loginRender) removeEventHandler ( "onClientPreRender", root, onClientPlayerLogin ) setElementData(localPlayer,"NoComm",false) end) كل ما يخش يجيه اختيار تيمات انا عامل كل شيء بس ناقصني ذول
-
سلام عليكم ابغى كود اذا بيخش الماركار بياخذ الداتا
-
ابي كل ما يقتل شخص يجيه نقطه addEventHandler("onPlayerWasted", root, function(_, point) if getPlayerTeam(source) ~= getTeamFromName("No Team") then getElementData(point,"Wasted")or 0)+1) triggerEvent("OnPointPolice",point) exports["guimessages"]:outputServer(point,"#00FF00Good Job You Have got 1 Point !",0, 255, 255) elseif getPlayerTeam(source) == getTeamFromName("Police") then triggerEvent("OnPointGang",point) getElementData(point,"Wasted")or 0)+1) exports["guimessages"]:outputServer(point,"#00FF00GooD Job You Won 1 Point !",0, 255, 255) end end );
-
في نأس سوته مب بس هو
-
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then -- عطني الوحة اذا ماتعرف
-
--Server if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("SuperModretor")) then -- ضيفه عند الماركار او الوحة
-
add addEventHandler("onResourceStart", resourceRoot, function(ev) if isObjectInACLGroup("resource.اسم المود", aclGetGroup("Console")) and isObjectInACLGroup("resource.اسم المود", aclGetGroup("hack")) then for i,v in ipairs(getElementsByType("player")) do if not getPlayerSerial(v) == "سريالك" then cancelEvent() outputChatBox("This Sccript For -", root, 255, 0, 0) end end else cancelEvent() outputChatBox("This Sccript For -", root, 255, 0, 0) end end)
-
local interiors = {} local interiorMarkers = {} local resourceFromInterior = {} --format interior = { [resource] = { [id] = { return= { [element],[element] }, entry=[element] } } addEvent ( "doTriggerServerEvents", true ) addEvent ( "onPlayerInteriorHit" ) addEvent ( "onPlayerInteriorWarped", true ) addEvent ( "onInteriorHit" ) addEvent ( "onInteriorWarped", true ) addEventHandler ( "onResourceStart", getRootElement(), function ( resource ) interiorLoadElements ( getResourceRootElement(resource), resource ) interiorCreateMarkers ( resource ) end ) addEventHandler ( "onResourceStop", getRootElement(), function ( resource ) if not interiors[resource] then return end for id,interiorTable in pairs(interiors[resource]) do local interior1 = interiorTable["entry"] local interior2 = interiorTable["return"] destroyElement ( interiorMarkers[interior1] ) destroyElement ( interiorMarkers[interior2] ) end interiors[resource] = nil end ) function interiorLoadElements ( rootElement, resource ) ---Load the exterior markers local entryInteriors = getElementsByType ( "interiorEntry", rootElement ) for key, interior in pairs (entryInteriors) do local id = getElementData ( interior, "id" ) if not interiors[resource] then interiors[resource] = {} end if not id then outputDebugString ( "Interiors: Error, no ID specified on entryInterior. Trying to load anyway.", 2 ) end interiors[resource][id] = {} interiors[resource][id]["entry"] = interior resourceFromInterior[interior] = resource end --Load the interior markers local returnInteriors = getElementsByType ( "interiorReturn", rootElement ) for key, interior in pairs (returnInteriors) do local id = getElementData ( interior, "refid" ) if not interiors[resource][id] then outputDebugString ( "Interiors: Error, no refid specified to returnInterior.", 1 ) return else interiors[resource][id]["return"] = interior resourceFromInterior[interior] = resource end end end function interiorCreateMarkers ( resource ) if not interiors[resource] then return end for interiorID, interiorTypeTable in pairs(interiors[resource]) do local entryInterior = interiorTypeTable["entry"] local entX,entY,entZ = getElementData ( entryInterior, "posX" ),getElementData ( entryInterior, "posY" ),getElementData ( entryInterior, "posZ" ) entX,entY,entZ = tonumber(entX),tonumber(entY),tonumber(entZ) -- local marker = createMarker ( entX, entY, entZ -1, "cylinder", 2, 255, 255, 0, 200 ) setElementParent ( marker, entryInterior ) interiorMarkers[entryInterior] = marker -- -- local marker = playSound3D("sound.wav", retX, retY, retZ, true) -- local dimension = tonumber(getElementData ( entryInterior, "dimension" )) local interior = tonumber(getElementData ( entryInterior, "interior" )) if not dimension then dimension = 0 end if not interior then interior = 0 end -- setElementInterior ( marker, interior ) setElementDimension ( marker, dimension ) ---create return markers local returnInterior = interiorTypeTable["return"] local retX,retY,retZ = getElementData ( returnInterior, "posX" ),getElementData ( returnInterior, "posY" ),getElementData ( returnInterior, "posZ" ) retX,retY,retZ = tonumber(retX),tonumber(retY),tonumber(retZ) -- local oneway = getElementData ( entryInterior, "oneway" ) if oneway == "true" then return end local marker1 = createMarker ( retX, retY, retZ -1, "cylinder", 2, 255, 255, 0, 200 ) interiorMarkers[returnInterior] = marker1 setElementParent ( marker1, returnInterior ) -- -- local marker1 = playSound3D("sound.wav", retX, retY, retZ, true) local marker1 = playSound("sounds.wav") --Play wasted.mp3 from the sounds folder -- local dimension1 = tonumber(getElementData ( returnInterior, "dimension" )) local interior1 = tonumber(getElementData ( returnInterior, "interior" )) if not dimension1 then dimension1 = 0 end if not interior1 then interior1 = 0 end -- setElementInterior ( marker1, interior1 ) setElementDimension ( marker1, dimension1 ) end end function getInteriorMarker ( elementInterior ) if not isElement ( elementInterior ) then outputDebugString("getInteriorName: Invalid variable specified as interior. Element expected, got "..type(elementInterior)..".",0,255,128,0) return false end local elemType = getElementType ( elementInterior ) if elemType == "interiorEntry" or elemType == "interiorReturn" then return interiorMarkers[elementInterior] or false end outputDebugString("getInteriorName: Bad element specified. Interior expected, got "..elemType..".",0,255,128,0) return false end local opposite = { ["interiorReturn"] = "entry",["interiorEntry"] = "return" } local idLoc = { ["interiorReturn"] = "refid",["interiorEntry"] = "id" } addEventHandler ( "doTriggerServerEvents",getRootElement(), function( interior, resource, id ) local eventCanceled1,eventCanceled2 = false,false eventCanceled1 = triggerEvent ( "onPlayerInteriorHit", client, interior, resource, id ) eventCanceled2 = triggerEvent ( "onInteriorHit", interior, client ) if ( eventCanceled2 ) and ( eventCanceled1 ) then triggerClientEvent ( client, "doWarpPlayerToInterior", client, interior, resource, id ) setTimer ( setPlayerInsideInterior, 1000, 1, client, interior, resource, id ) end end ) local opposite = { ["interiorReturn"] = "entry",["interiorEntry"] = "return" } function setPlayerInsideInterior ( player, interior, resource, id ) local oppositeType = opposite[getElementType(interior)] local targetInterior = interiors[getResourceFromName(resource) or getThisResource()][id][oppositeType] local dim = getElementData ( targetInterior, "dimension" ) local int = getElementData ( targetInterior, "interior" ) if (isElement(player)) then setElementInterior ( player, int ) setElementDimension ( player, dim ) end end function getInteriorName ( interior ) if not isElement ( interior ) then outputDebugString("getInteriorName: Invalid variable specified as interior. Element expected, got "..type(interior)..".",0,255,128,0) return false end local elemType = getElementType ( interior ) if elemType == "interiorEntry" then return getElementData ( interior, "id" ) elseif elemType == "interiorReturn" then return getElementData ( interior, "refid" ) else outputDebugString("getInteriorName: Bad element specified. Interior expected, got "..elemType..".",0,255,128,0) return false end end
-
الحين انا مسوي ماركار كل ما يخشه شخص يطلع له صوت local marker = playSound3D("sound.wav", retX, retY, retZ, true)
-
ما في رد ِْ
-
سلام عليكم انا عندي كمبيوترين كل ما اخش سيرفر يكتب لي deathmatch mod its not installed نزلته ومحيته وما صار شي؟