Jump to content

تعديل


Dr.Xen

Recommended Posts

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

ممكن تعديل لكود

addCommandHandler ( "moneyall", 
function ( player, cmd, ad99 ) 
if hasObjectPermissionTo ( player, "function.banPlayer" ) then 
if tonumber ( ad99 ) ~= nil then 
for id, player in ipairs ( getElementsByType ( "player" ) ) do 
givePlayerMoney ( player, tonumber ( ad99 ) ) 
outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. ad99 .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) 
end 
end 
end 
end) 
outputChatBox("== money - all ==", getRootElement(),0,200,255,true) -- OnStartMessage 
  
  
moneyall 100000 

اريد يخلي كذا اذا ضغط الزر توزع من اللوحة مب كتابهه !..

وشكرآ

Edited by Guest
Link to comment

-- Server Side # 
addEvent('Trigger',true) 
addEventHandler('Trigger',root,function(ad99) 
    if tonumber(ad99) and hasObjectPermissionTo ( source, "function.banPlayer" ) then 
        givePlayerMoney ( root, tonumber ( ad99 ) ) 
            outputChatBox("== money - all ==", root,0,200,255,true) 
                outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. ad99 .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) 
        end 
    end 
) 
Link to comment

ياخوي انا مسويه كذا الا اذا كنت تبي توزع فلوس محدده بدون اديت سوي كذا,

-- Server Side # 
local Money = 1000 
  
addEvent('Trigger',true) 
addEventHandler('Trigger',root,function() 
    if hasObjectPermissionTo ( source, "function.banPlayer" ) then 
        givePlayerMoney ( root, Money ) 
            outputChatBox("== money - all ==", root,0,200,255,true) 
                outputChatBox("#FF0000 *** #00FF00ADMIN HAS GIVEN MONEY #00FF00[#fffc17$" .. Money .. "#00ff00]#FF0000#00FF00TO ALL PLAYERS #FF0000*** ", root, 255,0,0,true) 
        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...