-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
السياره اذا كنت مسويها بجهة الكلنت ماراح تقدر تركبها ولا تفجرها
-
onClientGUIClick-- لما تضغط moveObject -- عشان يتحرك لقدام او فوق stopObject -- عشان يوقف الاوبجكت
-
خلي الكود يكون دقيق اكثر لـتجنب الاخطاء بالدي بق . addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,"كفو") then if aclGetGroup ( "Console" ) and not isGuestAccount(getPlayerAccount ( source )) and isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Console" ) ) then outputChatBox("#ff0000x[ هريش ]x #ffffffكفووووووووك #ffcc00@ "..getPlayerName(source).." ",source,255,255,255,true) end end end ) وللمعلومة : الرسالة الي تظهر بالشات محد بيشوفها غير الشخص الي كتب بالشات كفو ولو تبيها عامه غير root الي source
-
كودك في حال خروج الادمن من السيرفر ورجع دخل للسيرفر مره اخري ماراح يسجل اسمه باللوحة + استبدل السطر هذا addEventHandler("onResourceStart", root, بهذا addEventHandler("onResourceStart", resourceRoot,
-
Gp = { {"Admin"}, {"Console"} } marker = createMarker(-460.49576,1046.28235,11.03125,"cylinder",1.5,0,255,0,255) addEventHandler("onMarkerHit",marker, function (plr) if ( getElementType(plr) == 'player' ) then if isGuestAccount(getPlayerAccount(plr)) then outputChatBox("سجل دخولك",plr,0,255,0) return end local accName = getAccountName ( getPlayerAccount ( plr) ) for _,v in ipairs (Gp) do if isObjectInACLGroup ("user."..accName, aclGetGroup (v[1]) ) then outputChatBox("هلا بك",plr,0,255,0) break else outputChatBox("لست بقروب الادمن",plr,0,255,0) end end end end,false )
-
تفصل اخوي هذا مثال لما تخش السيرفر ومو حاط شعار سيرفر وناسه تايم يحطه لك addEventHandler("onPlayerJoin",root, function() if not ( string.find('[W.T]-', getPlayerName(source)) ) then setPlayerName ( source, '[W.T]-'..getPlayerName(source) ) end end)
-
ترا الموضوع من سنة 2014 -___-
-
local root = getRootElement() local rroot = getResourceRootElement() --addEvent("Mensaje",true) local sx,sy = guiGetScreenSize() local chatbox = getChatboxLayout() local y = chatbox["chat_scale"][2] local lineas = chatbox["chat_lines"] local font = "default" if chatbox["chat_font"] == 1 then font = "clear" elseif chatbox["chat_font"] == 2 then font = "default-bold" elseif chatbox["chat_font"] == 3 then font = "arial" end addEventHandler("onClientChatMessage",root,function(txt) for k,v in ipairs(getElementsByType("gui-staticimage",rroot)) do local gx,gy = guiGetPosition(v,true) if string.len(txt) > 100 then guiSetPosition(v, gx,gy-0.025,true) else guiSetPosition(v, gx,gy-0.025,true) end if gy <= 0.01 then destroyElement(v) end end txt = string.gsub(txt,"#[%x][%x][%x][%x][%x][%x]","") local len = 0 if string.len(txt) > 48 then return end if string.find(txt,"ض1") then local text = string.gsub(txt,"ض1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) elseif string.find(txt,"ض2") then local text = string.gsub(txt,"ض2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q2.png",true) elseif string.find(txt,"ض3") then local text = string.gsub(txt,"ض3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q3.png",true) elseif string.find(txt,"ض4") then local text = string.gsub(txt,"ض4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q4.png",true) elseif string.find(txt,"ض5") then local text = string.gsub(txt,"ض5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q5.png",true) elseif string.find(txt,"ض6") then local text = string.gsub(txt,"ض6","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q6.png",true) elseif string.find(txt,"ض7") then local text = string.gsub(txt,"ض7","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q7.png",true) elseif string.find(txt,"ض8") then local text = string.gsub(txt,"ض8","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q8.png",true) elseif string.find(txt,"ض9") then local text = string.gsub(txt,"ض9","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q9.png",true) elseif string.find(txt,"ض0") then local text = string.gsub(txt,"ض0","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q0.png",true) elseif string.find(txt,"@") then local text = string.gsub(txt,"@","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q10.png",true) elseif string.find(txt,"ق0") then local text = string.gsub(txt,"ق0","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q11.png",true) elseif string.find(txt,"ق1") then local text = string.gsub(txt,"ق1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q12.png",true) elseif string.find(txt,"ق2") then local text = string.gsub(txt,"ق2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q13.png",true) elseif string.find(txt,"ق3") then local text = string.gsub(txt,"ق3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q14.png",true) elseif string.find(txt,"ق4") then local text = string.gsub(txt,"ق4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q15.png",true) elseif string.find(txt,"ق5") then local text = string.gsub(txt,"ق5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q16.png",true) elseif string.find(txt,"ق6") then local text = string.gsub(txt,"ق6","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q17.png",true) elseif string.find(txt,"ق7") then local text = string.gsub(txt,"ق7","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q18.png",true) elseif string.find(txt,"ق8") then local text = string.gsub(txt,"ق8","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q19.png",true) elseif string.find(txt,"ق9") then local text = string.gsub(txt,"ق9","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q20.png",true) elseif string.find(txt,"د1") then local text = string.gsub(txt,"د1","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q21.png",true) elseif string.find(txt,"د2") then local text = string.gsub(txt,"د2","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q22.png",true) elseif string.find(txt,"د3") then local text = string.gsub(txt,"د3","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q23.png",true) elseif string.find(txt,"د4") then local text = string.gsub(txt,"د4","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q24.png",true) elseif string.find(txt,"د5") then local text = string.gsub(txt,"د5","") local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) local lfin = convertirRelativo(len) outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q25.png",true) end end) function convertirRelativo(x) local rx = x/sx return rx end
-
GUIEditor.staticimage[1] = guiCreateStaticImage(9, 22, 508, 448, "saedaaaed.png", false, GUIEditor.window[3]) خليه كذا
-
تفضضضل مدامني فااضي سويته لكك ..# GUIEditor = { label = {} } Table = { 'حياكم الله في وناسه تايم' , 'قوانين السيرفر', 'يجب عدم السب او الشتم', 'يجب عدم تقليد اسماء الادمنية' } addEventHandler("onClientResourceStart",resourceRoot, function () local count = 1 GUIEditor.label[1] = guiCreateLabel(253, 671, 561, 57, "", false) guiSetFont(GUIEditor.label[1],( guiCreateFont("Dragon.ttf",13) or 'default-bold-small' )) guiSetText(GUIEditor.label[1] ,Table[count]) setTimer(function () count = count + 1 guiSetText(GUIEditor.label[1] ,Table[count]) if ( count == #Table ) then count = 0 end end,5000,0) end ) كل اللي عليك تضيف الكلام الي تبيه فوق بالجدول والباقي ع المود وبالتوفيق
-
New WnashTime || حصصريات وناسة تايم
!#NssoR_) replied to ععيونككء اخخر امممأليء ^'s topic in Arabic / العربية
الصوره الاولي شلت الاكواد منها من زماان بس الصوره قديمة امما بخصوص المهماررات خطأ مطبعي و المصور مااشاءالله سريع ولاتنسي طلال بما انه رجع وبيفجر السيرفر -
onClientGUIClick-- لما يضغط الزر getRealTime -- يجيب الوقت
-
لما تفتح اللوحة خليه كذا guiSetInputEnabled ( true ) ولما تقفل اللوحة خليه كذا guiSetInputEnabled ( false)
-
^ مدام ماتبيلها تاج ليش تضيفها للجدول ؟
-
function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,checkBuildings,checkVehicles,checkPeds,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center", _, _, _, true) end end end end local www = dxCreateFont("arial.ttf",13) addEventHandler("onClientRender",root, function () for i,k in ipairs (getElementsByType("player")) do if k ~= localPlayer and getElementData (k,"MASRIY") then dxDrawTextOnElement(k,getElementData (k,"MASRIY") or 'none',1,20,0,0,255,255,1,www) end end end) ملاحظة : بعدما تشغل السكربت سجل خروج وارجع سجل بحسابك
-
onMapLoad - Wiki : The source of this event refers to the loaded map.
-
Thailand
-
addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_button[3] ) then local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local text = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if ( sel ~= -1 ) then triggerServerEvent("killPlayer",localPlayer,text) end end end )
-
سو كولمن خاص بالرساله زي كذا PlayerName Msg NssoR : Hi فهمت قصدي ؟ عشان مايصير لخبطه
-
local key = "F4" GUIEditor = { gridlist = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(277, 21, 282, 424, "اللاعبين", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 26, 104, 389, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "اللاعبين", 0.9) --- for i, p in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, getPlayerName ( p), false, false ) end GUIEditor.label[1] = guiCreateLabel(119, 41, 157, 44, "Created Iphone", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 247, 0, 0) guiSetVisible (GUIEditor.window[1], false) bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end)