Jump to content

مساعده


AL-SAYED

Recommended Posts

تابل عطاني كود توزيع في موضوع قديم

addCommandHandler("gw", 
function(player, cmd, id, amount) 
     local Team = getPlayerTeam(player) 
     if Team and id and amount then 
          local WeaponName = getWeaponNameFromID(tonumber(id)) 
          for i, players in ipairs(getElementsByType("player")) do 
               if Team == getPlayerTeam(players) then 
                    giveWeapon(players, tonumber(id), tonumber(amount)) 
                    outputChatBox(getPlayerName(player).." قد وزع "..WeaponName.." !", players, 255,0,0,true) 
               end 
          end 
     end 
end) 

اشتغل لي مرة لكن الحين ما يشتغل

<meta> 
    <info author="ha7soon" version="1.0" name="giveweapons" type="script" /> 
         <script src="33.lua" type="server" /> 
</meta> 

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