Anyelberth Posted March 3, 2013 Posted March 3, 2013 Hola Chicos.... Quisiera Saver Como Acer Para Que Un Ped o un slothbot, Proteja Una Entrada. Que Tenga Una Arma Para Defender La Entrada. Excepto Los Miembros De Un Clan.. Me Explico: Que Le Dispare a Los Que No Son De El Clan Ejemplo: RRD Que No Los Persigua.. Que Se Quede Ally En La Puerta... Se Los Tendre Agradecido http://oi50.tinypic.com/2po49k2.jpg[/img]
NodZen Posted March 3, 2013 Posted March 3, 2013 Bueno primero creas el Bot en las coordenadas que quieras. Luego usas setElementFrozen Eso va a hacer que el bot solo pueda atacar con el arma pero sin moverse. Y para lo del clan. Creo que el resource tiene una opcion asi, pero no me acuerdo. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Julian09123 Posted March 3, 2013 Posted March 3, 2013 Creo que Haci ;P y agregale lo de NOD createTeam("El Team",255,255,255) function Boss () slothbot = exports [ "slothbot" ]:spawnBot ( 2087.47266, -1603.11841, 13.38061, 92.179473876953, 163, 0, 0,team, 30, "guarding", chasing ) Cambia las coordenadas de donde quieres que Este. exports.extrahealth:setElementInvulnerable ( slothbot, true ) end addEventHandler("onResourceStart", getRootElement(), Boss) addEventHandler("onBotSpawned",getRootElement(), function ( ) setBotTeam(slothbot,team) getBotTeam ( slothbot ) setBotAttackEnabled(slothbot, true) end ) Skype: Juliang09123
Anyelberth Posted March 3, 2013 Author Posted March 3, 2013 Creo que Haci ;P y agregale lo de NOD createTeam("El Team",255,255,255) function Boss () slothbot = exports [ "slothbot" ]:spawnBot ( 2087.47266, -1603.11841, 13.38061, 92.179473876953, 163, 0, 0,team, 30, "guarding", chasing ) Cambia las coordenadas de donde quieres que Este. exports.extrahealth:setElementInvulnerable ( slothbot, true ) end addEventHandler("onResourceStart", getRootElement(), Boss) addEventHandler("onBotSpawned",getRootElement(), function ( ) setBotTeam(slothbot,team) getBotTeam ( slothbot ) setBotAttackEnabled(slothbot, true) end ) No Me Funciona... Me Sale En Debugscript 3 Lo Siguiente protector.lua:4: '=' expected near 'las' http://oi50.tinypic.com/2po49k2.jpg[/img]
Anyelberth Posted March 3, 2013 Author Posted March 3, 2013 Creo que Haci ;P y agregale lo de NOD createTeam("El Team",255,255,255) function Boss () slothbot = exports [ "slothbot" ]:spawnBot ( 2087.47266, -1603.11841, 13.38061, 92.179473876953, 163, 0, 0,team, 30, "guarding", chasing ) Cambia las coordenadas de donde quieres que Este. exports.extrahealth:setElementInvulnerable ( slothbot, true ) end addEventHandler("onResourceStart", getRootElement(), Boss) addEventHandler("onBotSpawned",getRootElement(), function ( ) setBotTeam(slothbot,team) getBotTeam ( slothbot ) setBotAttackEnabled(slothbot, true) end ) No Me Funciona... Me Sale En Debugscript 3 Lo Siguiente protector.lua:4: '=' expected near 'las' http://oi50.tinypic.com/2po49k2.jpg[/img]
NodZen Posted March 3, 2013 Posted March 3, 2013 Quitaste la parte que dice "Cambia las coordenadas de donde quieres que Este."?. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Anyelberth Posted March 3, 2013 Author Posted March 3, 2013 Cuando Copio y Pego, No Me Sale Ese Texto http://oi50.tinypic.com/2po49k2.jpg[/img]
Anyelberth Posted March 3, 2013 Author Posted March 3, 2013 Claro.. Eso Creo... http://oi50.tinypic.com/2po49k2.jpg[/img]
Julian09123 Posted March 3, 2013 Posted March 3, 2013 Ok Mira Hay Lo arregle, Pero Tienes que Usar Slothbot y ExtraHealth. Links: https://community.multitheftauto.com/in ... ils&id=672 https://community.multitheftauto.com/in ... ls&id=5195 Y tienes que Prender Primero Extrahealth Dps Slothbot y dps el BOT. createTeam("El Team",255,255,255) function Boss () slothbot = exports [ "slothbot" ]:spawnBot ( 2087.47266, -1603.11841, 13.38061, 92.179473876953, 163, 0, 0,team, 30, "guarding", chasing ) exports.extrahealth:setElementInvulnerable ( slothbot, true ) end addEventHandler("onResourceStart", getRootElement(), Boss) addEventHandler("onBotSpawned",getRootElement(), function ( ) setBotTeam(slothbot,team) getBotTeam ( slothbot ) setBotAttackEnabled(slothbot, true) end ) Skype: Juliang09123
Anyelberth Posted March 3, 2013 Author Posted March 3, 2013 ok Gracias http://oi50.tinypic.com/2po49k2.jpg[/img]
Recommended Posts