Check if a player died?
Sup, my name is John. Will this work?
if (attacker == 0) { //Player died? } |
Re: Check if a player died?
It depends on what function you're getting 'attacker' from.
Also, the ID of 0 will NOT be a player (0 = world). |
Re: Check if a player died?
I found it in a XP Based Plugin - Tutorial.
new attacker = read_data(1) And i thought if (attacker == 0) { //You killed a player } Would work.. |
Re: Check if a player died?
PHP Code:
|
Re: Check if a player died?
Could you describe how this work?
|
| All times are GMT -4. The time now is 05:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.