Only on first kill
How to detect if Survivor killed a hunter first time and the survivor gets a achieviment , but only when first time , and save if that player has an achieviment
PHP Code:
|
Re: Only on first kill
If the player always gets achievement on his first kill with those conditions then you can just check if has yet gotten the achievement. I don't know if you are planning on taking action in a different function on first kill so I added a separate variable. I assume you want the first kill variable reset at each player spawn?
I hope you don't mind hamsandwich. Untested. PHP Code:
|
Re: Only on first kill
Thanks , but i need that the server save if player already gotten the achieviment and when he came back to the server he still had that achieviment.
|
Re: Only on first kill
By the way when i kill not hunter but something like boomer it gives achievement
|
Re: Only on first kill
Quote:
|
Re: Only on first kill
Yes , or when player reconnects.
And what about when i kill zombie not hunter but another class zombie it still show that i killed hunter. |
Re: Only on first kill
Quote:
Quote:
Quote:
|
Re: Only on first kill
What i mean is player gets the achieviment when kills hunter (but when you kill even not hunter you get the achieviment) and he disconnects or map restarts he still had that achieviment. Something like xp in nVault.
|
Re: Only on first kill
Quote:
? Player dies - keep achievement player reconnect - keep achievement map\server restart - keep achievement |
Re: Only on first kill
Yes , and there is one problem when i kill not hunter but another class zombie i still get the achieviment.
|
| All times are GMT -4. The time now is 03:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.