NIKO_19997 Posted August 12, 2013 Share Posted August 12, 2013 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
Castillo Posted August 12, 2013 Share Posted August 12, 2013 Las funciones que necesitas son: addCommandHandler getTeamFromName getPlayersInTeam giveWeapon -- Para dar armas. setElementModel -- Para cambiar el skin. setElementHealth -- Para dar vida. Link to comment
NIKO_19997 Posted August 13, 2013 Author Share Posted August 13, 2013 lo siento si soy un poco molesto solid , pero me podrias guiar un poco mas? Link to comment
MTA Team 0xCiBeR Posted August 13, 2013 MTA Team Share Posted August 13, 2013 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
NIKO_19997 Posted August 13, 2013 Author Share Posted August 13, 2013 Muchas gracias a ambos Link to comment
Recommended Posts