Posts: 56
Threads: 19
Joined: Jan 2011
Reputation:
0
How do I make a drugs command?
I just want a simple one, where a player can take max 50 grams of drugs (the more you take, the longer you are on drugs).
When a player is on drugs, I want them to have their health slowly refilled.
Is this possible?
Posts: 526
Threads: 59
Joined: Feb 2011
Reputation:
0
Well, you could make a command like '/usedrugs' witch would check if the player has any drugs. If the player has drugs, take a certain amound away from the player and set a timer to refill his health. You could add drunk level as speacial effect.
Posts: 56
Threads: 19
Joined: Jan 2011
Reputation:
0
Hi, thanks for the reply.
That command puts my health down to like 1hp and then people can just kill me straight away.
It will then set my health to full after a while.
But I want it to go up, in stages, not just go to full health all at once.
Posts: 56
Threads: 19
Joined: Jan 2011
Reputation:
0
Hi, thanks for the reply.
I get the following errors.
error 017: undefined symbol "SetPlayerhealth"
error 001: expected token: ";", but found "if"
warning 202: number of arguments does not match definition
warning 211: possibly unintended assignment
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line