Jump to content

ped fighting with me against another players


Ayman

Recommended Posts

script.lua:

addCommandHandler ( "spawnbot", 
    function ( thePlayer ) 
        local x, y, z = getElementPosition ( thePlayer ) 
        local rot = getPedRotation ( thePlayer ) 
        local skin = math.random ( 28, 165 ) 
        local interior = getElementInterior ( thePlayer ) 
        local dimension = getElementDimension ( thePlayer ) 
        local weapon = 31 
        local mode = "hunting" 
  
        exports [ "slothbot" ]:spawnBot ( x, ( y + 1 ), z, rot, skin, interior, dimension, false, weapon, mode ) 
    end 
) 

meta.xml:

    

You must create a new folder in your server resources folder which is located at:

MTA San Andreas 1.3\server\mods\deathmatch\resources\ 

Then create 2 files:

1: script.lua

2: meta.xml

Then copy the code I posted for each file and go to your server and start the resource.

Then when started this and slothbot resource, go ingame and write "/spawnbot" in chat box.

Link to comment

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...