Jump to content

مساااعده


Recommended Posts

الكود مش شغال

outputChatBox("#ffff00[C.Console]: "..name:gsub("#%x%x%x%x%x%x", "").." #ffff00has sent Money for all $"..convertNumber (cantidad)  , getRootElement(), 255, 255, 255, true) 

---------------------------

عاوز لما احدد علي حد في الجريد لست

و اكتب المبلغ في الايدت

و ادوس علي بطن ارسال

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

+ سبب ارسال الفلوس

Link to comment

في خطأ ؟

  GUIEditor.gridlist[1] = guiCreateGridList(9, 25, 190, 301, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) 
        GUIEditor.edit[1] = guiCreateEdit(218, 52, 138, 23, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(231, 85, 115, 21, "اعطاء العب فلوس", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
        GUIEditor.edit[3] = guiCreateEdit(218, 183, 138, 23, "", false, GUIEditor.window[1]) 

ddEventHandler("onClientGUIClick",getRootElement(), 
function() 
    if ( source == GUIEditor.button[1] ) then 
        playerNick = guiGetText(GUIEditor.edit[1]) 
        amount = guiGetText(GUIEditor.edit[1]) 
        triggerServerEvent("Floos") 
         
   end  
   end ) 

  
addEvent("Floos", true) addEventHandler("Floos", getRootElement(),  
function( )  
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then  
 toWho = getPlayerFromName(who)  
 if toWho ~= false then  
 local name = getPlayerName(source)  
 local Money = getPlayerMoney(toWho)  
 setPlayerMoney(toWho, Money+tonumber(player))  
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 To " .. who, source, 0, 150, 255, true)  
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. name .. " #ff0000Has Given you #FFFF00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 !", toWho, 255, 0, 0, true)  
 outputChatBox("#ffff00[C.Console]: "..name:gsub("#%x%x%x%x%x%x", "").." #ffff00has sent Money for *$"..convertNumber (cantidad) , getRootElement(), 255, 255, 255, true)  
else  
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", source, 255, 0, 0, true)  
end  
end  
end   
) 

Link to comment
  
 GUIEditor.gridlist[1] = guiCreateGridList(9, 25, 190, 301, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) 
        GUIEditor.edit[1] = guiCreateEdit(218, 52, 138, 23, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(231, 85, 115, 21, "اعطاء العب فلوس", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
        GUIEditor.edit[3] = guiCreateEdit(218, 183, 138, 23, "", false, GUIEditor.window[1]) 
  

  
addEventHandler("onClientGUIClick",root, 
function() 
    if ( source == GUIEditor.button[1] ) then 
    local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) 
    local amount = guiGetText(GUIEditor.edit[1]) 
    triggerServerEvent("Floos",localPlayer,amount,playerName) 
   end 
   end ) 
    
  

  
  
addEvent("Floos", true)  
addEventHandler("Floos", root, 
function( amount,plr ) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then 
 local toWho = getPlayerFromName(plr) 
 local player = getPlayerName(toWho) 
 local name = getPlayerName(source) 
 local Money = getPlayerMoney(source) 
 if Money == 0 then return end 
 if tonumber(amount) then 
 takePlayerMoney(source,tonumber(amount)) 
 givePlayerMoney(toWho,amount) 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. player .. " #00ff00$#ffff00 ) Money ", source, 0, 150, 255, true) 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. name .. " #ff0000Has Given you #FFFF00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 !", toWho, 255, 0, 0, true) 
else 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", source, 255, 0, 0, true) 
end 
end 
end   
) 
  

Link to comment

جرب

  
  
 GUIEditor.gridlist[1] = guiCreateGridList(9, 25, 190, 301, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) 
        GUIEditor.edit[1] = guiCreateEdit(218, 52, 138, 23, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(231, 85, 115, 21, "اعطاء العب فلوس", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFFFFFF") 
        GUIEditor.edit[3] = guiCreateEdit(218, 183, 138, 23, "", false, GUIEditor.window[1]) 
  
  

  
addEventHandler("onClientGUIClick",root, 
function() 
    if ( source == GUIEditor.button[1] ) then 
    local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) 
    local amount = guiGetText(GUIEditor.edit[1]) 
    triggerServerEvent("Floos",localPlayer,amount,playerName) 
   end 
   end ) 
    
  
  

  
  
  
addEvent("Floos", true) 
addEventHandler("Floos", root, 
function( amount,plr ) 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then 
 local toWho = getPlayerFromName(plr) 
 local player = getPlayerName(toWho) 
 local name = getPlayerName(source) 
 local Money = getPlayerMoney(source) 
 if Money == 0 then return end 
 if tonumber(amount) then 
 takePlayerMoney(source,tonumber(amount)) 
 givePlayerMoney(toWho,tonumber(amount)) 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. player .. " #00ff00$#ffff00 ) Money ", source, 0, 150, 255, true) 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 *".. name .. " #ff0000Has Given you #FFFF00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 !", toWho, 255, 0, 0, true) 
else 
 outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", source, 255, 0, 0, true) 
end 
end 
end   
) 
  
  

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