Jump to content

Ayudita con los Peds(resource)


Recommended Posts

Posted

Uhm... para eso porque no usas el recurso "slothbot" y los creas agresivos?

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

Hay otra: Crea un resource de 1000 lineas de codigo en cliente y servidor, que tenga sistema de Inteligencia Artificial compleja, y luego testeala y trata de arreglarla las 5000 veces que falles...

Claro que no hay otra solucion. A menos que sigas los pasos de arriba ;)

Posted

hahaahaha, que hdp The Kid :P

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

Pues no hay "comando", eso lo creas tu:

function spawnMyBot (thePlayer, skin, weapon, mode) 
local x,y,z = getElementPosition (source) 
local rot= 90 
local interior=0 
local dimension= 0 
local team=false 
local modesubject=thePlayer 
call (getResourceFromName("slothbot"), "spawnBot", x, y+5, z, rot, tostring(skin) or 0, interior, dimension, team, tostring(weapon) or 31, tostring(mode) or "chasing", modesubject) 
end 
addCommandHandler("crearBot", spawnMyBot) 

Con este script puedes usar el comando /crearBot

Ejemplo: /crearBot 29 31 chasing

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

No es tan facil... fijate cuales son los modes permitidos en el topic del recurso del Slothbot.

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
hahaahaha, que hdp The Kid :P

Que pasa? Tenia ganas de decir algo asi hace mucho ;)

¬¬ no soy retrasado =D hablaste the kid ¬¬ -.- me crees tonto ...

Calmate es una broma :)

Posted

¬.¬ ok jejejej bueno ya lei los modos y gracias esperen que se los subo como me quedo

end 
  
function isPedBot(ped) 
    if (isElement(ped)) then 
        if (getElementData (ped, "slothbot") == true) then 
            return true 
        else 
            return false 
        end 
    else 
        return false 
    end 
end 
function spawnMyBot (thePlayer, skin, weapon, mode) 
           local x,y,z = getElementPosition (source) 
           local rot= 90 
           local interior=0 
           local dimension= 0 
           local team=false 
           local modesubject=thePlayer 
           call (getResourceFromName("slothbot"), "spawnBot", x, y+5, z, rot, tostring(skin) or 0, interior, dimension, team, tostring(weapon) or 31, tostring(mode) or "chasing", modesubject) 
        end 
addCommandHandler("crearBot", spawnMyBot) 

Lo puse en el final del script de servidor ...

Cuantos años tienen ustedes???

Intentare lo tuyo the kid xD 5000 veces la falla y 2000 veces script y no me acuerdo mas

Posted

1,000 líneas de codigo por archivo, corregir las 5,000 fallas que tendrás (si no llevas mucho tiempo usando Lua, tendrás 10,000 :P)

Suerte ;)

Posted

Pues es lo mismo, esta en el lado server side verdad?

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

es chasing no chansing.

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.

  • Recently Browsing   0 members

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