Raised This Month: $ Target: $400
 0% 

Get user weapons on death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-28-2014 , 18:54   Get user weapons on death
Reply With Quote #1

Hey, guys! I'm currently trying to save somehow player's weapons when he dies. The purpose is to respawn him with the same weapons as he died (if it's even possible). So, what I tried:
- Hooking CurWeapon and looping trough get_user_weapons.
- Geting user weapons on death (probably didn't work because he is already dead...)
The problem is that I don't know how to save those weapon indexes and later give them on spawn.
Any help is appereciated.
P.S.: Took a look here, some of the information may be useful: https://forums.alliedmods.net/showthread.php?t=182970
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode