-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
جعفر القيمة الثالثة z ماراح تطلع وراح يطلع له خطأ لانك ماسويت " " عشان يحط الاحداثيات مثل ماسويت بالــ x, y + setClipboard غير الاخيره y الى z وماتوقع يحتاج ستيرنق فورمات . . addCommandHandler ( 'pos', function ( ) local x, y, z = getElementPosition ( localPlayer) outputChatBox ( "Your position is: " .. x .. " " .. y .. " " .. z.. " ", 239, 123, 0, true ); end )
-
[quote name=[#]~~,xMI[N]A=_)]الخطا في السيرفر يا احمد addEventHandler("onPlayerJoin",root, function () bindKey(source,"F4","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F4","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Console")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox("You must be an admin",thePlayer,255,0,0) end end انت لو تبي الرتبة ادمن يبقا لازم تحط اسمك في الاسل في قروب ادمن لو تبيه كونسول حط اسمك في قروب كونسول مافيه خطأ بالكود بس هو يبي يخلي نافذة F1 --- قيم مود بلاي تفتح للادمن وهي اصلا تفتح للجميع ولازم يعدل على القيم مود نفسه . .
-
سلامات يارجل صار ربوت ينفك ويصير كيبورد وشاشه ؟ مزيف 100% ذا كله سينما 3دي وسوني فيقاس " شغل اخراج " وذا الايفون 6 http://www.iphonedevar.com/2013/06/this ... -iphone-6/ اتوقع لو كان حقيقي, يمكن يكون ب 15 الف ريال سعودي اه لو كان حقيقي حل نص مشاكلنا في الكتابة واليوتيوب وغيره كان بيكون جوال كلن يبيه
-
اكيد راح يفتح لازم تعدل عليه اذا القيم مود play انا احسبك نافذة ثانية او قيم مود ثاني + استبدل اسم اللوحة في الكود لاسم لوحتك ...
-
والله مدري وش حايس انت حط ملف meta.xml هنا + /debugscript 3 عشان نشوف وش الاخطاء
-
جوالاتي Galaxy Note 3 LTE ابيض BlackBerry تورش اسود BlackBerry كيرف ابيض " وناوي اشتري ايفون 5 مستعمل "
-
سلامات يارجل صار ربوت ينفك ويصير كيبورد وشاشه ؟ مزيف 100% ذا كله سينما 3دي وسوني فيقاس " شغل اخراج " وذا الايفون 6 http://www.iphonedevar.com/2013/06/this ... -iphone-6/
-
الله يعافيك وانت الفله يابعدي حياك الله #
-
انسخ الكود من جديد عدلته شوف اخر رد لي #
-
---ClientSide function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI) -------ServerSide addEventHandler("onPlayerJoin",root, function () bindKey(source,"F1","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F1","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox("You must be an admin",thePlayer,255,0,0) end end
-
طيب اصبر لي شوي خلني امخمخ عليه لاني والله نص تركيز معي وليه تفتح 20 موضوع لاتزود مواضيع عشان ماتتقفل . . .
-
والله شف انا اضبط بالكلينت سايد باللوحات لاكن بالنسبة لاضافة حسابات او دخول خبرتي قليله . . . . هو كان عنده خطأ مسوي user, pass بس ماهو حاطها في الكلينت سايد
-
-- كلينت جرب GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler('onClientResourceStart', resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(318, 201, 392, 427, "~~ Real life الحياة الواقعية ~~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) showCursor(true) showChat(false) fadeCamera(false,5) GUIEditor.button[1] = guiCreateButton(15, 356, 103, 61, "Login", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(147, 356, 103, 61, "Register", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(272, 356, 103, 61, "Guest", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(102, 32, 244, 23, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(102, 119, 244, 23, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(13, 35, 82, 30, " UserName", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(15, 119, 82, 30, " PassWord", false, GUIEditor.window[1]) end ) addEventHandler('onClientGUIClick',resourceRoot, function () if source == GUIEditor.button[1] then user = guiGetText(GUIEditor.edit[1]) pass = guiGetText(GUIEditor.edit[2]) triggerServerEvent('onlogin',localPlayer,user, pass) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[3] then user = guiGetText(GUIEditor.edit[1]) pass = guiGetText(GUIEditor.edit[2]) triggerServerEvent('onReg',localPlayer,user, pass) end end ) addEvent('Hidewindow',true) addEventHandler('Hidewindow',root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) end ) --- سيرفر addEvent('onlogin', true) addEventHandler('onlogin',root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( source, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) addEvent('onReg',true) addEventHandler('onReg',root, function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) triggerClientEvent (source, "Hidewindow", source) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) triggerClientEvent (source, "Hidewindow", source) end end )
-
--- كلينت GUIEditor = { button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(318, 201, 392, 427, "~~ Real life الحياة الواقعية ~~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) showCursor(true) showChat(false) fadeCamera(false,5) GUIEditor.button[1] = guiCreateButton(15, 356, 103, 61, "Login", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(147, 356, 103, 61, "Register", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(272, 356, 103, 61, "Guest", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(105, 31, 251, 34, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(105, 109, 251, 34, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(13, 35, 82, 30, " UserName", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(15, 119, 82, 30, " PassWord", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onlogin",localPlayer,guiGetText( GUIEditor.memo[1]),guiGetText( GUIEditor.memo[2])) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[3] then triggerServerEvent("onReg",localPlayer,getLocalPlayer(),guiGetText( GUIEditor.memo[1]),guiGetText( GUIEditor.memo[2]) ) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) end ) --- سيرفر addEvent("onlogin", true) addEventHandler("onlogin",root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( source, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly!", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Login Error!", source, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", source, 255, 0, 0 ) end end ) addEvent("onReg", true) addEventHandler("onReg",root, function (user, pass) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( source, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", source, 255, 255, 0 ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "You Are Already Logged in !", source, 255, 255, 0 ) triggerClientEvent (source, "Hidewindow", source) end else account = addAccount ( user, pass ) if (logIn ( source, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", source, 255, 255, 0 ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Register Error !", source, 255, 0, 0 ) end end end )
-
i think these the functions you need .. ---------------------------- addCommandHandler getPlayerAccount getAccountName getPlayerFromName outputChatBox Event : 'onResourceStart' ---------------------------
-
--ClientSide local markerA = createMarker(1999.5583,-2286.297,12.7, "cylinder", 1.5, 250,243,5,240) createBlip (2003.5999755859,-2287.8000488281, 13,5) GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} windowjob = guiCreateWindow(448,172,480,418,"pilot job by Abdalbaset",false) guiSetAlpha(windowjob,1) guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[1] = guiCreateButton(9,332,389,77,"Take pilot job!",false,windowjob) GUIEditor_Button[2] = guiCreateButton(399,332,372,77,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(9,25,462,307,"this is pilot job you have to do missions to earn money ",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) addEventHandler("onClientMarkerHit", markerA, function ( hitElement ) if getElementType( hitElement) == "player" and ( hitElement == localPlayer) and not isPedInVehicle (hitElement) then guiSetVisible(windowjob, true) showCursor(true) end end ) addEventHandler("onClientGUIClick", GUIEditor_Button[1] , function ( ) marker1 = createMarker(1924.078,-2434.363,13.5391, "cylinder", 1.5, 250,243,5,240) blip1 = createBlip (1924.078,-2434.363,13.5391,51) triggerServerEvent("Assa",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end ) addEventHandler("onClientGUIClick", GUIEditor_Button[2] , function ( ) guiSetVisible(windowjob, false) showCursor(false) end ) addEventHandler("onClientMarkerLeave", markerA, function ( leaveElement ) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) and not isPedInVehicle (hitElement) then guiSetVisible(windowjob, false) showCursor(false) end end ) addEventHandler("onClientMarkerHit",marker1, function (hitElement) if getElementType( hitElement) == "player" and ( hitElement == localPlayer)and not isPedInVehicle (hitElement) then marker2= createMarker(-1292.881,-47.277,14.1484, "cylinder", 1.5, 250,243,5,240) blip2=createBlip (-1292.881,-47.277,14.1484) end end ) addEventHandler ( 'onPlayerQuit', root, function ( ) local attached = getAttachedElements ( source ); for _,v in next, attached do if getElementType ( v ) == 'blip' then destroyElement ( v ); end end end )
-
مثال -- if ( source == button1 ) then return end elseif ( source == button2 ) then Max ( ) function Max ( ) outputChatBox( ' Max ' , 255, 255, 0 ) end
-
Yes it's Lex128 [ Tactics GameMode Maker ] did it if you try change the keys outputChatBox(getPlayerName(localPlayer)..'is trying to use cheat and his contorls reset to normal ' i think he made a custom function to check that .
-
والله ماني متأكد من صدق نيتك ... طيب لو سويت لك اللي تبيه تحول لي اول وارسلك السكربت ؟
-
همممم والله الطريه مرررره حلووة بس انا اسوي كذا تفادي للاغلاط local MARK = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 255 ) -- ماركر للدخول للبيت addEventHandler ("onMarkerHit", MRM1,-- ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ function ( hitelement ) if getElementType ( hitelement ) == 'player' then setElementInterior(hitelement, 9, x,y,z ) -- X,Y,Zالاحداثيات داخل البيت end end ) --------- local MARKER = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 255 ) setElementInterior(MARKER, 9, x,y,z ) -- ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ addEventHandler ("onMarkerHit", MARKER, function ( hit ) if getElementType ( hit ) == 'player' then setElementInterior(hitt, 0, x,y,z ) -- الاحداثيات خارج البيت end end ) لو فيه اي اخطاء فإعلموا ان : السهر مأثر علي سهرآن من جد local MARK = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 255 ) -- ماركر للدخول للبيت addEventHandler ("onMarkerHit", MARK, function ( hitelement ) if getElementType ( hitelement ) == 'player' then setElementInterior(hitelement, 9, x,y,z ) -- X,Y,Zالاحداثيات داخل البيت end end ) --------- local MARKER = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 255 ) setElementInterior(MARKER, 9) -- نحط الماركر فوق في البيت addEventHandler ("onMarkerHit", MARKER, function ( hit ) if getElementType ( hit ) == 'player' then setElementInterior(hitt, 0, x,y,z ) -- الاحداثيات خارج البيت end end ) تبي تكحلها اعميتها if getElementType ( hit ) == 'player' then setElementInterior(hitt
-
addEventHandler ("onMarkerHit", MRM1, setElementInterior(hitt, ?
-
وش غيرت ب كوده ؟؟؟ ولا شي .
-
ع الأقل وضح له شو الخطأ .. عشان يعرف ويستفيد .. لا تعطني سمكة ولكن علمني كيف اصطاد انا اؤيد الدجاج يامربع وش صار على المربع بشر ض1
-
من حد ما شفت ردك هاد فكرت زيك بس سبقتني و نزلت الرد قبلي لاياشيخ ؟ كيف بدو يسوي ماركر واحد في مكانين مختلفين وانت تو تقول روح نام السهر مأثر عليك ومتفق مع طلال على انه لازم 2 ماركر هندي انا
-
حركة حلوه ذي اجل ليش الشله يسوون 2 ماركر و2 افنت " تتوقع تستاهل تنحط في " useful function ?