SaifPro Posted August 23, 2014 Share Posted August 23, 2014 انا سويت لوحة انتقلات تظهر اول ما تسجل اريد اللوحة تظهر بعد ما اسجل دخولي عشان انا سويتها بتظهر مع لوحة التسجيل Link to comment
nxFairlywell Posted August 23, 2014 Share Posted August 23, 2014 تحقق اذا كان اللاعب مب مسجل دخوله سيرفر function( ) account = getPlayerAccount(source) if isGuestAccount ( account ) then triggerClientEvent Link to comment
SaifPro Posted August 23, 2014 Author Share Posted August 23, 2014 تحقق اذا كان اللاعب مب مسجل دخولهسيرفر function( ) account = getPlayerAccount(source) if isGuestAccount ( account ) then triggerClientEvent ارفع اللوحة و حضرتك تقولي Link to comment
SaifPro Posted August 23, 2014 Author Share Posted August 23, 2014 (edited) --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(420, 200, 626, 384, "Warps", false) guiWindowSetSizable(wnd, false) guiSetProperty(wnd, "CaptionColour", "FF09F5E2") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 607, 355, "Flag.png", false, wnd) b1 = guiCreateButton(1, 2, 606, 87, "بداية", false, GUIEditor.staticimage[1]) guiSetAlpha(b1, 0.50) GUIEditor.label[1] = guiCreateLabel(4, -95, 592, 50, "بداية -------- Start", false, GUIEditor.button[1]) GUIEditor.label[2] = guiCreateLabel(593, 6, 14, 26, "", false, GUIEditor.staticimage[1]) GUIEditor.label[3] = guiCreateLabel(6, 12, 587, 70, "Start ---- بداية", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(6, 141, 587, 65, "دائري ----------- Da2ery", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[4], "sa-gothic") guiLabelSetColor(GUIEditor.label[4], 0, 0, 0) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(1, 270, 592, 85, "Na5el", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[5], "sa-gothic") guiLabelSetColor(GUIEditor.label[5], 193, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") b2 = guiCreateButton(3, 136, 594, 87, "", false, GUIEditor.staticimage[1]) guiSetAlpha(b2, 0.50) b3 = guiCreateButton(2, 268, 595, 87, "", false, GUIEditor.staticimage[1]) guiSetAlpha(b3, 0.50) end ),10000,1 ) function onGuiClick(button, state, absoluteX, absoluteY) if source == b1 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا setElementPosition(localPlayer,1145.22058,-2045.95593,69.00061) -- هنا الاحداثيات setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(b1,"NormalTextColour", "FF2AF209 ") -- لتليون الزر باللون الاخضر function onGuiClick(button, state, absoluteX, absoluteY) if source == b2 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا setElementPosition(localPlayer,1761.02942,867.64703,10.43460) -- هنا الاحداثيات setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(b2,"NormalTextColour", "FF2AF209 ") -- لتليون الزر باللون الاخضر function onGuiClick(button, state, absoluteX, absoluteY) if source == b3 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا setElementPosition(localPlayer,2045.95593,1023.89703,10.67188) -- هنا الاحداثيات setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(b3,"NormalTextColour", "FF2AF209 ") -- لتليون الزر باللون الاخضر addEventHandler ( "onClientGUIClick", root, function ( ) if source == b1 then guiSetVisible( wnd, false ) showCursor( false ) guiSetInputEnabled( false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == b2 then guiSetVisible( wnd, false ) showCursor( false ) guiSetInputEnabled( false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == b3 then guiSetVisible( wnd, false ) showCursor( false ) guiSetInputEnabled( false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == b1 then playSound("1.mp3") end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == b2 then playSound("1.mp3") end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == b3 then playSound("1.mp3") end end ) Edited August 23, 2014 by Guest Link to comment
nxFairlywell Posted August 23, 2014 Share Posted August 23, 2014 ههههههههههههههههههههههههههههههههه اما عاد وش ذا ^ ترا MTA لغة البرمجه حقها Lua Link to comment
SaifPro Posted August 23, 2014 Author Share Posted August 23, 2014 هههههههههههههههههههههههههههههههههاما عاد وش ذا ^ ترا MTA لغة البرمجه حقها Lua اسف دوست غلط Link to comment
xFace[B]ook Posted August 23, 2014 Share Posted August 23, 2014 اكوادك كلها حايسة مدري كيف رتبها افضل لك وتقدر تختصرها مدري ليه مطول الكود Link to comment
SaifPro Posted August 23, 2014 Author Share Posted August 23, 2014 اكوادك كلها حايسة مدري كيفرتبها افضل لك وتقدر تختصرها مدري ليه مطول الكود ولله العرفت اسوي عايز اللوحة تظهر بعد التسجيل Link to comment
Max+ Posted August 25, 2014 Share Posted August 25, 2014 طيب هات لوحة التسجيل وانا اكمله لك ، Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now