-
Posts
2,156 -
Joined
-
Last visited
-
Days Won
6
Everything posted by ' A F .
-
My new project - [ iCodeLibrary ] - اصنع مكتبتك البرمجية
' A F . replied to #Wizard's topic in القسم العام
صراحة تصميم جذآب ي ويزآرد <3 بـ التوفيق لك welcome back Wizard -
كلأم عبدالكريم صحيح لأن هو حاط جدول ب الداتا لازم تستخدم unpack
-
لو طرحت الشرح هنا .. لأن الي ماعنده سكايب ؟
-
# لـيس كل سقوط نهأية , فسقوط المطر أجمل بداية ..
-
Events : 'onResourceStart' 'onPlayerMute' 'onPlayerUnmute' Functions : dxDrawImageOnElement -- [url=https://wiki.multitheftauto.com/wiki/DxDrawImageOnElement]https://wiki.multitheftauto.com/wiki/Dx ... eOnElement[/url] getElementsByType setElementData getElementData
-
https://forum.multitheftauto.com/viewtopic.php?f=160&t=90012
-
اما سيرفركم حربي ونعممم
-
مو بق ولا شيء انا مسويه كذا
-
انت حاط MakaerExit[source] onMarkerHit السورس هو الماركر
-
بـ التوفيق لك , بس مافيه صور او اي شيء عشان ندخل
-
# مايجي كلنت لان onPlayerCommand سيرفر تفضل سويته لك سيرفر local Numbers = { }; local Commands = { }; addEventHandler('onPlayerCommand',root, function ( _text ) if ( Numbers [ _text ] == 5 ) then return kickPlayer ( source , 'Anti-Spam-Command') end if ( Commands [ _text ] == true ) then outputChatBox('* Please Wait..',source,255,255,0,true) Numbers [ _text ] = Numbers [ _text ] +1 else Numbers [ _text ] = 0 Commands [ _text ] = true setTimer ( function ( ) Commands [ _text ] = nil Numbers [ _text ] = 0 end,7*1000,1) end end)
-
Server Side : هو ماراح يطردة بس مثلا كتب باف 8 kill يقتله ولو كتب مره ثانيه مايقدر الا بعد 7 ثواني
-
# بـ التوفيق لكم
-
تفضل Client Side : GUIEditor = { button = {}, staticimage = {}, edit = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.staticimage[1] = guiCreateStaticImage(155, 64, 453, 444, ":guieditor/images/Kara.png", false) GUIEditor.button[1] = guiCreateButton(68, 313, 130, 39, "Login", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(247, 313, 130, 39, "Register", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(156, 362, 130, 39, "Guest", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(48, 188, 98, 15, "Account :", false, GUIEditor.staticimage[1]) GUIEditor.label[2] = guiCreateLabel(48, 223, 98, 15, "Password :", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(166, 180, 167, 29, "", false, GUIEditor.staticimage[1]) GUIEditor.edit[2] = guiCreateEdit(166, 219, 167, 29, "", false, GUIEditor.staticimage[1]) guiEditSetMasked(GUIEditor.edit[2], true) GUIEditor.label[3] = guiCreateLabel(58, 68, 325, 41, "Welcome To Server", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") showCursor ( true ) end ) addEventHandler('onClientGUIClick',resourceRoot, function ( ) if ( source == GUIEditor.button [ 1 ] ) then if ( guiGetText ( GUIEditor.edit [ 1 ] ) == '' and guiGetText ( GUIEditor.edit [ 2 ] ) == '' ) then return outputChatBox('* الرجاء كتابة المعلومات',0,120,100,true) end triggerServerEvent('onLogin',localPlayer, guiGetText( GUIEditor.edit [ 1 ] ) , guiGetText ( GUIEditor.edit [ 2 ] ) ) elseif ( source == GUIEditor.button [ 2 ] ) then if ( guiGetText ( GUIEditor.edit [ 1 ] ) == '' and guiGetText ( GUIEditor.edit [ 2 ] ) == '' ) then return outputChatBox('* الرجاء كتابة المعلومات',0,120,100,true) end triggerServerEvent('onRegister',localPlayer, guiGetText( GUIEditor.edit [ 1 ] ) , guiGetText ( GUIEditor.edit [ 2 ] ) ) elseif ( source == GUIEditor.button [ 3 ] ) then guiSetVisible ( GUIEditor.staticimage [ 1 ] , false ) showCursor ( false ) end end) addEvent('loginPlayer',true) addEventHandler('loginPlayer',root, function ( ) guiSetVisible ( GUIEditor.staticimage [ 1 ] , false ) showCursor ( false ) end) Server Side : addEvent('onLogin',true) addEventHandler('onLogin',root, function ( username , password ) local acc = getAccount ( username , password ) if ( acc ~= false ) then logIn ( client , acc , password ) outputChatBox('* تـم تسجيل الدخول بناج',client,255,255,0,true) triggerClientEvent ( client , 'loginPlayer' , client ) else outputChatBox('* خطأ في اسم المستخدم او كلمة المرور',client,255,0,0,true) end end ) addEvent('onRegister',true) addEventHandler('onRegister',root,function ( username , password ) local setAccount = addAccount ( username , password ) if ( setAccount ) then outputChatBox('* تـم التسجيل , الرجاء تسجيل الدخول',client,255,255,0,true) else outputChatBox('* خطأ : يوجد حساب بـ الفعل',client,255,0,0,true) end end )
-
# تفضل سويته لك local Commands = { } addEventHandler('onPlayerCommand',root, function ( text ) if ( Commands [ text ] == true ) then cancelEvent (); outputChatBox('* Please Wait',source,255,255,255,true) else Commands [ text ] = true; setTimer ( function () Commands [ text ] = nil end,7*1000,1) end end )
-
سكربت جميل , بـ التوفيق حبيبي
-
function brob ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( 'user.'.. accName, aclGetGroup ( 'Console' ) ) then triggerClientEvent ( player, 'slam', player ) end end addCommandHandler ( 'Money', brob ) function tyt ( amount ) for g, thePlayers in ipairs ( getElementsByType ( 'player' ) ) do givePlayerMoney ( thePlayers, amount ) exports.TopBarChat:sendClientMessage("C.Console Give all Player ( "..amount.."$ )",thePlayers, 255, 127, 0, false ) end end addEvent ( 'walykm', true ) addEventHandler ( 'walykm', getRootElement ( ), tyt )
-
local Messages = {'hi'} addEventHandler('onPlayerChat',root, function ( message ) for index,values in ipairs ( Messages ) do if ( string.find ( message , values ) ) then outputChatBox(' ',root,255,255,255,true) cancelEvent () end end end)
-
الطلب الاول مافهمت عليك الطلب الثاني : guiBringToFront
-
لو بيسوي آكثر من ماركر آفضل له يسوي جدول