-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
اكيد ماتتسكر المفروض مسوي زر او نسوي كوماند ذذ بـ اف8 بـ أي كلمة تبيها ذذ والكود مافية أي غلط مافية وظيفة للـأغلاق اصلا ذذ ! ماطلبت انت الا فتح النافذهـ
-
why would u need full script while problem isn't in whole script? just maybe in one line But i am not scripter I can only html and css Learn Lua .?
-
You're Welcome .
-
marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then guiSetVisible(النافذهـ,true) showCursor(true) end end )
-
Can not this why?Because Compiled script.
-
GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_edit = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "sr/ls.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0.248,0.1914,0.4756,0.5208,"لوحة التسجيل",true) --------- login = guiCreateButton(117,277,91,62,"دخول",false,GUIEditor_Window[1]) register = guiCreateButton(301,277,91,62,"تسجيل",false,GUIEditor_Window[1]) GUIEditor_edit[1] = guiCreateEdit(120,120,268,43,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(217,81,254,32,"اسمك:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(219,191,190,41,"كلمة السر",false,GUIEditor_Window[1]) GUIEditor_edit[2] = guiCreateEdit(120,222,268,43,"",false,GUIEditor_Window[1]) guiEditSetMasked ( GUIEditor_edit[2], true ) guiSetVisible(GUIEditor_Window[1],false) ------------------------------- function open () guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey( "F6", "down", open) ---------------------------- addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor_edit[1]) local pass = guiGetText(GUIEditor_edit[2]) if ( source == login ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) guiSetText(GUIEditor_edit[1], "") guiSetText(GUIEditor_edit[2], "") end elseif ( source == register ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) guiSetText(GUIEditor_edit[1], "") guiSetText(GUIEditor_edit[2], "") end end end )
-
جرب ذذ : GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_edit = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "sr/ls.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0.248,0.1914,0.4756,0.5208,"لوحة التسجيل",true) --------- login = guiCreateButton(117,277,91,62,"دخول",false,GUIEditor_Window[1]) register = guiCreateButton(301,277,91,62,"تسجيل",false,GUIEditor_Window[1]) GUIEditor_edit[1] = guiCreateEdit(120,120,268,43,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(217,81,254,32,"اسمك:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(219,191,190,41,"كلمة السر",false,GUIEditor_Window[1]) GUIEditor_edit[2] = guiCreateEdit(120,222,268,43,"",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) ------------------------------- function open () guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey( "F6", "down", open) ---------------------------- addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor_edit[1]) local pass = guiGetText(GUIEditor_edit[2]) if ( source == login ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) guiSetText(GUIEditor_edit[1], "") guiSetText(GUIEditor_edit[2], "") end elseif ( source == register ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) guiSetText(GUIEditor_edit[1], "") guiSetText(GUIEditor_edit[2], "") end end end )
-
https://forum.multitheftauto.com/search.php تغيير السلاح : setWeaponProperty سوبر ام 4 :
-
You're Welcome .
-
تفضل : GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_edit = {} function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "sr/ls.png", relative2 ) guiSetFont ( mainBackgroundLabel, newFont ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end GUIEditor_Window[1] = guiCreateWindow(0.248,0.1914,0.4756,0.5208,"لوحة التسجيل",true) --------- login = guiCreateButton(117,277,91,62,"دخول",false,GUIEditor_Window[1]) register = guiCreateButton(301,277,91,62,"تسجيل",false,GUIEditor_Window[1]) GUIEditor_edit[1] = guiCreateEdit(120,120,268,43,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(217,81,254,32,"اسمك:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(219,191,190,41,"كلمة السر",false,GUIEditor_Window[1]) GUIEditor_edit[2] = guiCreateEdit(120,222,268,43,"",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) ------------------------------- function open () guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey( "F6", "down", open) ---------------------------- addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor_edit[1]) local pass = guiGetText(GUIEditor_edit[2]) if ( source == login ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) end elseif ( source == register ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) end end end )
-
Forum bug. I tested the script and it loaded my team. yes that right Forum bug i copy you're code and edit the but from the Forum and you're code works .
-
setTimer(function() guiSetProperty( الزر, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 250, 0) اشكر تابل على مساعدتة سابقا في نفسس الططلب ذذ
-
الحين اسوي لك كود ثاني! دقايق بس بخلية يشتغل ماعليك ذا السيارهـ : GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} KSA11 = guiCreateWindow(441,226,543,443," ( خدمة الطيران )",false) guiSetVisible(KSA11,false) guiSetAlpha(KSA11,1) GUIEditor_Button[1] = guiCreateButton(112,61,314,71,"سوفا تاخذك لـ المطار 1",false,KSA11) GUIEditor_Button[2] = guiCreateButton(111,307,314,71,"سوفا تاخذك لـ المطار 3",false,KSA11) GUIEditor_Button[3] = guiCreateButton(112,180,314,71,"سوفا تاخذك لـ المطار 2",false,KSA11) GUIEditor_Memo[1] = guiCreateMemo(53,392,457,42,"كل رحله سوفا تكلفك 500 رياـل ..! ",false,KSA11) GUIEditor_Button[4] = guiCreateButton(10,30,46,39,"اغلاق",false,KSA11) GUIEditor_Label[1] = guiCreateLabel(213,142,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[1],255,0,255) GUIEditor_Label[2] = guiCreateLabel(215,268,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[2],255,255,0) GUIEditor_Label[3] = guiCreateLabel(213,35,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[3],0,255,0) marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) and not isPedInVehicle (player) then guiSetVisible(KSA11,true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onClick[1]",localPlayer) guiSetVisible(KSA11,false) showCursor(false) guiSetEnabled ( GUIEditor_Button[1], false ) guiSetEnabled ( GUIEditor_Button[2], true ) guiSetEnabled ( GUIEditor_Button[3], true ) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onClick[2]",localPlayer) guiSetEnabled ( GUIEditor_Button[1], true ) guiSetEnabled ( GUIEditor_Button[2], false ) guiSetEnabled ( GUIEditor_Button[3], true ) guiSetVisible(KSA11,false) showCursor(false) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("onClick[3]",localPlayer) guiSetEnabled ( GUIEditor_Button[1], true ) guiSetEnabled ( GUIEditor_Button[2], true ) guiSetEnabled ( GUIEditor_Button[3], false ) guiSetVisible(KSA11,false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(KSA11,false) showCursor(false) end end )
-
addEventHandler("onClientRender",root, function () local x, y, z = getElementPosition (localPlayer ) if ( string.format("%.5f", x) == x and string.format("%.5f", y) == y and string.format("%.5f", z) == z ) then if ( guiGetEnabled ( GUIEditor_Button[3] ) == false ) then return end guiSetEnabled ( GUIEditor_Button[3], false ) else if ( guiGetEnabled ( GUIEditor_Button[3] ) == true ) then return end guiSetEnabled ( GUIEditor_Button[3], true ) end return x, y, z end ) جرب ذا المثال ماجربتة ذذ !
-
أعرف وش يسوي بس أقصد ماله داعي بالكود ذذ هذا زايد بالغلط ضفتة لاني كنت بسوية بالاحداثيات if (check == "pos") سوي الماركرات جدول
-
== Client Side == GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} KSA11 = guiCreateWindow(441,226,543,443," ( خدمة الطيران )",false) guiSetVisible(KSA11,false) guiSetAlpha(KSA11,1) GUIEditor_Button[1] = guiCreateButton(112,61,314,71,"سوفا تاخذك لـ المطار 1",false,KSA11) GUIEditor_Button[2] = guiCreateButton(111,307,314,71,"سوفا تاخذك لـ المطار 3",false,KSA11) GUIEditor_Button[3] = guiCreateButton(112,180,314,71,"سوفا تاخذك لـ المطار 2",false,KSA11) GUIEditor_Memo[1] = guiCreateMemo(53,392,457,42,"كل رحله سوفا تكلفك 500 رياـل ..! ",false,KSA11) GUIEditor_Button[4] = guiCreateButton(10,30,46,39,"اغلاق",false,KSA11) GUIEditor_Label[1] = guiCreateLabel(213,142,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[1],255,0,255) GUIEditor_Label[2] = guiCreateLabel(215,268,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[2],255,255,0) GUIEditor_Label[3] = guiCreateLabel(213,35,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[3],0,255,0) marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then guiSetVisible(KSA11,true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function () local Check = getElementPosition( localPlayer ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onClick[1]",localPlayer) guiSetVisible(KSA11,false) showCursor(false) guiSetEnabled ( GUIEditor_Button[1], false ) guiSetEnabled ( GUIEditor_Button[2], true ) guiSetEnabled ( GUIEditor_Button[3], true ) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onClick[2]",localPlayer) guiSetEnabled ( GUIEditor_Button[1], true ) guiSetEnabled ( GUIEditor_Button[2], false ) guiSetEnabled ( GUIEditor_Button[3], true ) guiSetVisible(KSA11,false) showCursor(false) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("onClick[3]",localPlayer) guiSetEnabled ( GUIEditor_Button[1], true ) guiSetEnabled ( GUIEditor_Button[2], true ) guiSetEnabled ( GUIEditor_Button[3], false ) guiSetVisible(KSA11,false) showCursor(false) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(KSA11,false) showCursor(false) end end )
-
وش قصدك بـ ينقفل المطار؟ ؟؟
-
== Client Side == GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} KSA11 = guiCreateWindow(441,226,543,443," ( خدمة الطيران )",false) guiSetVisible(KSA11,false) guiSetAlpha(KSA11,1) GUIEditor_Button[1] = guiCreateButton(112,61,314,71,"سوفا تاخذك لـ المطار 1",false,KSA11) GUIEditor_Button[2] = guiCreateButton(111,307,314,71,"سوفا تاخذك لـ المطار 3",false,KSA11) GUIEditor_Button[3] = guiCreateButton(112,180,314,71,"سوفا تاخذك لـ المطار 2",false,KSA11) GUIEditor_Memo[1] = guiCreateMemo(53,392,457,42,"كل رحله سوفا تكلفك 500 رياـل ..! ",false,KSA11) GUIEditor_Button[4] = guiCreateButton(10,30,46,39,"اغلاق",false,KSA11) GUIEditor_Label[1] = guiCreateLabel(213,142,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[1],255,0,255) GUIEditor_Label[2] = guiCreateLabel(215,268,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[2],255,255,0) GUIEditor_Label[3] = guiCreateLabel(213,35,87,27,"رحله سعيده",false,KSA11) guiLabelSetColor(GUIEditor_Label[3],0,255,0) marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then guiSetVisible(KSA11,true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onClick[1]",localPlayer) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onClick[2]",localPlayer) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("onClick[3]",localPlayer) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible(KSA11,false) showCursor(false) end end ) == Server Side == addEvent("onClick[1]",true) addEventHandler("onClick[1]",root, function () local Money = getPlayerMoney(source) if ( Money >= 500) then takePlayerMoney(source,500) spawnPlayer (source,x,y,z) outputChatBox("القد وصلت بـ سلام ",source, 0, 255, 0, true) else outputChatBox("ليس لديك مال كافي لـ السفر",source, 255, 0, 0, true) end end ) addEvent("onClick[2]",true) addEventHandler("onClick[2]",root, function () local Money = getPlayerMoney(source) if ( Money >= 500) then takePlayerMoney(source,500) spawnPlayer (source,x,y,z) outputChatBox("القد وصلت بـ سلام ",source, 0, 255, 0, true) else outputChatBox("ليس لديك مال كافي لـ السفر",source, 255, 0, 0, true) end end ) addEvent("onClick[3]",true) addEventHandler("onClick[3]",root, function () local Money = getPlayerMoney(source) if ( Money >= 500) then takePlayerMoney(source,500) spawnPlayer (source,x,y,z) outputChatBox("القد وصلت بـ سلام ",source, 0, 255, 0, true) else outputChatBox("ليس لديك مال كافي لـ السفر",source, 255, 0, 0, true) end end ) غير الاحداثيات بالكلنت والسيرفر بس والسكربت يكون كامل كذا وبس بيغير الشخصية يوم يسوي سباون للمعلومية!
-
== Client Side == addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor_Button[1] ) then triggerServerEvent("onClick[1]",localPlayer) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onClick[2]",localPlayer) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent("onClick[3]",localPlayer) end end ) marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then guiSetVisible(Window,true) showCursor(true) end end ) اكيد مفكرهـ خاصة بـ الكلنت فقط باللوحة اللي انت مسويها! ذذ | كلنت اللوحة لملعلومية , وسوي ملف سيرفر ذذ!
-
== Client Side == addEventHandler("onClientGUIClick",root, function () if ( source == الصورهـ then triggerServerEvent("onSpawn",localPlayer) end ) == Server Side == addEvent("onSpawn",true) addEventHandler("onSpawn",root, function() spawnPlayer(source,x,y,z) end )
-
اصلا اللي سويتوهـ غلط ×_÷ الرجال يبية بـ فلوس يروح! ذذ صحيح ؟