if user die
Hello,
I'm new at coding so i'm trying to add so if he commit suicide he lose 1 points. PHP Code:
|
Re: if user die
Add an else clause to the if( victim != killer ) then subtract the point there.
You'll also need to move the save data to the end of the first if() statement. |
Re: if user die
Like this?
PHP Code:
|
Re: if user die
No. What is the variable "suicide"??
EDIT: PHP Code:
|
Re: if user die
Can't killer be also 0 if the player commits suicide?
|
Re: if user die
The suicide when a people step on a death block or die for falling they lose 1 point.
|
Re: if user die
kotinha
Quote:
Also death by trigger_hurt counts as suicide AFAIK. |
Re: if user die
Quote:
I seems like he wants: "if you die by something other than a player then you lose 1 point" which would require different code. |
| All times are GMT -4. The time now is 04:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.