Jump to content

Peds :s


iFoReX

Recommended Posts

Posted
local ped = createPed(0, 0, 0, 5) -- Creamos un PED en las coordenadas: 0, 0, 5 con el skin de CJ. 
setElementFrozen(ped, true) -- Congelamos al PED asi nadie lo puede mover. 

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
local ped = createPed(0, 0, 0, 5) -- Creamos un PED en las coordenadas: 0, 0, 5 con el skin de CJ. 
setElementFrozen(ped, true) -- Congelamos al PED asi nadie lo puede mover. 
setTimer(giveWeapon,2000,1,ped,31,9999,true) -- Creamos un timer de 2 segundos para darle un M4 al ped. 

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

mmm... y lo de rotation me podrias ayudar ? sorry por todas las preguntas pero ya busq en el wiki y no me aparecia nada parecido a lo que quiero de rotation solo me aparecian con comandos :/

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted
local ped = createPed(0, 0, 0, 5, 360) -- Creamos un PED en las coordenadas: 0, 0, 5 con el skin de CJ y con rotacion 360. 
setElementFrozen(ped, true) -- Congelamos al PED asi nadie lo puede mover. 
setTimer(giveWeapon,2000,1,ped,31,9999,true) -- Creamos un timer de 2 segundos para darle un M4 al ped. 

El argumento numero 5 de createPed es la rotacion.

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

gracias man sos re PRO ojala ubiera tanta gente como tu en el mundo :) (Y)

mtascreen20120228195910.png

y ablando de este tema man Digamos yo crearia un grupo en el acl que se llamara DK| ya que es mi clan xD y isiera que solo ellos podrian entrar y a los otros los peds los atacan con las m4 se podria ? o.O ? con la function

local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name 
    if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "DK|" ) ) then 

o algo asi .. se podria ?

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted
y como ago para decorarlo con una m4 ¿?

Trololol.

@Topic: Y si hago un nuevo skin con nuevas texturas ¿Como lo agrego al juego? Estoy seguro que existen funciones, pero no se cual es.

Ingame name: Otto

State: Inactive

Web designer. Playing MTA:SA since 2008.

Posted

ElMota: Para hacer que los ped's disparen es mucho mas dificil, hay un recurso llamado "slothbot", pero no es muy bueno la verdad, y no funciona como vos queres.

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

Eso depende del script que uses.

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

Cuando dices spawns yo pienso en un recurso tipo el de 50p que tiene ciudades y facciones.

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
Category:   script 
Author: 50p - El autor. 
Downloads:  2217 
Rate:    
Rating: 3.9 (48 Votes) 

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
if getPlayerTeam(jugador) == getTeamFromName("Clan DK") then --Si el jugador esta en el team con el nombre "Clan DK" entonces... 
    spawnPlayer(jugador, x, y, z) --Lo spawneamos en la posicion x, y, z 
end 

A eso te referias?

Posted

ElMota: No te recomiendo editar el recurso de spawn de 50p, esta programado con OOP (Object Oriented Programming), y aun no tienes la suficiente experiencia para entenderlo.

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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