Diablomta Posted February 21, 2017 Posted February 21, 2017 (edited) Quería preguntar si se puede que cuando un jugador entre a un team de le un arma? Como lo hago o guíen me pls Edited February 21, 2017 by Diablomta
#Dv^ Posted February 21, 2017 Posted February 21, 2017 Habías hecho este post y te saltaste de tema Quote Este es un ejemplo de cuando alguien ingresa al Team "VIP" mediante un comando y le da un arma team = createTeam ( "VIP" ) addCommandHandler("vip", function(p) setPlayerTeam(p, team) giveWeapon(p, 38, 500) end )
Diablomta Posted February 22, 2017 Author Posted February 22, 2017 (edited) Mmm pero el team ya lo tengo creado necesito que algo como isPlayerTeam Edited February 22, 2017 by Diablomta
Arsilex Posted February 22, 2017 Posted February 22, 2017 local teamName = "VIP" addCommandHandler("vip", function(player) local team = getTeamFromName ( teamName ) if team then setPlayerTeam(player, team) giveWeapon(player, 31, 200) end end)
Arsilex Posted February 23, 2017 Posted February 23, 2017 9 hours ago, Diablomta said: no funciona Has cambiado VIP por el nombre exacto del clan al cual quieres entrar que se supone que lo tienes creado?
Recommended Posts