June 08, 2023, 02:06:05 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: -  (Read 1000 times)

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
-
« on: October 04, 2013, 02:20:15 am »

-
« Last Edit: May 10, 2015, 06:54:07 am by icy »
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Kairosh

  • New Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
  • haidere
Re: [Server Plugin] Everyone is Anonymous
« Reply #1 on: October 04, 2013, 02:57:53 am »

Another useless looking plugin. This one renames everyone to Anonymous1,Anonymous2,Anonymous3,etc (so it doesn't make the chat plugin go on an infinite renaming loop). Similar to the auto renaming plugin I guess.

DOWNLOAD HERE
http://arcticmustang.github.io/305labs/Plugins/Anonymous.gml

4chan has come to GG2.
Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server Plugin] Everyone is Anonymous
« Reply #2 on: October 04, 2013, 04:43:57 am »

Code: [Select]
if(_player.name != "Anonymous") {
    <send data>
}

If you rename people "Anonymous#", they're never going to be named "Anonymous"
So you're going to send PLAYER_CHANGENAME every step, flooding the network :O


Also, if everyone is named the same way, you don't need to count the number of players that has "Anonymous" in his name. You may prefer using this
Code: (new code) [Select]
_player.name = "Anonymous" + string(i+1);
instead of this
Code: (current code) [Select]
_player.name = "Anonymous" + string(number);
and remove this
Code: (probably useless code) [Select]
        number = 0;
        with(Player)
        {
            if(string_copy(name, 1, 9) == "Anonymous")
                number += 1;
        }

About the idea, well, I'm not sure. That's a way to solve the problem of new players being named Player all the time, but aliasing was said to be bad, and this plugin is basically giving aliases to everyone :z5:

I personally don't plan to use it, not because it's a bad plugin, just because I prefer to have my players being able to pick the names they want :c1:
Pages: [1]
 

Page created in 0.043 seconds with 36 queries.