Mbtdaa Posted August 4, 2012 Share Posted August 4, 2012 (edited) السلام عليكم ياربع محتاجكم تشوفو وش الخطء وتصححولي لاهنتم لان تعبت على الشوب ومازبط كلينت 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> Edited August 12, 2012 by Guest Link to comment
3NAD Posted August 4, 2012 Share Posted August 4, 2012 (edited) ---- Accounts for Server Side Only ! addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then outputChatBox("قام الادمــن بـتـسـجــيل الـدخـول ".. getPlayerName(source) .. " ولــكــم ", root,255,255,255,true) end end) Edited August 4, 2012 by Guest Link to comment
Tete omar Posted August 4, 2012 Share Posted August 4, 2012 addEventHandler("onPlayerLogin", root, function(player) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) outputChatBox(" قام الادمــن بـتـسـجــيل الـدخـول " .. getPlayerName(source) .. " ولــكــم ", root,255,255,255) end end) Link to comment
Mbtdaa Posted August 4, 2012 Author Share Posted August 4, 2012 شكرا جميعا تمت الافادة Link to comment
top sniper Posted August 4, 2012 Share Posted August 4, 2012 addEventHandler("onPlayerLogin", root, function(player) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) outputChatBox(" قام الادمــن بـتـسـجــيل الـدخـول " .. getPlayerName(source) .. " ولــكــم ", root,255,255,255) end end) خطا https://wiki.multitheftauto.com/wiki/OnPlayerLogin The source of this event is the player element that just logged in. Link to comment
Tete omar Posted August 4, 2012 Share Posted August 4, 2012 addEventHandler("onPlayerLogin", root, function(player) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) outputChatBox(" قام الادمــن بـتـسـجــيل الـدخـول " .. getPlayerName(source) .. " ولــكــم ", root,255,255,255) end end) خطا https://wiki.multitheftauto.com/wiki/OnPlayerLogin The source of this event is the player element that just logged in. what ever correct addEventHandler("onPlayerLogin", root, function( ) local accName = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) outputChatBox(" قام الادمــن بـتـسـجــيل الـدخـول " .. getPlayerName(source) .. " ولــكــم ", root,255,255,255) end end) Link to comment
top sniper Posted August 4, 2012 Share Posted August 4, 2012 وش الخطء؟ addEventHandler("onPlayerLogin", root, function(_,acc) if isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("Admin")) then outputChatBox( قام الادمــن بـتـسـجــيل الـدخـول getPlayerName(source) .. " ولــكــم ", root,54,54,54) end end) كودك صح بس في خطا بال outputChatBox المفروض يكون كذا outputChatBox( "قام الادمــن بـتـسـجــيل الـدخـول "..getPlayerName(source) .. " ولــكــم ", getRootElement(),54,54,54) 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