Raised This Month: $ Target: $400
 0% 

FM_AlertMessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
capndurk
Senior Member
Join Date: Feb 2006
Old 03-28-2006 , 01:08  
Reply With Quote #1

My goal in all this is to protect a person's rank when he switches teams, as well as his score within the server (+showscores thing). In order to protect the person's rank, I have to retrieve the message before it's stored in csstats.dat or whatever that file is, and the only way to do that is to capture the suicide using Fakemeta (as far as I can see).

So, if the person is switching (g_switching[id]), then I return FMRES_SUPERCEDE in order to block the message, and that will stop it from saving to the .dat file. This integer array is what also separates the regular suicides from the team-switching suicides.

//Edit// I also do have a couple bugs in mind that need fixing, but I just wanted to get this part of the plugin finished first.


P.S. Thanks for the help.
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
Reply



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 16:29.


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