Jump to content

[Ayuda] Dar Arma a todos


Recommended Posts

algo asi no no??

addCommandHandler ( "giveall", 
 function (thePlayer,_,weapon )  
 local name = getPlayerName(thePlayer) 
 local accName = getAccountName ( getPlayerAccount ( thePlayer ) )  
 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then  
 giveWeapon (getRootElement(),weapon) 
 outputChatBox ( "#5555FFThe #00FF00Admin #5555FF" .. name .. "#00FF00 Has #5555FFGive #00FF00All #5555FFPlayers #00FF00".. weapon .."#5555FF$", getRootElement(), 255, 0, 0, true ) 
 end 
 end ) 
  

Link to comment

Me lo pueden corregir?

addCommandHandler ( "giveall", 
 function (thePlayer,_,weapon ) 
 local name = getPlayerName(thePlayer) 
 local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
for i, v in ipairs(getElementsByType("player")) do 
 outputChatBox ( "#5555FFThe #00FF00Admin #5555FF" .. name .. "#00FF00 Has #5555FFGive #00FF00All #5555FFPlayers #00FF00".. weapon .."#5555FF$", getRootElement(), 255, 0, 0, true ) 
 end 
 end ) 

Link to comment
addCommandHandler ( "giveall", 
 function (thePlayer,_,weapon ) 
 local name = getPlayerName(thePlayer) 
 local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
for i, v in ipairs(getElementsByType("player")) do 
if weapon then 
giveWeapon(v, tonumber(weapon)) 
 outputChatBox ( "#5555FFThe #00FF00Admin #5555FF" .. name .. "#00FF00 Has #5555FFGive #00FF00All #5555FFPlayers #00FF00".. weapon .."#5555FF$", getRootElement(), 255, 0, 0, true ) 
 end 
 end 
 end 
 end  
) 

Link to comment
addCommandHandler ( "giveall", 
 function (thePlayer,_,weapon ) 
 local name = getPlayerName(thePlayer) 
 local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
for i, v in ipairs(getElementsByType("player")) do 
if weapon then 
giveWeapon(v, tonumber(weapon)) 
 outputChatBox ( "#5555FFThe #00FF00Admin #5555FF" .. name .. "#00FF00 Has #5555FFGive #00FF00All #5555FFPlayers #00FF00".. weapon .."#5555FF$", getRootElement(), 255, 0, 0, true ) 
 end 
 end 
 end 
 end  
) 

Sasuke Y como seria para ponerle el commandhandler /dararma Id y all o los jugadores

Link to comment
  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...