View Single Post
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 06-17-2009 , 20:08   Re: Hostage Interaction in CSS
Reply With Quote #6

DJ Tsunami, I did some testing.

Code:
   new LeaderID = GetEntDataEnt2(Hostage_ID, g_LeaderOffset);
   new LeaderUserID = -1;
   if (LeaderID != -1)
   {
      LeaderUserID = GetClientUserId(LeaderID);
   }
if LeaderID is not -1 then someone is following, I fired the event during this time and got errors complaining that the client index (userid -1) was not valid. So I've confirmed it is giving me a userid back and not a client index. At first I was worried because my testing scenario might have overlooked this but I added more bots and people and found this was the case. Any idea why the mleader returns (userid - 1)?
databomb is offline