-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
وش الخطا لاهنت .. OpenWin - غير معرف بعد الفنكشن . .
-
GUIEditor = { button = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() w = guiCreateWindow(101, 183, 628, 254, "Rules Mode V1 |^", false) guiWindowSetSizable(w, false) guiSetProperty(w, "CaptionColour", "A300CD74") GUIEditor.button[1] = guiCreateButton(9, 189, 607, 28, "[3.F] @ Copy Rghit 2014 ", false, w) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF003196") GUIEditor.memo[1] = guiCreateMemo(9, 55, 607, 124, " | Welcome To Server [3.F] | اهلآ وسهلآ في سيرفر للفن عنوان |\n\n1>Respect The Players And The Admin | الرجاء احترام الزوار و الأدمنية\n2>Dont Ask For Admin = Mute | الرجاء عدم طلب الأدمنية = ميوت\n3>Dont Insults + Publishing = Ban | الرجاء عدم السب + نشر السيرفرات =باند\n4>For Contact The Admin F8 > report | \n [Thanks To Vist Our Server | شكرآ لزيارتكم السيرفر]", false, w) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[1] = guiCreateLabel(241, 35, 152, 20, "Vistor Rules | قوانين الزوار", false, w) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 254, 254, 255) guiSetVisible (w, false) end ) bindKey ( "F1", "down", function ( ) if guiGetVisible (w ) then guiSetVisible ( w, false ) showCursor ( false ) else showCursor ( true ) guiSetVisible ( w, true ) end end )
-
المود لاعب!!!!!!!! والله جننتني انت حط التصحيح اشوف . .
-
ماشاء الله حتى بعد الفطور شفرت ؟ طيب لو يبي يحفظ الفلوس من جديد يجلس يحذف ويضيف يحذف ويضيف ؟ يسوي لوحة تجريبية او زر او امر ويستخدم اللي عطيته ويتبع الرد حقي .
-
والله يقدر يسوي ايفنت عن الضغط زر او كوماند , او زر يضغطه بس فعلا الفلوس تخزن في حسابات الاعبين . . ولازم يتحقق من الحسابات ويستخدم اللوب اللي عطيته ويتم تصفيرها تلقائيا فهاوه اكيد راح يطلع اخطاء لانه مو كامل . . . بترك تكملة السكربت لصاحب الموضوع . .
-
فهاوه , غلط . .. for _,v in ipairs ( getElementsByType("player") ) do setPlayerMoney(v, 0 )
-
جرب # addEventHandler ( "onResourceStart", resourceRoot, function ( nValue ) outputChatBox(getPlayerName( nValue).. 'Started This Resource ' , root, 255, 255, 0 ) end ) Edited @
-
i think you need to define the window on the top of the script like this , GUIEditor.window = { }
-
acceptedGroups = { "Admin", "Console", "Skillers", "Skillers2", } addEventHandler(' onResourceStart', resourceRoot, function ( ) myGate1 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z myGate2 = createObject ( ID, x, y, z, 0, 0, 0 ) --- add the id and x, y , z end ) addCommandHandler('open', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = true end end if (isAllowed == true) then moveObject ( myGate1, 4000, x, y, z ) --- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z ) --- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups !",source, 255, 0, 0 ) --- if not in the groups end end ) addCommandHandler('close', function ( ) local isAllowed = false for placeNumber, stringData in ipairs(acceptedGroups) do accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) ) then isAllowed = false end end if (isAllowed == false) then moveObject ( myGate1, 4000, x, y, z )--- add the id and x, y , z / move gate 1 moveObject ( myGate2, 4000, x, y, z )--- add the id and x, y , z / move gate 2 else outputChatBox ("You Are not in accepted Groups ! !",source, 255, 0, 0 ) end end )
-
Events : onPlayerLogin --- When Player Login to Account getPlayerAccount --- get ThePlayerAccount getAccountName --- get PlayerAccount Name ( xxx ) isObjectInACLGroup --- you can make a group for the allowed players or / tabel triggerClientEvent --- use triggerClientEvent Because Engine Functions Are ClientSide Only , engineLoadTXD --- skin load engineImportTXD --- skin import engineLoadDFF --- skin load engineReplaceModel ---- skin replace ---and you can use something like this , if not getAccountName == xxx then outputChatBox(' * This Skin is for Account xxx Only * ', source, 255, 255, 0 )
-
ياخي جرب كودي وتأكد من اسم ملفات txd + meta.xml وشوف .. طبعا لازم يكون عندك زر سوي اي لوحةة تجريب واطرح لي الاكواد وانا بعدل عليها . .
-
Try This , 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 blip = {} addEventHandler("onPlayerJoin", root, function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
-
Just Keep it, onPlayerJoin it will work when player enter immeditely .
-
your , welcome
-
addEvent( "onClientSend",true ) local serverDisplay,serverText addEventHandler( "onClientSend",root, function( ) textDisplayRemoveObserver( serverDisplay, source ) end ) addEventHandler( "onPlayerJoin",root, function( ) serverDisplay = textCreateDisplay( ) textDisplayAddObserver ( serverDisplay, source ) serverText = textCreateTextItem ( "Downloading.Please wait!", 0.5, 0.5,1,255,0,0,255,2,"center","center",200 ) textDisplayAddText ( serverDisplay, serverText ) end ) local timer = setTimer( function( ) if not isTransferBoxActive( ) then triggerServerEvent( "onClientSend",localPlayer ) killTimer( timer ) end end, 1000, 2 )
-
تكفون ي الربع مسسآعدتكم آلي خبير بالاجهزه هاردوير مدري وش
Max+ replied to i,xAhmed's topic in القسم العام
هج عنه , معروف اجهزة الالعاب , Sony , Toshiba Samsung وترا قطع اجهزة سوني وتوشيبا كلها سامسونج , انا جهازي سامسونج حرام بالله معي 3 سنين ماشكيت لا من حرارة ولاالعاب , وافبيس الاونلاين 61 يوصل معي . . ولا يعلق , وسرعة فتح الوندز بعد ماتجي شاشة تسجيل الدخول 3 ثواني ويفتح سطح المكتب : ) -
i think you can by using these functions engineReplaceModel engineLoadDFF
-
خلاص لاتعصب : ( تم , ولاترا اجيك السيرفر : (
-
if not isElement ( sound ) then يعني ذي تستخدم اذا الصوت غير شغال ؟ والثانية اذا الصوت شغال يغلقه . Ok , Rogger That ,
-
خلاص عدلته : ( بوازيك ورشاشات : ( ماتفقنا على كذا اصلا انا متعمد احطه بطرحكم ياخفافيش ههههههههههههه
-
image = guiCreateStaticImage( 20, 200, 100, 100, "imagename.png", false ) addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == image ) then ----Code end end ) Edited #
-
if not isElement ( sound ) then ليش تتحقق اذا لم يكون الالمنت صوت وبعدين تتحقق اذا الالمنت صوت وتحذف الصوت ؟
-
يعطيك العافية .. , addEventHandler( "onClientPlayerQuit", root, onTimed out ) تارك مسافة + الموضوع ايفنت سيرفر والشرح ايفنت كلاينت ؟