Jump to content

مساعده :)


Froze

Recommended Posts

السلام عليكم ورحمة الله

انا سويت مود ارسال المال

بس مشكلتة ما يرسل فلوس وما يطلع بالدي بق اي شي

هذي الاكواد

client

local List = guiCreateGridList(0.40, 0.40, 0.12, 0.26, true) 
local Column = guiGridListAddColumn( List, "Send To :", 0.90 ) 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(0.52, 0.49, 0.09, 0.05, "إرسال المال", true) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE2EF0F") 
  
  
        GUIEditor.edit[1] = guiCreateEdit(0.52, 0.45, 0.09, 0.03, "", true) 
         
        for i,v in ipairs(getElementsByType("player")) do 
        local Row = guiGridListAddRow (List) 
         guiGridListSetItemText (List, Row, Column, getPlayerName(v), false, false ) 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
    end 
    end 
) 
  
local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientRender", root, 
    function() 
            if ShowPanel then 
        p1 = dxDrawLine(520 - 1,  251 - 1, (520 - 1) + 0, ( 251 - 1) + 40, tocolor(203, 0, 0, 150), 9, false) 
        p2 = dxDrawRectangle(529, 251, 320, 39, tocolor(138, 138, 138, 150), false) 
        p3 = dxDrawLine(520, 295, 520, 528, tocolor(226, 239, 15, 150), 9, false) 
        p4 = dxDrawRectangle(530, 295, 319, 232, tocolor(138, 138, 138, 150), false) 
        p5 = dxDrawText("Send Money Panel", 548, 252, 813, 290, tocolor(203, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) 
        p6 = dxDrawText("Created By Froze\"$", 717, 489, 844, 527, tocolor(226, 239, 15, 255), 1.00, "default", "center", "center", false, false, false, false, false) 
    end 
    end 
) 
  
bindKey("F3", "down", 
function () 
if ShowPanel then 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
ShowPanel = false 
showCursor(false) 
else 
guiSetAlpha(GUIEditor.button[1], 150) 
guiSetAlpha(GUIEditor.edit[1], 150) 
guiSetAlpha(List, 150) 
ShowPanel = true 
showCursor(true) 
end  
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then  
showCursor(false) 
ShowPanel = false 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
  
         local name = guiGridListGetItemText(List, guiGridListGetSelectedItem(List) ,1) 
         local money = guiGetText(GUIEditor.edit[1]) 
         if ( guiGridListGetSelectedItem(List) ~= -1 ) then 
         if name == "" or name == " " then return end 
            if tonumber ( money ) then 
         triggerServerEvent("onSendMoney", getLocalPlayer(), name, money) 
       end 
       end 
end  
end) 

server

addEvent("onSendMoney", true)  
addEventHandler("onSendMoney", getRootElement(),  
 function(name, money) 
 if tonumber(money) then  
    if getPlayerMoney(source) >= tonumber(money) and tonumber(money) >= 120 then  
        toWho = getPlayerFromName(name) 
        if toWho ~= false then 
            givePlayerMoney(toWho, money) 
            takePlayerMoney(source, money)  
            name = getPlayerName(source) 
            outputChatBox("* you give this player: #00ff00$" .. money .. " #0099ccmoney: #ff0000" .. name, source, 0, 150, 255, true) 
            outputChatBox("* ".. name .. " #ff0000this player Give you money #00ff00$" .. money .. " #ff0000!", toWho, 255, 0, 0, true) 
        else 
            outputChatBox("* Player did not exist !", source, 255, 0, 0) 
        end 
        else  
            outputChatBox("* Less Of Money Send = '120' or You Not Have " .. money .. "", source,255,0,0)  
        end  
        else  
            outputChatBox("* Please Write Number", source,255,0,0)  
    end 
end) 
  

Link to comment

ججرب

  
  
   
  
GUIEditor = { 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(0.52, 0.49, 0.09, 0.05, "إرسال المال", true) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE2EF0F") 
        GUIEditor.edit[1] = guiCreateEdit(0.52, 0.45, 0.09, 0.03, "", true) 
       local List = guiCreateGridList(0.40, 0.40, 0.12, 0.26, true) 
local Column = guiGridListAddColumn( List, "Send To :", 0.90 ) 
        for i,v in ipairs(getElementsByType("player")) do 
        local Row = guiGridListAddRow (List) 
         guiGridListSetItemText (List, Row, Column, getPlayerName(v), false, false ) 
         guiSetVisible(List,false) 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
    end 
    end 
) 
  
