[HELP] Remember weapons
How do i set weapons of killer and victim to previous weapons when they were respawned?
eg.
|
Re: [HELP] Remember weapons
Save the weapons list in an array when they die and give it back to them on spawn.
|
Re: [HELP] Remember weapons
Can you show me example?
|
Re: [HELP] Remember weapons
https://forums.alliedmods.net/showthread.php?t=308093
Here is your example. Just make the array globals and index them by player index. |
Re: [HELP] Remember weapons
Okay, so i tried making this.
It works fine, but gives some log errors. Any fix? Code: Code:
Error : PHP Code:
|
Re: [HELP] Remember weapons
You need to pick weapons to array at Ham_AddPlayerItem i guess, is better than store on death.
Also if possible spawn a player using Ham_CS_RoundRespawn |
Re: [HELP] Remember weapons
I used Fakemeta everywhere in my plugin, don't wanna add another include for just this thing.
What am i doing wrong here? |
Re: [HELP] Remember weapons
Quote:
|
Re: [HELP] Remember weapons
Quote:
Add as many includes as you need. By trying to use only one module you are doing way more harm than good. |
Re: [HELP] Remember weapons
Okay, will mixup that.
But isn't there a way of doing this with DeathMsg or client_death? |
| All times are GMT -4. The time now is 04:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.