Jump to content

Slothbot


-.Paradox.-

Recommended Posts

Posted

Hello, is there a tutorial about how to create bots and set to follow a specified player? thanks

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

I read it but i didnt understand how to work with :S

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Slothbots work with teams, so in order to make a bot follow you, you must be in the same team as he is ( as far as I know ).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

Okay

EDIT

I made this but i wanted to set to follow the player who spawned the bot and dont kill him,

function Spawnbot1 (source) 
local x,y,z = getElementPosition (source)  
local rot = 90  
local skin = 284  
local interior = 0  
local dimension = 0  
local weapon =22  
local team = getTeamFromName("Admin") 
local mode = "following"  
local modesubject = getLocalPlayer() 
call (getResourceFromName("slothbot"), "spawnBot", x+2, y, z+1, rot, skin, interior, dimension, team, weapon, mode, modesubject)  
end 
  
addCommandHandler("spawnbot", Spawnbot1)  

Edited by Guest

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Its already serverside

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

It's a nil value :D

Neither if you use

getPlayerName(getLocalPlayer())

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

If you leave that getLocalPlayer there, the script won't work.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Yes so I used only

local modesubject = source

It spawn the bot and he follow but if another player spawned the bot and he isn't in the team the bot kill him so i don't want to check the team

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...