Jump to content

تعديل


Adham

Recommended Posts

سلام عليكم المود ذا يبعت فلوس للكل؟

ولا لوحدي

انا ابيه يبعت للكل الفي سرفر

GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(225, 206, 393, 200, ":: Gui Send Money ::", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
        GUIEditor.button[1] = guiCreateButton(38, 99, 321, 30, "Send Money To All", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(38, 133, 321, 30, "X", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(112, 52, 243, 36, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(44, 58, 71, 20, "Acccount:", false, GUIEditor.window[1]) 
        GUIEditor.label[2] = guiCreateLabel(236, 177, 200, 18, "Created By [L]e3bA | v1.2", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 255, 0, 0)     
    end 
) 
  
  
  
function Open () 
    guiSetVisible(GUIEditor.window[1], true) 
    showCursor(true) 
end 
addEvent("Abrir", true) 
addEventHandler("Abrir", getLocalPlayer(), Open) 
  
  
  
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
    function ( ) 
          if ( source == GUIEditor.button[2] ) then 
           guiSetVisible(GUIEditor.window[1], false) 
       showCursor(false) 
end 
end) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
    function ( ) 
          if ( source == GUIEditor.button[1] ) then 
          name = getPlayerName(getLocalPlayer()) 
          cantidad = guiGetText(GUIEditor.edit[1]) 
          triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) 
end 
end) 
  
  
  

Link to comment
      function onAdmins ( thePlayer ) 
        local cuenta = getAccountName( getPlayerAccount(thePlayer) ) 
            if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then 
                triggerClientEvent ( "Abrir", thePlayer) 
            else 
                outputChatBox("ACCESO DENEGADO!", thePlayer, 255, 0, 0, true) 
            end 
        end 
        addCommandHandler("sendmoney", onAdmins) 
          
          
        function convertNumber ( number )   
            local formatted = number   
            while true do       
                formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
                if ( k==0 ) then       
                    break   
                end   
            end   
            return formatted 
        end 
          
          
        function Enviar (cantidad, name) 
            givePlayerMoney(getRootElement(), tonumber(cantidad)) 
                outputChatBox("#ffff00[C.Console]: ******************************", getRootElement(), 255, 255, 255, true) 
        end 
        addEvent("SendMoney1", true) 
        addEventHandler("SendMoney1", getRootElement(), Enviar) 
      

Link to comment
      function onAdmins ( thePlayer ) 
        local cuenta = getAccountName( getPlayerAccount(thePlayer) ) 
            if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then 
                triggerClientEvent ( "Abrir", thePlayer) 
            else 
                outputChatBox("ACCESO DENEGADO!", thePlayer, 255, 0, 0, true) 
            end 
        end 
        addCommandHandler("sendmoney", onAdmins) 
          
          
        function convertNumber ( number )   
            local formatted = number   
            while true do       
                formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
                if ( k==0 ) then       
                    break   
                end   
            end   
            return formatted 
        end 
          
          
        function Enviar (cantidad, name) 
            givePlayerMoney(getRootElement(), tonumber(cantidad)) 
                outputChatBox("#ffff00[C.Console]: ******************************", getRootElement(), 255, 255, 255, true) 
        end 
        addEvent("SendMoney1", true) 
        addEventHandler("SendMoney1", getRootElement(), Enviar) 
      

function onAdmins ( thePlayer ) 
    local cuenta = getAccountName( getPlayerAccount(thePlayer) ) 
    if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then 
    triggerClientEvent ( "Abrir", thePlayer) 
else 
    outputChatBox("ACCESO DENEGADO!", thePlayer, 255, 0, 0, true) 
end 
end 
    addCommandHandler("sendmoney", onAdmins) 
  
function convertNumber ( number )   
    local formatted = number   
    while true do       
    formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
    if ( k==0 ) then       
break   
end   
end   
    return formatted 
end 
  
function Enviar (cantidad, name) 
    for _, p in ipairs(getElementsByType('player')) do 
    givePlayerMoney(p, tonumber(cantidad)) 
    outputChatBox("#ffff00[C.Console]: ******************************", p, 255, 255, 255, true) 
end 
end 
addEvent("SendMoney1", true) 
addEventHandler("SendMoney1", getRootElement(), Enviar) 
      

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