iFoReX Posted July 2, 2012 Posted July 2, 2012 no puedo probar este codigo me podrian decir si esta bien o esta mal ? area = {} areaC = {} area[1] = createRadarArea() areaC[1] = createColCuboid() addEventHandler("onPlayerQuit", root, function() local theTeam = getPlayerTeam(source) local team = getTeamFromName(theTeam) if team then setAccountData(source,"team",team) end end ) addEventHandler("onPlayerJoin",root,function() local team = getAccountData(source,"team") if team then setPlayerTeam(source,team) end end ) addCommandHandler("createteam",function(theteam) if theteam then createTeam(theteam) end end ) addCommandHandler("unir",function(player,team) if player and team then local theteam = getTeamFromName(team) setPlayerTeam(player,theteam) end end ) addEventHandler("onColShapeHit",root,function(thePlayer,matchingDimension) if source == areaC[1] then if getElementType ( thePlayer ) == "player" then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "theTeam" ) then killPed(thePlayer) end end end end ) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted July 2, 2012 Posted July 2, 2012 Te lo voy a hacer simple: No tiene sentido. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BorderLine Posted July 2, 2012 Posted July 2, 2012 Intente deducir de que trataba, pero no entendi. Cual es el proposito? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
iFoReX Posted July 2, 2012 Author Posted July 2, 2012 para guardar los teams cuando salen, y comandos para unir players al team, y que cuando entre un player que no es del team al colcuboid muera elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Simonboy Posted July 2, 2012 Posted July 2, 2012 men es muy complicado hay functions que lo hacen mas simple contactame y si quieres lo hablamos Admin ,owner,scripter(learning) and create skins in:
Recommended Posts