Mbtdaa
Members-
Posts
262 -
Joined
-
Last visited
Everything posted by Mbtdaa
-
يعطيكم العافيه ياشابب على الرد وتم اضافت الكود + ياليت يابرو تشرحلي اذا ماعليك امر ,
-
السلام عليكم لو سمحتم بغيت كودييين بسييييييطين انا سويت لوحة تسجيل ودخول واشتغلت تمام بس ابيها لما الواحد يخش السيرفر تييجي في وجهه هع ولما يسجل ولا يدخل لحسابه تروح bindKey("F2", "down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) ,
-
ماشتغل بس خلاص ياليت تقفلو الموضوع >
-
ممم كذا؟ كلينت bindKey("F2", "down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor_Button[5]) then triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) end end) function refreshStats() if guiGetVisible(GUIEditor_Image[1]) then guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) guiSetText(GUIEditor_Label[9],getPlayerSerial()) guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) end end addEventHandler("onClientRender", root, refreshStats) ------------------------------------command buy function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == GUIEditor_Button[1]) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("buyInvisible", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) سيررفر function LoginAndRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then else outputChatBox ( " Login Error !", player, 255, 0, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) local rootElement = getRootElement() function qq() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if (getPlayerMoney (source) >= 100) then takePlayerMoney(source, 100) local playername = getPlayerName(source) x,y,z = getElementPosition(source) hunter = createVehicle(425, x, y, z) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff "..playername.." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end) addEvent("buyInvisible", true) addEventHandler("buyInvisible", rootElement, function() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyHydra", true) addEventHandler("buyHydra", rootElement, function() local pname = getPlayerName( source ) if ( getPlayerMoney (source) >= 150 ) then takePlayerMoney(source, 150) x,y,z = getElementPosition( source ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle(source,hydra) outputChatBox("Hydra Obtained", source, 255, 255, 0, true) outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) else outputChatBox("You Not Have enough money.", source, 0, 0, 0, true) end end )
-
مم يعطيك العافيه تابل على الرد بس الموضوع الي حاطه ماله دخل >< و انا مافهمت وش قصدك بكود اي دي الاعب بس هاذا الي قدرت اسويه كلينت GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(425,241,465,368,"| لـوحـة الـشــوب تـصـمـيـم مـسـتـر سـلـطـان الاصـدار الـثـاني |",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,25,447,334,false,GUIEditor_Window[1]) Tab[1] = guiCreateTab("مـــعــلــومـــات",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(1,32,442,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(0,283,445,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(127,13,196,16,"| ولـــكــم حــيــاكــم الـلـه نــورتـــونــا |",false,Tab[1]) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(6,77,67,18,"YourName : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(72,77,278,35,"الاسم",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,20,147) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(5,108,119,17,"YourSkin : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(74,170,354,27,"الشخصيه",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[7],0,255,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(7,140,59,17,"YourPing : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(74,108,46,21,"سيريال",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[9],0,0,255) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(66,139,153,23,"بنج",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(8,169,67,17,"YourSerial : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[11],255,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Label[12] = guiCreateLabel(87,205,75,24,"فلوس",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[12],255,0,0) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Label[13] = guiCreateLabel(6,205,86,18,"YourMoney : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[13],0,0,255) guiSetFont(GUIEditor_Label[13],"default-bold-small") GUIEditor_Label[14] = guiCreateLabel(9,238,48,17,"YourID : ",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[14],0,0,255) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Label[15] = guiCreateLabel(58,233,47,24,"ايدي",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[15],255,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") Tab[2] = guiCreateTab("شـــراء ",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(261,72,112,71,"|| Nitro ||",false,Tab[2]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(261,224,112,71,"|| Repair ||",false,Tab[2]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(79,74,112,71,"|| Flip ||",false,Tab[2]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(74,224,112,71,"|| Invisible ||",false,Tab[2]) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(78,7,116,62,"images/fl.png",false,Tab[2]) GUIEditor_Image[2] = guiCreateStaticImage(257,5,122,67,"images/ni.png",false,Tab[2]) GUIEditor_Image[3] = guiCreateStaticImage(73,154,117,71,"images/in.png",false,Tab[2]) GUIEditor_Image[4] = guiCreateStaticImage(259,150,114,75,"images/re.png",false,Tab[2]) Tab[3] = guiCreateTab("تسجيل/دخول",GUIEditor_TabPanel[1]) GUIEditor_Label[16] = guiCreateLabel(194,34,54,18,"اســـمــك ",false,Tab[3]) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(55,67,329,43,"",false,Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(54,179,329,43,"",false,Tab[3]) GUIEditor_Label[17] = guiCreateLabel(178,144,86,18,"كــلــمــة الــســر",false,Tab[3]) guiSetFont(GUIEditor_Label[17],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(159,239,132,55,"تسجيل/دخول",false,Tab[3]) guiSetFont(GUIEditor_Button[5],"default-bold-small") bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("mrsl6an.wav") end end ) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") addEventHandler("onClientGUIClick",root, function() if (source == GUIEditor_Button[5]) then triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) end end) function refreshStats() if guiGetVisible(GUIEditor_Image[1]) then guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) guiSetText(GUIEditor_Label[9],getPlayerSerial()) guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID") end end addEventHandler("onClientRender", root, refreshStats) ------------------------------------command buy function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == GUIEditor_Button[1]) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("buyInvisible", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) سيرفر function LoginAndRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then else outputChatBox ( " Login Error !", player, 255, 0, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) local rootElement = getRootElement() function qq() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) x,y,z = getElementPosition( source ) hunter = createVehicle ( 425, x, y, z ) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyInvisible", true) addEventHandler("buyInvisible", rootElement, function() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyHydra", true) addEventHandler("buyHydra", rootElement, function() local pname = getPlayerName( source ) if ( getPlayerMoney (source) >= 150 ) then takePlayerMoney(source, 150) x,y,z = getElementPosition( source ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle(source,hydra) outputChatBox("Hydra Obtained", source, 255, 255, 0, true) outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) else outputChatBox("Not enough money.", source, 0, 0, 0, true) end end )
-
تصحيح لاهنتم كلينت bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("mrsl6an.wav") end end ) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") ------------------------------------command buy function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == GUIEditor_Button[1]) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("buyInvisible", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[5] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2])) end end ------------------------------------------------------------------------Ping label function refreshStats() if guiGetVisible(GUIEditor_Image[1], true) then GUIEditor_Label[10](GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) else guiSetText(GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------ money label] function refreshStatss() if guiGetVisible(GUIEditor_Image[1], true) then GUIEditor_Label[12](GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) else guiSetText(GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatss) ------------------------------------------------------------------------Name function refreshStatsss() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[5](GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) else guiSetText(GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatsss) ------------------------------------------------------------------------Serial label function refreshStatssss() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[9](GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) else guiSetText(GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatssss) ------------------------------------------------------------------------Skin label function refreshStatsssss() if guiGetVisible(GUIEditor_Image[2],true) then GUIEditor_Label[7](GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) else guiSetText(GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStatsssss) ) addEventHandler("getID",getRootElement(), function(id) if ( id ) then guiSetText ( GUIEditor_Label[15] , tostring(id)) end end سيرفر function LoginAndRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then else outputChatBox ( " Login Error !", player, 255, 0, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) local rootElement = getRootElement() function qq() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) x,y,z = getElementPosition( source ) hunter = createVehicle ( 425, x, y, z ) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyInvisible", true) addEventHandler("buyInvisible", rootElement, function() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyHydra", true) addEventHandler("buyHydra", rootElement, function() local pname = getPlayerName( source ) if ( getPlayerMoney (source) >= 150 ) then takePlayerMoney(source, 150) x,y,z = getElementPosition( source ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle(source,hydra) outputChatBox("Hydra Obtained", source, 255, 255, 0, true) outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) else outputChatBox("Not enough money.", source, 0, 0, 0, true) end end ) setTimer( function () for _,player in ipairs ( getElementsByType("player") ) do local id = getElementData ( player,"ID" ) triggerClientEvent(player,"getID",player, id or "N/A") end end ,1000,0) ميتا <meta> <script src="1.lua" type="client"></script> <script src="2.lua" type="server"></script> <file src="images/fl.png" /> <file src="images/in.png" /> <file src="images/ni.png" /> <file src="images/re.png" /> <file src="mrsl6an.wav" /> </meta>
-
السلام عليكم ياربع محتاجكم تشوفو وش الخطء وتصححولي لاهنتم لان تعبت على الشوب ومازبط كلينت GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(380,208,465,368,"| لـوحـة الـشــوب تـصـمـيـم مـسـتـر سـلـطـان الاصـدار الـثـاني |",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,25,447,334,false,GUIEditor_Window[1]) Tab[1] = guiCreateTab("مـــعــلــومـــات",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(1,32,442,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(0,283,445,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(127,13,196,16,"| ولـــكــم حــيــاكــم الـلـه نــورتـــونــا |",false,Tab[1]) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(379,56,61,19,"اســمــك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(107,43,267,37,"الاسم",false,Tab[1]) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(322,90,119,17,"رقــم شــخــصــيــتــك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(273,76,45,28,"الشخصيه",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[7],0,255,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(373,130,59,17,"بــنــجــك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(282,112,85,32,"البنج",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[9],0,255,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(369,172,59,17,"ايــبــيــك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,255,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(208,162,153,23,"الاي بي",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[11],255,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Label[12] = guiCreateLabel(352,217,77,17,"ســيــريــالــك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,255,0) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Label[13] = guiCreateLabel(0,197,350,36,"السيريال",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[13],255,255,0) guiSetFont(GUIEditor_Label[13],"default-bold-small") GUIEditor_Label[14] = guiCreateLabel(362,256,75,24,"فــلــوســك :",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[14],0,255,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Label[15] = guiCreateLabel(157,240,200,32,"الفلوس",false,Tab[1]) guiLabelSetColor(GUIEditor_Label[15],0,0,255) guiSetFont(GUIEditor_Label[15],"default-bold-small") Tab[2] = guiCreateTab("شـــراء ",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(261,72,112,71,"|| Nitro ||",false,Tab[2]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(261,224,112,71,"|| Repair ||",false,Tab[2]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(79,74,112,71,"|| Flip ||",false,Tab[2]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(74,224,112,71,"|| Invisible ||",false,Tab[2]) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(78,7,116,62,"images/fl.png",false,Tab[2]) GUIEditor_Image[2] = guiCreateStaticImage(257,5,122,67,"images/ni.png",false,Tab[2]) GUIEditor_Image[3] = guiCreateStaticImage(73,154,117,71,"images/in.png",false,Tab[2]) GUIEditor_Image[4] = guiCreateStaticImage(259,150,114,75,"images/re.png",false,Tab[2]) Tab[3] = guiCreateTab("تسجيل/دخول",GUIEditor_TabPanel[1]) GUIEditor_Label[16] = guiCreateLabel(194,34,54,18,"اســـمــك ",false,Tab[3]) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(55,67,329,43,"",false,Tab[3]) GUIEditor_Edit[2] = guiCreateEdit(54,179,329,43,"",false,Tab[3]) GUIEditor_Label[17] = guiCreateLabel(178,144,86,18,"كــلــمــة الــســر",false,Tab[3]) guiSetFont(GUIEditor_Label[17],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(159,239,132,55,"تسجيل/دخول",false,Tab[3]) guiSetFont(GUIEditor_Button[5],"default-bold-small") function mrsl6an() guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) playSound("mrsl6an.wav", false) end bindKey ("f2", "down", mrsl6an) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FF999999") guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FF999999") ------------------------------------command buy function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[3]) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == GUIEditor_Button[1]) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("buyInvisible", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == GUIEditor_Button[5] ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2])) end end) ------------------------------------------------------------------------Ping label function refreshStats() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[13](GUIEditor_Label[9]," "..getPlayerPing(getLocalPlayer())) else guiSetText(GUIEditor_Label[9]," "..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------ money label] function refreshStats() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[11](GUIEditor_Label[15]," $"..getPlayerMoney (getLocalPlayer())) else guiSetText(GUIEditor_Label[15]," $"..getPlayerMoney (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------Name function refreshStats() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[9](GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) else guiSetText(GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------Serial label function refreshStats() if guiGetVisible(GUIEditor_Image[1],true) then GUIEditor_Label[14](GUIEditor_Label[13]," "..getPlayerSerial (getLocalPlayer())) else guiSetText(GUIEditor_Label[13]," "..getPlayerSerial (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) ------------------------------------------------------------------------Skin label function refreshStats() if guiGetVisible(GUIEditor_Image[2],true) then GUIEditor_Label[10](GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) else guiSetText(GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) سيرفر function LoginAndRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then else outputChatBox ( " Login Error !", player, 255, 0, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) local rootElement = getRootElement() function qq() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end addEvent("buyNitro", true) addEventHandler( "buyNitro",getRootElement(),qq ) function fix() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("buyRepair", true) addEventHandler( "buyRepair",getRootElement(),fix ) function flip() local playername = getPlayerName ( source ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end addEvent("buyFlip", true) addEventHandler( "buyFlip",getRootElement(),flip ) addEvent("buyHunter", true) addEventHandler("buyHunter", rootElement, function() if ( getPlayerMoney (source) >= 100 ) then takePlayerMoney(source, 100) x,y,z = getElementPosition( source ) hunter = createVehicle ( 425, x, y, z ) warpPedIntoVehicle(source,hunter) outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyInvisible", true) addEventHandler("buyInvisible", rootElement, function() if ( getPlayerMoney (source) >= 15000 ) then takePlayerMoney(source, 15000) outputChatBox("#ffffff[#ffffff #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) setElementAlpha(getPedOccupiedVehicle(source),0) setElementAlpha(source,0) setPlayerNametagShowing(source, false) setTimer( setElementAlpha, 60000, 1, source, 500, true) setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) else outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) end end ) addEvent("buyHydra", true) addEventHandler("buyHydra", rootElement, function() local pname = getPlayerName( source ) if ( getPlayerMoney (source) >= 150 ) then takePlayerMoney(source, 150) x,y,z = getElementPosition( source ) hydra = createVehicle ( 520, x, y, z ) warpPedIntoVehicle(source,hydra) outputChatBox("Hydra Obtained", source, 255, 255, 0, true) outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) else outputChatBox("Not enough money.", source, 0, 0, 0, true) end end ) ميتا <meta> <script src="1.lua" type="client"></script> <script src="2.lua" type="server"></script> <file src="images/fl.png" /> <file src="images/in.png" /> <file src="images/ni.png" /> <file src="images/re.png" /> </meta>
-
الله يعطيك ترليون عافيه ياعناد اشتغل المود معي وكل الاكواد تمام جزاك الله خير وصدقني لدعيلك =)
-
ممم انا والله ماشوف خبصة *_* كل شي مرتب على العموم تسلم على المرور =)
-
اخوي جزاك الله خير على تطوعك .. بس انا ابي اتعلم مابي اعتمد على غير انا سويت الي اقدر عليه وانتظر احد يصححلي ولاهنت ياقلبي =)
-
ياحبيبي موب منسوخ وش سالفتكم مع المنسوخ؟ اانا بدون ماركب اكواد التسجيل والدخول تشتغل النافذه وكل شي تمام ومنت مصدق سو كلينت وحط فيه الاكواد الي فوق وشيل منه اكواد التسجيل والدخول ! + انا ماخذ الاكواد من رد عنا على ذا الموضوع viewtopic.php?f=119&t=45576
-
السلام عليكم اول شي اعتذر اني نزلت موضوع قبل شوي وماذكرت فيه كل شي ابيه بس انا ابي اعرف وش الخطء في الاكواد ذي انا لما اشيل اكواد الدخول والتسجيل يشتغل ولاما اركبها يخرب ليه ؟ + حطيت كود يغير الخط وماتغير + حطيت كود تلوين الزر ومازظبط الزر نفس لونه client ---------------------------------------------------- Window Window = guiCreateWindow ( 541,262,388,241, "login/register Panel", false ) ---------------------------------------------------- tabPanel tabPanel = guiCreateTabPanel (9,21,370,211, false, Window) ---------------------------------------------------- tablogin tablogin = guiCreateTab( "login/register", tabPanel ) ---------------------------------------------------- Label Name guiCreateLabel(159,4,40,17,"Name :",false,tablogin) guiSetFont ( dummyGUIElement, "default-bold-small" ) ---------------------------------------------------- guiedit guiedit = guiCreateEdit(37,22,296,39, "", false,tablogin) ---------------------------------------------------- Label pass guiCreateLabel(161,66,35,16,"pass :",false,tablogin) guiSetFont ( dummyGUIElement, "default-bold-small" ) ---------------------------------------------------- guiedit1 1 guiedit1 = guiCreateEdit(39,84,296,41, "", false,tablogin) ---------------------------------------------------- button button = guiCreateButton(102,133,167,45, "login/register", false,tablogin) guiSetProperty(button"NormalTextColour", "FF00FF00") guiSetProperty(button "HoverTextColour", "FF00FF00") ---------------------------------------------------- [bindKey] bindKey("F2", "down", function() guiSetVisible(Window,not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) guiSetInputEnabled(guiGetVisible(Window)) end) ---------------------------------------------------- Code addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == button ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(guiedit), guiGetText(guiedit1)) elseif ( source == button ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(guiedit), guiGetText(guiedit1)) end) ---------------------------------------------------- End server ---------------------------------------------------- Code function LoginAndRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then else outputChatBox ( "* Login Error !", player, 255, 0, 0 ) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) else outputChatBox ( "Register Error!", player, 255, 255, 0 ) end end end addEvent( "onLoginAndRegister", true ) addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) ---------------------------------------------------- End
-
ههههههه سوري طلعت اللخبطه مني تسلم يالغلا
-
اها اوك تسلم يالغلا ياليت تسكر الموضوع
-
الكواد مو كامل يالغلا لاتقول شي منت متاكد منه انا مسوي زر بذا الاكود !
-
السلام عليكم عندي استفسار يالغالين, الحين لما اسوي زر بالاكواد زي تسذا ض1 button = guiCreateButton(102,133,167,45, "login/register", false,tablogin) وش اسم الزر مثلا لو ابي اخلي له وضيفه زي مثلا نقول الدخول والتسجيل هاذي اكوادها addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == loginBTN ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(user), guiGetText(pass)) elseif ( source == registerBTN ) then triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(user), guiGetText(pass)) end) loginBTN هي اسم الزر طيب انا لما اسوي زر وين القى اسمه ,؟
-
متقبل اقتراحك اخوي كعزيز وغالي =)
-
اخوي متقبل رائيك بس انا تواجهني شوية مشاكل بالجوا وافضل بنسبة لي اني اسوي بالاكواد =)
-
ايوة ظبطت تسلم ياتابل جزاكم الله خير جميعن
-
ماجاء اخطاء للمود في debugscript 3
-
مم والله جربتها ياتابل ونفس الشي اظغط اف 2 ومايجي شي =)
-
ممم والله ماصار شي جديد ياعناد نفس المشكله يالغلا, =)
