Jump to content

Breath


mjau

Recommended Posts

Posted

is there any way to cancel the breathign when ur underwater ?

I wanna make my own diver system so i can add a timer to use as breath

n-560x95_E60303_FFFFFF_030303_FF0303.png
Posted

Use the pedStats, I am sure you can handle it yourself aswell.

setPedStat 

Put the stamina level to low on everyone, and then put up a timer for it to increase the level.

If I helped you, please click the like button on the right ;) Thanks!

Posted

Will that cancel the breathing underwater ?

Edit: i dont think you got me right i mean i am making a diver job where you can dive and get things, for that i will need to cancel the breathing underwater and make my own system for breathing but how can i cancel breath ?

n-560x95_E60303_FFFFFF_030303_FF0303.png
Posted

I don't think you can "cancel" the breath.

You can hide it with showPlayerHudComponent and maybe use cancelEvent() onClientPlayerDamage, when the player is underwater.

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

Doesn't cancelEvent in onClientPlayerDamage do the job? Death reasons in this list are given as a weapon ID when player dies, so if I get it correctly, they should also be given as a weapon ID when the player gets damaged.

-

Posted

ok but if i use isPedInWater that would make him impossible to kill for the cops when he is in water in a rpg server ?

Edit forget it i just do if attacker == player then blahblhablah

n-560x95_E60303_FFFFFF_030303_FF0303.png

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