Jump to content

/؟ مشكلة ؟ \


Recommended Posts

تحققت وخلصت كل شيء وخربان !,

كلينت

  
Apps = { 
 {"][ قسم البلاغات # ]["}, 
 {"][ المذكرة # ]["}, 
 {"][ تغيير كلمة المرور # ]["}, 
 {"][ ارسال الفلوس # ]["}, 
 {"][ الملف الشخصي # ]["} 
} 
  
  
  local screenW, screenH = guiGetScreenSize() 
   
    function Img() 
        dxDrawImage((screenW - 338) / 2, (screenH - 526) / 2, 338, 526, "abed.jpg", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    end 
addEventHandler("onClientRender", root,Img) 
  
GUIEditor = { 
    gridlist = {}, 
 memo = {}, 
 button = {}, 
 edit = {}, 
 label = {} 
  
} 
grid = guiCreateGridList(820, 368, 279, 343, false)         
  col = guiGridListAddColumn( grid, "Apps :", 0.90 ) 
     for i, vk in ipairs (Apps) do 
    local row = guiGridListAddRow ( grid ) 
    guiGridListSetItemText(grid, row, col,vk[1], false, false) 
end 
  btn = guiCreateButton(935, 730, 47, 42, "", false) 
        guiSetAlpha(btn, 0.00) 
        memo = guiCreateMemo(818, 367, 281, 343, "-- المذكرة الخاصة \n-- من هنا تكتب ملاحظاتك", false)     
  CngPass = guiCreateButton(846, 554, 234, 38, "Change Pass !", false) 
        ss = guiCreateLabel(826, 383, 163, 24, "Old Pass :", false) 
        ss2 = guiCreateLabel(828, 475, 163, 24, "New Pass :", false) 
        OldPass = guiCreateEdit(828, 411, 262, 32, "", false) 
        NewPass = guiCreateEdit(828, 499, 262, 32, "", false)   
  
  sendMoney = guiCreateButton(913, 673, 168, 29, "أرسال !~", false) 
        sss = guiCreateLabel(1029, 383, 110, 20, "$ فلوسك $ :", false) 
        getmoney = guiCreateLabel(982, 403, 114, 19, "$"..getPlayerMoney(localPlayer), false) 
  guiLabelSetColor(getmoney, 23, 167, 0) 
        sss3 = guiCreateLabel(954, 614, 147, 15, "عدد الفلوس المراد ارسالها :", false) 
        sendMoneyTO = guiCreateEdit(910, 635, 181, 32, "", false) 
        Players = guiCreateGridList(822, 368, 155, 241, false)  
  col2 = guiGridListAddColumn( grid, "Players :", 0.90 ) 
   
  GUIEditor.label[2] = guiCreateLabel(1029, 383, 110, 20, "أسمك :", false) 
  guiLabelSetColor(GUIEditor.label[2], 23, 167, 0) 
        guiLabelSetColor(GUIEditor.label[2], 2, 154, 164) 
  
  
        Name = guiCreateLabel(910, 385, 119, 18, ""..gelPlayerName(), false) 
  
  
        GUIEditor.label[4] = guiCreateLabel(1029, 413, 110, 20, "سيريالك :", false) 
        guiLabelSetColor(GUIEditor.label[4], 2, 154, 164) 
  
  
        Serial = guiCreateLabel(837, 415, 192, 18, ""..getPlayerSerial(), false) 
  
  
        GUIEditor.label[6] = guiCreateLabel(1029, 443, 110, 20, "بنقك :", false) 
        guiLabelSetColor(GUIEditor.label[6], 2, 154, 164) 
  
  
        Ping = guiCreateLabel(837, 445, 192, 18, ""..getPlayerPing(), false) 
  
  
        GUIEditor.label[8] = guiCreateLabel(1029, 473, 110, 20, "فلوسك :", false) 
        guiLabelSetColor(GUIEditor.label[8], 2, 154, 164) 
  
  
        Money = guiCreateLabel(837, 475, 192, 18, ""..getPlayerMoney(), false)     
   
   
  
  
removeEventHandler("onClientRender", root, Img) 
guiSetVisible(grid,false) 
guiSetVisible(memo,false) 
guiSetVisible(btn,false) 
guiSetVisible(CngPass,false) 
guiSetVisible(ss,false) 
guiSetVisible(ss2,false) 
guiSetVisible(OldPass,false) 
guiSetVisible(NewPass,false) 
guiSetVisible(sendMoney,false) 
guiSetVisible(sss3,false) 
guiSetVisible(sendMoneyTo,false) 
guiSetVisible(Players,false) 
guiSetVisible(getmoney,false) 
guiSetVisible(GUIEditor.label[2],false) 
guiSetVisible(Name,false) 
guiSetVisible(GUIEditor.label[4],false) 
guiSetVisible(Serial,false) 
guiSetVisible(GUIEditor.label[6],false) 
guiSetVisible(Ping,false) 
guiSetVisible(GUIEditor.label[8],false) 
guiSetVisible(Money,false) 
  
bindKey ("F2","down", 
function () 
if addEventHandler("onClientRender", root, Img) then 
removeEventHandler("onClientRender", root, Img) 
guiSetVisible(grid,false) 
showCursor (false) 
else 
addEventHandler("onClientRender", root, Img) 
guiSetVisible(grid,true) 
showCursor (true) 
end 
end 
) 
  
addEventHandler('onClientGUIDoubleClick', root, 
function () 
if source == grid then 
if guiGridListGetSelectedItem ( grid ) ~= -1 then 
if guiGridListGetItemText (grid, guiGridListGetSelectedItem(grid), 1) == "][ قسم البلاغات # ][" then 
executeCommandHandler('report') 
removeEventHandler("onClientRender", root, Img) 
guiSetVisible(grid,false) 
elseif guiGridListGetItemText (grid, guiGridListGetSelectedItem(grid), 2) == "][ المذكرة # ][" then 
guiSetVisible(Memo,true) 
guiSetVisible(btn,true) 
guiSetVisible(grid,false) 
elseif guiGridListGetItemText (grid, guiGridListGetSelectedItem(grid), 3) == "][ تغيير كلمة المرور # ][" then 
guiSetVisible(btn,true) 
guiSetVisible(CngPass,true) 
guiSetVisible(OldPass,true) 
guiSetVisible(NewPass,true) 
guiSetVisible(ss,true) 
guiSetVisible(grid,false) 
guiSetVisible(ss2,true) 
elseif guiGridListGetItemText (grid, guiGridListGetSelectedItem(grid), 4) == "][ ارسال الفلوس # ][" then 
guiSetVisible(sendMoney,true) 
guiSetVisible(sendMoneyTO,true) 
guiSetVisible(getmoney,true) 
guiSetVisible(Players,true) 
guiSetVisible(btn,true) 
guiSetVisible(sss,true) 
guiSetVisible(sss3,true) 
guiSetVisible(grid,false) 
elseif guiGridListGetItemText (grid, guiGridListGetSelectedItem(grid), 5) == "][ الملف الشخصي # ][" then 
guiSetVisible(GUIEditor.label[2],true) 
guiSetVisible(Name,true) 
guiSetVisible(GUIEditor.label[4],true) 
guiSetVisible(Serial,true) 
guiSetVisible(GUIEditor.label[6],true) 
guiSetVisible(Ping,true) 
guiSetVisible(GUIEditor.label[8],true) 
guiSetVisible(Money,true) 
guiSetVisible(grid,false) 
end 
end 
end  
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function () 
if source == btn then 
guiSetVisible(grid,true) 
end 
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function () 
if source == sendMoney then 
if guiGridListGetSelectedItem ( Players ) ~= -1 then 
local p = guiGridListGetItemText (Players, guiGridListGetSelectedItem(Players), 1) 
local plr = getPlayerFromName( p ) 
local edit = guiGetText(sendMoneyTO) 
if edit and tonumber(edit) and edit ~= "" then 
triggerServerEvent("GiveTake",localPlayer,plr,edit) 
end 
end 
end 
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function () 
if source == CngPass then 
local GetPass = guiGetText(NewPass) 
local GetPasss = guiGetText(OldPass) 
if GetPass ~= "" and GetPasss then 
triggerServerEvent("Change", localPlayer, GetPass) 
end 
end 
end) 
  

سيرفر

  
addEvent("Change",true) 
addEventHandler("Change", root, 
function (GetPass) 
local account = getPlayerAccount( source ) 
if account and not isGuestAccount(account) then 
setAccountPassword( account, tostring(GetPass)) 
else  
outputChatBox("Frist Login !",255,0,0) 
end 
end 
) 
  
addEvent("GiveTake",true) 
addEventHandler("GiveTake", root, 
function (plr,edit) 
local playerS = getPlayerMoney(source) 
if playerS >= edit then 
givePlayerMoney(plr,edit) 
takePlayerMoney(source,edit) 
else  
outputChatBox("You Don't Have Engouh Money",255,0,0) 
end 
end 
) 
  
  

الكلنت حقك مليان اخطاء ~~~

:?:shock::?

Link to comment
if edit and tonumber(edit) and edit ~= "" then 

! تكفي tonumber(edit) آتوقع

+

local GetPass = guiGetText(NewPass) 
local GetPasss = guiGetText(OldPass) 
if GetPass ~= "" and GetPasss then 

مب فآضضي ؟ OldPass وين تحقق ان الـ

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...