Jump to content

مساعدة


Recommended Posts

  
GUIEditor = { 
    button = {}, 
    label = {}, 
    checkbox = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        win = guiCreateWindow(162, 62, 474, 440, "-:توزيع فلوس:-", false) 
        guiWindowSetSizable(win, false) 
        guiSetAlpha(win, 0.98) 
        guiSetVisible (win, false) 
        GUIEditor.button[1] = guiCreateButton(289, 320, 134, 76, "توزيع", false, win) 
        GUIEditor.edit[1] = guiCreateEdit(71, 61, 287, 54, "", false, win) 
        GUIEditor.label[1] = guiCreateLabel(379, 71, 62, 33, "المبلغ:", false, win) 
        GUIEditor.button[3] = guiCreateButton(10, 26, 24, 25, "X", false, win) 
        GUIEditor.edit[2] = guiCreateEdit(75, 169, 283, 55, "", false, win) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(331, 245, 17, 15, "", false, false, win) 
        GUIEditor.label[3] = guiCreateLabel(378, 183, 135, 78, "السبب:", false, win) 
        GUIEditor.label[4] = guiCreateLabel(378, 239, 147, 71, "اظهار السبب:", false, win) 
        GUIEditor.label[5] = guiCreateLabel(20, 365, 143, 75, "By:#1Ta[R]ek__)", false, win) 
        guiSetFont(GUIEditor.label[5], "default-bold-small")     
    end 
) 
  
  
  
bindKey("F2", "down", 
function() 
    triggerServerEvent("aa", localPlayer) 
end) 
  
addEvent("openWnd", true) 
addEventHandler("openWnd", root, 
function() 
    guiSetVisible(win, true) 
    showCursor(true) 
end) 
  
addEventHandler ("onClientGUIClick", resourceRoot, function () 
 if (source == GUIEditor.button[3]) then 
 guiSetVisible(win, false) 
    showCursor(false) 
 end 
 end) 
  
  addEventHandler ("onClientGUIClick", resourceRoot, function ( Player ) 
 if(guiCheckBoxGetSelected(GUIEditor.checkbox[2]))then 
 if (source == GUIEditor.button[1]) then 
givePlayerMoney ( Player, guiGetText ( GUIEditor.edit[1] ) ) 
outputChatBox("you have ben given a money from"  guiGetText ( GUIEditor.edit[1] )   "because ".. guiGetText ( GUIEditor.edit[2] ) ) 
  
 end 
 else 
 givePlayerMoney ( Player, guiGetText ( GUIEditor.edit[1] ) ) 
 end 
end) 

Link to comment

عندك اخطاء باخر الكود

هذا

outputChatBox("you have ben given a money from"  guiGetText ( GUIEditor.edit[1] )   "because ".. guiGetText ( GUIEditor.edit[2] ) ) 

يتحول الى هذا

outputChatBox("you have ben given a money from".. guiGetText ( GUIEditor.edit[1] ) .."because ".. guiGetText ( GUIEditor.edit[2] ) ) 

وبالنسبة الى هذا

addEventHandler ("onClientGUIClick", resourceRoot, function ( Player ) 

القيمة player

مو لاعب

والويكي كتب كذا

string button, string state, int absoluteX, int absoluteY 

وبالنسبة لهذا ايضا

givePlayerMoney ( Player, guiGetText ( GUIEditor.edit[1] ) ) 

توزيع بالككلنت وهمي

+

في الكلنت مافي ارقمنت الاعب

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...