I just started looking into manialinks, maniacodes and such. I opened chat.admin.php to have a look there, and I saw a bunch of ID ranges for different commands... example
Code: Select all
// handles action id's "2201"-"2400" for /admin warn
later in the code this appears...
Code: Select all
target = $player->playerlist[$answer[2]-2201]['login'];
Now... I am on my server with 2 accounts. When I click the warn button on one of 2 players, and log out $answer[2] in console, I get 2201. When I click the other player, I get 2202. These numbers are subtracted by 2201 and will essentially just give me the login of the player who I want to warn... But here's what I don't get: Why is the range 2201 - 2400? That's 199.... But TM server allow up to 255 players????? If $answer[2] just increase for every player, after 200 players (or 199 whatever) it should be at 2400... What happens to the other 55 player? The warn command doesn't work for them??
