Jump to content

Peeing in MTA. lol


dashe123

Recommended Posts

Hey guys. I need some help. I want to make a script which makes the player want to pee every hour and if he doesn't pee in 30 minutes his health starts to decrease every minute until he dies or pees to reload the peeing timer. To pee the player should type a command /pee (start peeing animation). After peeing the "time to pee" is reloaded to zero and the player is free from peeing for one hour and so on. Can anyone help me make a script or give me the right functions or tips?

Hope u understand what I want.

PS. sorry for a disturbing and yellow topic. :lol:

Link to post

I will help you little bit in that :D

*WARN* This is not the full script, I'm just making some steps to help you making the script :

health = getElementHealth (player)

setElementHealth (player, health - 10)

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

setTimer (NAMEofFUNCTION, 60000)

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

peeTimer = setTimer (nameOfPeeingScript, 30000)

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

if (nameOfPeeingScript) then

killTimer (peeTimer)

Link to post

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