View Single Post
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 07-07-2013 , 17:13   Re: [TF2] gScramble (Redux)
Reply With Quote #19

Quote:
Originally Posted by Powerlord View Post
Which would be because the player doesn't have an m_iScore. It's stored as a single value in CTeam (for team score) and in an array in CTFPlayerResource for players. Hence why the non-Redux version used TF2_GetPlayerResourceData to get this value.

In SourceMod 1.5, TF2_GetPlayerResourceData(client, TFResource_Score) has been deprecated in favor of the more generic:

PHP Code:
new entity GetPlayerResourceEntity(); // from sdktools
new score GetEntProp(entityProp_Send"m_iScore"client); 
I'm using 1.6 dev and this bug is causing not working scramble sometimes... It does works sometimes though...
__________________
luki1412 is offline