Raised This Month: $ Target: $400
 0% 

need help with making user specific cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-24-2005 , 00:26  
Reply With Quote #2

Make a variable, let's say "new wanted[33];". The array size is 33 so that we can store ids from 1-32, each representing a player in the game.

In the command that handles amx_wanted, use cmd_target to get the target. Set wanted[theirplayerid] to 1. When a player leaves, make sure to reset wanted[theirplayerid] back to 0.

On death, see if wanted[theirplayerid] is 1.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



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 10:01.


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