Alexs Posted February 29, 2012 Posted February 29, 2012 I want to know if anyone has any example, or can teach me abour this resource, i rememb a script in the comunitty, but i cant find it.... PD: Sorry My Bad English Developer @ MYVAL
Castillo Posted February 29, 2012 Posted February 29, 2012 https://wiki.multitheftauto.com/wiki/Slothman/Slothbot San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted February 29, 2012 Author Posted February 29, 2012 https://wiki.multitheftauto.com/wiki/Slothman/Slothbot i am newbie, i cant stand the Call Function, can you give me any script, and i change coordinates, skin ID, Weapon ID, etc... when i try use the Wiki i just find errors in the Resource Start Developer @ MYVAL
Castillo Posted February 29, 2012 Posted February 29, 2012 function spawnSlothBot(thePlayer, cmd, skin, weapon, mode, rot, team) local x, y, z = getElementPosition (thePlayer) local rot = tonumber(rot) or 0 local team = getTeamFromName(team) local int = getElementInterior(thePlayer) local dim = getElementDimension(thePlayer) local weapon = tonumber(weapon) or 0 local skin = tonumber(skin) or 0 exports["slothbot"]:spawnBot( x, y+1, z, rot, skin, int, dim, team, weapon, mode or "hunting", true ) end addCommandHandler ( "spawnbot", spawnSlothBot ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted February 29, 2012 Author Posted February 29, 2012 function spawnSlothBot(thePlayer, cmd, skin, weapon, mode, rot, team) local x, y, z = getElementPosition (thePlayer) local rot = tonumber(rot) or 0 local team = getTeamFromName(team) local int = getElementInterior(thePlayer) local dim = getElementDimension(thePlayer) local weapon = tonumber(weapon) or 0 local skin = tonumber(skin) or 0 exports["slothbot"]:spawnBot( x, y+1, z, rot, skin, int, dim, team, weapon, mode or "hunting", true ) end addCommandHandler ( "spawnbot", spawnSlothBot ) Dont Work I use /spawnbot and appears a guy, but just look me, dont atack and i want to know, there is a way to do it spawn just in a zone, and no at my side? Developer @ MYVAL
Castillo Posted February 29, 2012 Posted February 29, 2012 That's just a example code, change the: x, y, z coordinates to a new position. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted February 29, 2012 Author Posted February 29, 2012 That's just a example code, change the: x, y, z coordinates to a new position. Thanks That's work and the problem with the attack was solved.. Developer @ MYVAL
Castillo Posted February 29, 2012 Posted February 29, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now