Jump to content

I need help (peds...)


Recommended Posts

Posted

Hi. I need this:

**How to do that a ped is only in the dimension 4, and ped has Invul, never dies**

**How to execute a function only if the player is near to the ped**

**How to give a beer to the player, and a function for check if the player has a beer**

Posted

You'll just have to be patient and wait for someone to answer, I'd love to help you out but I have no experience working with Peds. Best I could do would be to re-direct you to the MTA Wiki and look for ped related functions.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

For dimension:

setElementDimension 

And to make it never die, you must cancel the event onClientPedDamage with cancelEvent.

To make it execute a function when near, you can use colshapes.

createColTube 

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

Beer? all you can do is attach an object and use an animation.

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

Which is exactly what I said, I didn't specifiy how he had to attach it.

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

Ah, you mean that, well, you must use colshape, bindKey.

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

There's no such thing as "beer", you must use your imagination to make it.

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

Well you'll need to create a marker/col shape in the place you want the player to get beer from, and then use Bone attachments resource to attach the beer ( which is an object in the game ) to the player, And bind a key to set his animation to drink .

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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