local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientRender", root, 
    function() 
            if ShowPanel then 
        p1 = dxDrawLine(520 - 1,  251 - 1, (520 - 1) + 0, ( 251 - 1) + 40, tocolor(203, 0, 0, 150), 9, false) 
        p2 = dxDrawRectangle(529, 251, 320, 39, tocolor(138, 138, 138, 150), false) 
        p3 = dxDrawLine(520, 295, 520, 528, tocolor(226, 239, 15, 150), 9, false) 
        p4 = dxDrawRectangle(530, 295, 319, 232, tocolor(138, 138, 138, 150), false) 
        p5 = dxDrawText("Send Money Panel", 548, 252, 813, 290, tocolor(203, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) 
        p6 = dxDrawText("Created By Froze\"$", 717, 489, 844, 527, tocolor(226, 239, 15, 255), 1.00, "default", "center", "center", false, false, false, false, false) 
    end 
    end 
) 
  
bindKey("F3", "down", 
function () 
if ShowPanel then 
guiSetVisible(List,false) 
guiSetVisible(GUIEditor.edit[1], false) 
guiSetVisible(GUIEditor.button[1],false) 
ShowPanel = false 
showCursor(false) 
else 
guiSetVisible(List,true) 
guiSetVisible(GUIEditor.edit[1], true) 
guiSetVisible(GUIEditor.button[1],true) 
ShowPanel = true 
showCursor(true) 
end 
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then 
showCursor(false) 
ShowPanel = false 
      guiSetVisible(List,false) 
guiSetVisible(GUIEditor.edit[1], false) 
guiSetVisible(GUIEditor.button[1],false) 
  
         local name = guiGridListGetItemText(List, guiGridListGetSelectedItem(List) ,1) 
         local money = guiGetText(GUIEditor.edit[1]) 
         if ( guiGridListGetSelectedItem(List) ~= -1 ) then 
         if name == "" or name == " " then return end 
            if tonumber ( money ) then 
         triggerServerEvent("onSendMoney", getLocalPlayer(), name, money) 
       end 
       end 
end 
end) 

Link to comment

هذآ كود برو قيمر بس عدلت عليه تعديل بسيط جرب

  
  
  
  
GUIEditor = { 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(0.52, 0.49, 0.09, 0.05, "إرسال المال", true) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE2EF0F") 
        GUIEditor.edit[1] = guiCreateEdit(0.52, 0.45, 0.09, 0.03, "", true) 
        List = guiCreateGridList(0.40, 0.40, 0.12, 0.26, true) 
        Column = guiGridListAddColumn( List, "Send To :", 0.90 ) 
        for i,v in ipairs(getElementsByType("player")) do 
         Row = guiGridListAddRow (List) 
         guiGridListSetItemText (List, Row, Column, getPlayerName(v), false, false ) 
         guiSetVisible(List,false) 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
    end 
    end 
) 
  
screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientRender", root, 
    function() 
            if ShowPanel then 
        p1 = dxDrawLine(520 - 1,  251 - 1, (520 - 1) + 0, ( 251 - 1) + 40, tocolor(203, 0, 0, 150), 9, false) 
        p2 = dxDrawRectangle(529, 251, 320, 39, tocolor(138, 138, 138, 150), false) 
        p3 = dxDrawLine(520, 295, 520, 528, tocolor(226, 239, 15, 150), 9, false) 
        p4 = dxDrawRectangle(530, 295, 319, 232, tocolor(138, 138, 138, 150), false) 
        p5 = dxDrawText("Send Money Panel", 548, 252, 813, 290, tocolor(203, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) 
        p6 = dxDrawText("Created By Froze\"$", 717, 489, 844, 527, tocolor(226, 239, 15, 255), 1.00, "default", "center", "center", false, false, false, false, false) 
    end 
    end 
) 
  
