Results 1 to 6 of 6

Thread: Count Player On Minimap ?

  1. #1
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default Count Player On Minimap ?

    Hey,
    I heard that there is a (srl?) function to count the players on the minimap.

    How's that called ?

    ~caused

    EDIT.. NVM Its PlayersOnMap
    Last edited by caused; 06-20-2009 at 07:53 PM. Reason: EDIT.. NVM Its PlayersOnMap :D

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    In the new SRL revision #35, it is CountDots.

  3. #3
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    Yup, found it out now xD... though, when I use CountDots('Player')... It messes up this part and creates an acces violation in scar.exe... so i commented it out :3...

    // if (WhatDot = 'player') or (WhatDot = 'white') then
    // begin
    // InvertTPA(Result);
    // SetLength(Result, Length(Result) - 1);
    // InvertTPA(Result);
    // end;

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Hmm, in all honesty, idk why it even inverts the tpa.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Hmm, in all honesty, idk why it even inverts the tpa.
    It has to remove the first Dot (which is your player dot). So it inverts, sets length to Length - 1.

  6. #6
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    why not just do this
    SCAR Code:
    Swap(Result[0], Result[High(result)]);
    SetLength(Result, Length(Result)-1);

    or this
    SCAR Code:
    for i := 0 to high(result) do
      if InRange(Result[i].x, MMCX-3, MMCX+3) then
        if InRange(Result[i].y, MMCY-3, MMCY+3) then
        begin
          swap(result[i], result[high(result)]);
          SetLength(result, high(result));
        end;

    i really don't think inverting 2x is the fastest way
    Last edited by marpis; 06-20-2009 at 09:31 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •