Jump to content

توزيع اسلحة لتيمم معين


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(player) then 
                    giveWeapon(players, tonumber(id), tonumber(amount)) 
                    outputChatBox(getPlayerName(player).." قد وزع "..WeaponName.." !", players, 0,0,255,true) 
               end 
          end 
     end 
end) 

ابي يوزع اسلحة فقط لتيم بوليسس

لاني مليت وانا اغير في player

واعدل فيه اوحط

Police ماصار

Link to comment

جرب :fadein:

addCommandHandler("gw", 
function(player, cmd, id, amount) 
     local Team = getTeamFromName("Police") 
     if Team and id and amount then 
          local WeaponName = getWeaponNameFromID(tonumber(id)) 
          for i, players in ipairs(getPlayersInTeam(Team)) do 
                    giveWeapon(players, tonumber(id), tonumber(amount)) 
                    outputChatBox(getPlayerName(player).." قد وزع "..WeaponName.." !", players, 0,0,255,true) 
          end 
     end 
end) 
Link to comment
جرب :fadein:

addCommandHandler("gw", 
function(player, cmd, id, amount) 
     local Team = getTeamFromName("Police") 
     if Team and id and amount then 
          local WeaponName = getWeaponNameFromID(tonumber(id)) 
          for i, players in ipairs(getPlayersInTeam(Team)) do 
                    giveWeapon(players, tonumber(id), tonumber(amount)) 
                    outputChatBox(getPlayerName(player).." قد وزع "..WeaponName.." !", players, 0,0,255,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...