30 Mar 11, 08:05AM
Here's the code that does it:
In other words, the player name 'you' gets treated as if it was a duplicated name in the server.
[SELECT ALL] Code:
bool duplicatename(playerent *d, char *name = NULL)
{
if(!name) name = d->name;
if(d!=player1 && !strcmp(name, player1->name)) return true;
if(!strcmp(name, "you")) return true;
...