Jump to content

Ayuda


NIKO_19997

Recommended Posts

hola, me podrian ayudar a crear un script para poder dar armas , skin , autos y vida a todos los usuarios de un team por comandos como por ejemplo : /setweapon 34 team Army , /setskin 23 team Army , /givevehicle 499 team Army , /sethealth 100 team Army

Espero me puedan ayudar y muchas gracias por su tiempo ;)

Link to comment
  • MTA Team

Un Ejemplo para darle un arma especificado a un team especificado.-:

(No Probado)

El comando seria: /dararma 32 Cops (datos de ejemplo)

  
function dararmas ( _,_, arma,nombret) 
local elTeam = getTeamFromName ( tostring(nombret) ) 
if ( elTeam ) and ( arma ) then 
local jugadores = getPlayersInTeam ( elTeam ) 
for playerKey, valores in ipairs ( jugadores ) do 
giveWeapon ( valores, tonumber(arma) ) 
end 
else 
end 
end 
addCommandHandler ( "dararma", dararmas ) 
  

Link to comment
  • Recently Browsing   0 members

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