MR:SADIQ Posted February 6, 2013 Posted February 6, 2013 (edited) عدلو ليي ملف سيرفر addEvent("onSendMoney", true) addEventHandler("onSendMoney", getRootElement(), function(who, player) local money = getPlayerMoney(source) if tonumber(player) >= 200 then if tonumber(player) <= money then toWho = getPlayerFromName(who) if toWho ~= false then givePlayerMoney(toWho, player) takePlayerMoney(source, player) name = getPlayerName(source) outputChatBox("* You have given money amount of: #00ff00$" .. player .. " #0099ccto: #ff0000" .. who, source, 0, 150, 255, true) outputChatBox("* ".. name .. " #ff0000has given you money amount of: #00ff00$" .. player .. " #ff0000!", toWho, 255, 0, 0, true) else outputChatBox("* Player did not exist !", source, 255, 0, 0) end else outputChatBox("* you dont have enough money !", source, 255, 0, 0) end else outputChatBox("* the Less amount must be #00ff00$200 !", source, 255, 0, 0) end end ) addEvent("gived",true) addEventHandler("gived",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) giveWeapon ( source , 24,700 ) setPedWeaponSlot(source, getSlotFromWeapon(24)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon deagle", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $150 to buy deagle", source, 255, 0, 0, true) end end ) ------------------------------------------------------------------------------------------m4 addEvent("givem4",true) addEventHandler("givem4",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 250) then takePlayerMoney(source,250) giveWeapon ( source , 31,600 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon M4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $250 to buy M4", source, 255, 0, 0, true) end end ) ------------------------------------------------ grande addEvent("givegrn",true) addEventHandler("givegrn",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then takePlayerMoney(source,50000) giveWeapon ( source , 16,88 ) setPedWeaponSlot(source, getSlotFromWeapon(16)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon Grenade", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $50000 to buy Grenade", source, 255, 0, 0, true) end end ) ------------------------------------------------------------------------------- addEvent("givemk",true) addEventHandler("givemk",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 200) then takePlayerMoney(source,200) giveWeapon ( source , 30,800 ) setPedWeaponSlot(source, getSlotFromWeapon(30)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #ffffff Has Bought weapon AK_47", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $200 to buy AK-47", source, 255, 0, 0, true) end end ) ----------------------------------------------------------------------------------------- addEvent("givemp5",true) addEventHandler("givemp5",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) giveWeapon ( source , 29,800 ) setPedWeaponSlot(source, getSlotFromWeapon(29)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon MP5", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $150 to buy mp5", source, 255, 0, 0, true) end end ) ---------------------------------------------------------------- addEvent("TEC-9",true) addEventHandler("TEC-9",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 450) then takePlayerMoney(source,450) giveWeapon ( source , 32,800 ) setPedWeaponSlot(source, getSlotFromWeapon(32)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon ...", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $450 to buy TEC-9", source, 255, 0, 0, true) end end ) ----------------------------------------------------------------------------------------------- addEvent("givesnip",true) addEventHandler("givesnip",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 250) then takePlayerMoney(source,250) giveWeapon ( source , 34,999 ) setPedWeaponSlot(source, getSlotFromWeapon(34)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon SNIPER", getRootElement(), 255, 0, 0, true ) Edited February 6, 2013 by Guest
iPrestege Posted February 6, 2013 Posted February 6, 2013 https://forum.multitheftauto.com/viewtopic.php?f=119&t=46670 ------ ممكن الحين توضح وش المطلوب ؟ -_-" ؟
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 ملف سيرفر مو متطابق اوامره ويا اوامر ملف كلنت ابي تعديل ملف سيرفر
iPrestege Posted February 6, 2013 Posted February 6, 2013 ملف سيرفر مو متطابق اوامره ويا اوامر ملف كلنت ابي تعديل ملف سيرفر صعبة اشوف لك ملف "3000" سطر وش المشكلة بـ الضبط -_-" ؟
iPrestege Posted February 6, 2013 Posted February 6, 2013 مو ضابطين في محلهم على اللوحة مسوي شوب وتخبيص عشان اللوحة والمود تجميع -_-" كوري , !!
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 مو ضابطين في محلهم على اللوحة مسوي شوب وتخبيص عشان اللوحة والمود تجميع -_-" كوري , !! هههههه
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 قصدك مقاسات اللوحة ؟ قصدي انا الحقول والازرار مو على اللوحة
Mr.T9 Posted February 6, 2013 Posted February 6, 2013 الخطا من كلنت جرب هذا root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap2 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap4) pass = guiCreateEdit(97,94,171,33,"",false,tap4) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap4) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap4) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap4) onregister = guiCreateButton(191,152,113,34,"register",false,tap4) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap4) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true)
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 الخطا من كلنتجرب هذا root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap2 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap4) pass = guiCreateEdit(97,94,171,33,"",false,tap4) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap4) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap4) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap4) onregister = guiCreateButton(191,152,113,34,"register",false,tap4) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap4) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true )
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 جربت بس باقي حقول وازرار تسجيل الدخول+تسجيل مو في محلهم
iPrestege Posted February 6, 2013 Posted February 6, 2013 root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap2 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap2) pass = guiCreateEdit(97,94,171,33,"",false,tap2) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap2) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap2) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap2) onregister = guiCreateButton(191,152,113,34,"register",false,tap2) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap2) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true)
Mr.T9 Posted February 6, 2013 Posted February 6, 2013 تفضل root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap4 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap4) pass = guiCreateEdit(97,94,171,33,"",false,tap4) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap4) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap4) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap4) onregister = guiCreateButton(191,152,113,34,"register",false,tap4) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap4) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true)
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap2 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap2) pass = guiCreateEdit(97,94,171,33,"",false,tap2) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap2) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap2) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap2) onregister = guiCreateButton(191,152,113,34,"register",false,tap2) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap2) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true )
MR:SADIQ Posted February 6, 2013 Author Posted February 6, 2013 عندي مشكله انا الكتابة الي الي تسجيل دخول وكدا.. ماتصير عربي معا انا الملف lua
iMr.Dawix~# Posted February 6, 2013 Posted February 6, 2013 عندي مشكله انا الكتابة الي الي تسجيل دخول وكدا..ماتصير عربي معا انا الملف lua افتح الملف بالمفكره وحط ترميزه UTF-8 واحفظ واذا كنت في هوست قيم بيجيك مو عدل اذا في سيرفر بيجيك عدل My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Mr.T9 Posted February 6, 2013 Posted February 6, 2013 عدلت لك ملفك بس والله مو متاكد منه حمله http://www.gulfup.com/?Uy8G3n
iMr.Dawix~# Posted February 6, 2013 Posted February 6, 2013 عدلت لك ملفك بس والله مو متاكد منهحمله http://www.gulfup.com/?Uy8G3n مرح ياخذه بياخذ تعديل برستيج <راح تعبك ع الفاضي My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Mr.T9 Posted February 6, 2013 Posted February 6, 2013 عدلت لك ملفك بس والله مو متاكد منهحمله http://www.gulfup.com/?Uy8G3n مرح ياخذه بياخذ تعديل برستيج <راح تعبك ع الفاضي اي والله
iPrestege Posted February 6, 2013 Posted February 6, 2013 بس حبيت ان الاخ يفصل اكواد الشوب والزحمة الطويلة وماسك طريق ومدري وش root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffff00=login&send money | #330079Press #00ff00F2 To Open it =",0,255,0,true) shopWindow = guiCreateWindow(170,50,530,510,"#ffff00=login&send money ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,499,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) welcomeLabel = guiCreateLabel(120,40,410,20,"HI",false,info) guiLabelSetColor(welcomeLabel,0,255,55) comeLabel = guiCreateLabel(120,60,450,20,"ولكم",false,info) guiLabelSetColor(comeLabel,255,150,0) playerName = guiCreateLabel(6,90,300,70,'اسمك:',false,info) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) is = guiCreateLabel (6,300,420,70,'حياكم الله في سيرفرنا', false, tab5 ) guiLabelSetColor(is,0,127,255) ib = guiCreateLabel (6,330,420,70,'ـــــــــــــــــــــــــــــــ', false, tab5 ) guiLabelSetColor(ib,0,127,255) ix = guiCreateLabel(6,360,420,70,'Your Money:',false,tab5) guiLabelSetColor(ix,0,255,0) guiSetText ( ix, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(ix,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,78,480,20,"_______________________________________________________________________",false,info) tap4 = guiCreateTab("تسجيل+دخول",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap4) pass = guiCreateEdit(97,94,171,33,"",false,tap4) lname = guiCreateLabel(10,46,85,33,"اسمك:",false,tap4) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"الرمز",false,tap4) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"login",false,tap4) onregister = guiCreateButton(191,152,113,34,"register",false,tap4) info = guiCreateLabel(21,202,346,30,"SADIQ",false,tap4) guiLabelSetColor(info,0,255,0) tab5 = guiCreateTab("ارسال الاموال",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab5) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab5) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab5) sendBTN = guiCreateButton(150,280,130,36, "ارسال", false,tab5) ii = guiCreateLabel(6,390,420,70,"مود ارسال الاموال ولوحة تسجيل الدخولf2 ",false,tap5) guiLabelSetColor(ii,255,0,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("1.wav") end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == onlogin ) then triggerServerEvent("onlogin",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == onregister ) then triggerServerEvent("onregister",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == sendBTN ) then playerNick =
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