bindKey("F3", "down", 
function () 
if ShowPanel then 
guiSetVisible(List,false) 
guiSetVisible(GUIEditor.edit[1], false) 
guiSetVisible(GUIEditor.button[1],false) 
ShowPanel = false 
showCursor(false) 
else 
guiSetVisible(List,true) 
guiSetVisible(GUIEditor.edit[1], true) 
guiSetVisible(GUIEditor.button[1],true) 
ShowPanel = true 
showCursor(true) 
end 
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then 
showCursor(false) 
ShowPanel = false 
      guiSetVisible(List,false) 
guiSetVisible(GUIEditor.edit[1], false) 
guiSetVisible(GUIEditor.button[1],false) 
  
         local name = guiGridListGetItemText(List, guiGridListGetSelectedItem(List) ,1) 
         local money = guiGetText(GUIEditor.edit[1]) 
         if ( guiGridListGetSelectedItem(List) ~= -1 ) then 
         if name == "" or name == " " then return end 
            if tonumber ( money ) then 
         triggerServerEvent("onSendMoney", getLocalPlayer(), name, money) 
       end 
       end 
end 
end) 

Link to comment
السلام عليكم ورحمة الله

انا سويت مود ارسال المال

بس مشكلتة ما يرسل فلوس وما يطلع بالدي بق اي شي

هذي الاكواد

client

local List = guiCreateGridList(0.40, 0.40, 0.12, 0.26, true) 
local Column = guiGridListAddColumn( List, "Send To :", 0.90 ) 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(0.52, 0.49, 0.09, 0.05, "إرسال المال", true) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE2EF0F") 
  
  
        GUIEditor.edit[1] = guiCreateEdit(0.52, 0.45, 0.09, 0.03, "", true) 
         
        for i,v in ipairs(getElementsByType("player")) do 
        local Row = guiGridListAddRow (List) 
         guiGridListSetItemText (List, Row, Column, getPlayerName(v), false, false ) 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
    end 
    end 
) 
  
local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientRender", root, 
    function() 
            if ShowPanel then 
        p1 = dxDrawLine(520 - 1,  251 - 1, (520 - 1) + 0, ( 251 - 1) + 40, tocolor(203, 0, 0, 150), 9, false) 
        p2 = dxDrawRectangle(529, 251, 320, 39, tocolor(138, 138, 138, 150), false) 
        p3 = dxDrawLine(520, 295, 520, 528, tocolor(226, 239, 15, 150), 9, false) 
        p4 = dxDrawRectangle(530, 295, 319, 232, tocolor(138, 138, 138, 150), false) 
        p5 = dxDrawText("Send Money Panel", 548, 252, 813, 290, tocolor(203, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) 
        p6 = dxDrawText("Created By Froze\"$", 717, 489, 844, 527, tocolor(226, 239, 15, 255), 1.00, "default", "center", "center", false, false, false, false, false) 
    end 
    end 
) 
  
bindKey("F3", "down", 
function () 
if ShowPanel then 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
ShowPanel = false 
showCursor(false) 
else 
guiSetAlpha(GUIEditor.button[1], 150) 
guiSetAlpha(GUIEditor.edit[1], 150) 
guiSetAlpha(List, 150) 
ShowPanel = true 
showCursor(true) 
end  
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then  
showCursor(false) 
ShowPanel = false 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
  
         local name = guiGridListGetItemText(List, guiGridListGetSelectedItem(List) ,1) 
         local money = guiGetText(GUIEditor.edit[1]) 
         if ( guiGridListGetSelectedItem(List) ~= -1 ) then 
         if name == "" or name == " " then return end 
            if tonumber ( money ) then 
         triggerServerEvent("onSendMoney", getLocalPlayer(), name, money) 
       end 
       end 
end  
end) 

server

addEvent("onSendMoney", true)  
addEventHandler("onSendMoney", getRootElement(),  
 function(name, money) 
 if tonumber(money) then  
    if getPlayerMoney(source) >= tonumber(money) and tonumber(money) >= 120 then  
        toWho = getPlayerFromName(name) 
        if toWho ~= false then 
            givePlayerMoney(toWho, money) 
            takePlayerMoney(source, money)  
            name = getPlayerName(source) 
            outputChatBox("* you give this player: #00ff00$" .. money .. " #0099ccmoney: #ff0000" .. name, source, 0, 150, 255, true) 
            outputChatBox("* ".. name .. " #ff0000this player Give you money #00ff00$" .. money .. " #ff0000!", toWho, 255, 0, 0, true) 
        else 
            outputChatBox("* Player did not exist !", source, 255, 0, 0) 
        end 
        else  
            outputChatBox("* Less Of Money Send = '120' or You Not Have " .. money .. "", source,255,0,0)  
        end  
        else  
            outputChatBox("* Please Write Number", source,255,0,0)  
    end 
end) 
  

أنا جربت الكود و كل شي شغال تمام

يعني في 3 احتمالات

* جالس تطقطق علينا

* عندك مشكلة بالميتا

