-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
جججرب local skins = { -- جدول ! {133}, {132}, {122}, {230}, } for _,v in ipairs(skins) do row = guiGridListAddRow ( gridlist ) guiGridListSetItemText(gridlist, row , 1 ,v[1] , false , false ) end function btnshows() if source == button then if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then setElementModel ( localPlayer ,guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 )) else outputChatBox("Error 303 , Select a Skin !", 255,255,255, false) guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) end end end addEventHandler( "onClientGUIClick", guiRoot, btnshows )
-
قول نفس وظيفة المزارع الي بسيرفر بسول وريح نفسك
-
ججرب Timer = { } local jaja = { {3471.8334960938, -893.76837158203, 11.62656211853}, {3494.4184570313, -894.68341064453, 11.62656211853}, {3496.6020507813, -904.40509033203, 11.62656211853}, {3496.6020507813, -904.40509033203, 11.62656211853}, } Times = { [6] = 360000, [5] = 300000, [4] = 240000, [3] = 180000, [2] = 180000, [1] = 180000, } function jailPlayer(plr, time) if isTimer(Timer[plr]) then killTimer(Timer[plr]) end setElementPosition(plr, unpack(jaja[math.random( #jaja )])) Timer[plr] = setTimer(function(plr) setElementPosition(plr , 1572.9000244141, -1635.4000244141, 13.60000038147) end, time, 1, plr) triggerClientEvent(plr, "unJail", plr, time) setPlayerWantedLevel(plr, 0) end addEventHandler('onPlayerWasted',root, function(_,attacker) setTimer ( function(attacker,source) if attacker and attacker ~= source and getElementType(attacker) == 'player' and getPlayerTeam(attacker) and getTeamName(getPlayerTeam(attacker)) == '[sWAT]' then if getPlayerWantedLevel(source) > 0 and getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= '[sWAT]' then if Times[getPlayerWantedLevel(source)] then jailPlayer(source, Times[getPlayerWantedLevel(source)]) end end end end, 2000, 1 ,attacker,source) end ) addEventHandler("onPlayerLogin", root, function(_, account) local jailT = getAccountData(account, "JailTime") if jailT then jailPlayer(source, jailT) setAccountData(account, "JailTime", false) end end) addEventHandler("onPlayerQuit", root, function( ) if isTimer(Timer[source]) then local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local remaining = getTimerDetails(Timer[source]) setAccountData(account, "JailTime", remaining) end killTimer(Timer[source]) Timer[source] = nil end end )
-
تفصل اخوي .. #غير مجرب function RGBToHex (red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local r, g, b = getPlayerNametagColor (source) local playercolor = RGBToHex ( r, g, b ) cancelEvent() if isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#00FFFF ~| > Mode <|~ " .. playercolor .. " " .. name .. ":#bbbbbb " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("#00FFFF ~| > SuperMode <|~ " .. playercolor .. " " .. name ..":#0000FF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#00FFFF ~| > Admin <|~ " .. playercolor .. " " .. name .. ":#00CCFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then outputChatBox("#00FFFF ~| > Console <|~ #FFFFFF#ff0000*" .. playercolor .. " " .. name .. ":#FFFF00 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BestPlayer")) then outputChatBox("#00FFFF ~| > Best-Player <|~ #FFFFFF#ff0000*" .. playercolor .." " .. name .. ":#00FF00 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox)
-
: كودك غلط ,, التصحيح local Serials = { ["theSerial"] = true, ["theSerial"] = true, ["theSerial"] = true, } local team1 = createTeam('Forces',0,255,0) addEventHandler("onResourceStart", resourceRoot, function( ) for k,v in ipairs(getElementsByType("player")) do if Serials[getPlayerSerial(v)] then setPlayerTeam(v , team1) setTeamFriendlyFire(team1 , true) end end end)
-
createWeapon createPickup
-
local sm = {} sm.moov = 0 sm.object1,sm.object2 = nil,nil local function removeCamHandler() if(sm.moov == 1)then sm.moov = 0 end end local function camRender() if (sm.moov == 1) then local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2) setCameraMatrix(x1,y1,z1,x2,y2,z2) end end addEventHandler("onClientPreRender",root,camRender) function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) if(sm.moov == 1)then return false end sm.object1 = createObject(1337,x1,y1,z1) sm.object2 = createObject(1337,x1t,y1t,z1t) setElementAlpha(sm.object1,0) setElementAlpha(sm.object2,0) setObjectScale(sm.object1,0.01) setObjectScale(sm.object2,0.01) moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") sm.moov = 1 setTimer(removeCamHandler,time,1) setTimer(destroyElement,time,1,sm.object1) setTimer(destroyElement,time,1,sm.object2) return true end
-
يب + هاذي مجرد اسم للمتغير
-
addCommandHandler onClientPlayerDamage cancelEvent
-
انت قلت في ملف السيرفر طيب ليش حاط localPlayer , getLocalPlayer ?? وليش محد انتبه لها من وين تقرا انت ؟؟ انا قصدي ياخذ الاحداثيات الموجوده في ملف السيرفر ويسوي ملف كلنت ويحط الكود الي عطيته
-
حط هذا بالكلنت وخليه نفس احداثيات createColRectangle الـ الي في ملف السيرفر local SafeZone3 = createColRectangle ( 1150.05579, -1390.17407,70,100) function StopDamage ( ) if ( isElementWithinColShape(localPlayer, SafeZone3) ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), StopDamage )
-
انا اهنيك ع المستوي البرمجي الي وصلتله بس الفكرة مو جديده مثل ماتضن لأن قبل انا كنت مسوي واحد بنفس الفكرة واكثر من سيرفر اذكر كانو مركبين مود انتقالات يمديك تضيف من السيرفر نفسه بس الاعبين مايدرون ان الكونسل يضيف اماكن من السيرفر, طبعا الكلام الي اقوله لك من سنة واصل واتمني لك الافضل ..
-
خلي السيرفر كذا addEvent ( "button1" , true ) addEventHandler ( "button1" , root function (aa,bb,cc) for k, v in ipairs ( getElementsByType ( "player" ) ) do local give = giveWeapon ( v, tonumber(aa), tonumber(bb) ) outputChatBox(tostring(cc), v , 255,255,255) end end )
-
اسم الحدث غلط المفروض يكون onClientGUIDoubleClick
-
ياخوي انت الي حاط الكود هذا انا ماحطيته وبعد مانزلت الكود انا انت غيرت ردك وشلت الكود انا ماسويت ترايقر ولا شي انت الي مسويحط اكوادك الكلنت كامله واحنا نسويها لك
-
موعلي كيفه مايشتغل غصبن عنه policeSpawn = { [1] = {1568.5632324219, -1691.4493408203, 5.890625, 180}, [2] = {1580.01660, -1634.68750, 13.56188, 90.0}, [3] = {1552.56165, -1675.75244, 16.19531, 90.0} } addEventHandler('onPlayerWasted',root, function() local team = getPlayerTeam(source) if team and getTeamName(team) == 'Police' then local x,y,z,rot = unpack(policeSpawn[math.random(#policeSpawn)]) setTimer(function (x,y,z,rot,source ) spawnPlayer (source,x,y,z,rot) end,1900, 1,x,y,z,rot,source ) setCameraTarget (source, source) end end )
-
ماشاءالله عليك اخوي ناايف وإن شاءالله نشوفك من كبار المبرمجين اتمني لك الافضل
-
policeSpawn = { [1] = {1568.5632324219, -1691.4493408203, 5.890625, 180}, [2] = {1580.01660, -1634.68750, 13.56188, 90.0}, [3] = {1552.56165, -1675.75244, 16.19531, 90.0} } addEventHandler('onPlayerWasted',root, function() local team = getPlayerTeam(source) if team and getTeamName(team) == 'Police' then local x,y,z,rot = unpack(policeSpawn[math.random(#policeSpawn)]) setTimer(function () spawnPlayer (source,x,y,z,rot) end,700, 1 ) setCameraTarget (source, source) end end )
-
addEvent('dd', true) addEventHandler('dd', root, function () if ( getPedOccupiedVehicle ( localPlayer ) ) then guiSetText ( labelName , 'true' ) else guiSetText ( labelName , 'false' ) end end) استبدل labelName بأسم اللبل الي عندك
-
ماشوف اي خطأ بس لو تلاحظ في سطر 17 ان الي راح ينتقل للعالم الوهمي هو الماركر الي لمسته مو اللاعب + مافهمت وش تبي بضبط جرب local TheMarker = createMarker ( 1455.8000488281, 2773.3999023438, 11.800000190735, "arrow", 1.2, 255, 255, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player, 5, 1263.53699, -785.45905 ,1091.90625 ) outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) end end ) local newmarker = createMarker ( 1260.6999511719, -785.40002441406, 1092.8270263672, "arrow", 1.2, 254, 120, 0, 150 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) if ( getElementType ( player ) == "player" ) and ( source == newmarker ) then if ( isPedInVehicle ( player ) ) then return end setElementDimension ( player, 20 ) setElementInterior ( player ,1459.34265 ,2773.37231 ,10.82031 ) setElementPosition ( player, 1262.08911, -785.57843, 1091.90625 ) outputChatBox ( "*Console Is Out the House !!", player, 255, 0, 0, true ) end end )
-
اخوي السكربت شغال 100%100 تو جربته تأكد من الي انت مسويه