* ما تعرف تجرب الكود الي يفترض انت الي مبرمجه

Link to comment
السلام عليكم ورحمة الله

انا سويت مود ارسال المال

بس مشكلتة ما يرسل فلوس وما يطلع بالدي بق اي شي

هذي الاكواد

client

local List = guiCreateGridList(0.40, 0.40, 0.12, 0.26, true) 
local Column = guiGridListAddColumn( List, "Send To :", 0.90 ) 
GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(0.52, 0.49, 0.09, 0.05, "إرسال المال", true) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE2EF0F") 
  
  
        GUIEditor.edit[1] = guiCreateEdit(0.52, 0.45, 0.09, 0.03, "", true) 
         
        for i,v in ipairs(getElementsByType("player")) do 
        local Row = guiGridListAddRow (List) 
         guiGridListSetItemText (List, Row, Column, getPlayerName(v), false, false ) 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
    end 
    end 
) 
  
local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientRender", root, 
    function() 
            if ShowPanel then 
        p1 = dxDrawLine(520 - 1,  251 - 1, (520 - 1) + 0, ( 251 - 1) + 40, tocolor(203, 0, 0, 150), 9, false) 
        p2 = dxDrawRectangle(529, 251, 320, 39, tocolor(138, 138, 138, 150), false) 
        p3 = dxDrawLine(520, 295, 520, 528, tocolor(226, 239, 15, 150), 9, false) 
        p4 = dxDrawRectangle(530, 295, 319, 232, tocolor(138, 138, 138, 150), false) 
        p5 = dxDrawText("Send Money Panel", 548, 252, 813, 290, tocolor(203, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) 
        p6 = dxDrawText("Created By Froze\"$", 717, 489, 844, 527, tocolor(226, 239, 15, 255), 1.00, "default", "center", "center", false, false, false, false, false) 
    end 
    end 
) 
  
bindKey("F3", "down", 
function () 
if ShowPanel then 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
ShowPanel = false 
showCursor(false) 
else 
guiSetAlpha(GUIEditor.button[1], 150) 
guiSetAlpha(GUIEditor.edit[1], 150) 
guiSetAlpha(List, 150) 
ShowPanel = true 
showCursor(true) 
end  
end 
) 
  
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then  
showCursor(false) 
ShowPanel = false 
        guiSetAlpha(GUIEditor.button[1], 0) 
        guiSetAlpha(GUIEditor.edit[1], 0) 
        guiSetAlpha(List, 0) 
  
         local name = guiGridListGetItemText(List, guiGridListGetSelectedItem(List) ,1) 
         local money = guiGetText(GUIEditor.edit[1]) 
         if ( guiGridListGetSelectedItem(List) ~= -1 ) then 
         if name == "" or name == " " then return end 
            if tonumber ( money ) then 
         triggerServerEvent("onSendMoney", getLocalPlayer(), name, money) 
       end 
       end 
end  
end) 

server

addEvent("onSendMoney", true)  
addEventHandler("onSendMoney", getRootElement(),  
 function(name, money) 
 if tonumber(money) then  
    if getPlayerMoney(source) >= tonumber(money) and tonumber(money) >= 120 then  
        toWho = getPlayerFromName(name) 
        if toWho ~= false then 
            givePlayerMoney(toWho, money) 
            takePlayerMoney(source, money)  
            name = getPlayerName(source) 
            outputChatBox("* you give this player: #00ff00$" .. money .. " #0099ccmoney: #ff0000" .. name, source, 0, 150, 255, true) 
            outputChatBox("* ".. name .. " #ff0000this player Give you money #00ff00$" .. money .. " #ff0000!", toWho, 255, 0, 0, true) 
        else 
            outputChatBox("* Player did not exist !", source, 255, 0, 0) 
        end 
        else  
            outputChatBox("* Less Of Money Send = '120' or You Not Have " .. money .. "", source,255,0,0)  
        end  
        else  
            outputChatBox("* Please Write Number", source,255,0,0)  
    end 
end) 
  

أنا جربت الكود و كل شي شغال تمام

يعني في 3 احتمالات

* جالس تطقطق علينا

* عندك مشكلة بالميتا

* ما تعرف تجرب الكود الي يفترض انت الي مبرمجه

ابشرك المشكلة من عندي :mrgreen: وانا مبرمج الكلنت فقط و(عدلت) على ملف السيرفر

ويعطيكم العافية ابثرتكم المشكلة مني

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