Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: The_Lucifer on August 31, 2014, 06:56:53 pm

Title: Simple name detect
Post by: The_Lucifer on August 31, 2014, 06:56:53 pm
Hello all!, today I made a simple name detect system ( Detects custom names ), here it is:

OnPlayerConnect:

[pawn]new name[MAX_PLAYER_NAME];[/pawn]

[pawn]GetPlayerName( playerid, name, sizeof(name))[/pawn]

[pawn]if (!strcmp(name,"-NAME-",true))
    {
    SendClientMessage(playerid, BLUE, "Hi!, your a special member!");
    }[/pawn]

For example, i have this:

[pawn]if (!strcmp(LuciferName,"NE.CrystalBlue",true))
    {
    SendClientMessage(playerid, BLUE, " ");
    SendClientMessage(playerid, BLUE, " ");
    SendClientMessage(playerid, BLUE, " ");
    SendClientMessage(playerid, BLUE, " ");
    SendClientMessageToAll(RED, "NE.CrystalBlue has Connected as a Special-Player!");
    SendClientMessage(playerid, BLUE, "Hello! NE.CrystalBlue, your a Special player for this server.");
    SendClientMessage(playerid, BLUE, "To loggin use /c conectar [ Password ]");
    }[/pawn]

Hope u liked it, any bugs? tell me
Title: Re: Simple name detect
Post by: NeskWriter on September 01, 2014, 08:53:11 pm
Personally I don't find it useful, and I'd like to note that it's definitely made by Res

Quote from: The_Lucifer
today I made a simple name detect system
probably today you have been given a reply message in which Res sent you the code
Title: Re: Simple name detect
Post by: The_Lucifer on September 01, 2014, 08:55:28 pm
Dude, of course someone else in this world has made it too, but i scripted it and im just sharing it.
Title: Re: Simple name detect
Post by: NeskWriter on September 01, 2014, 09:07:56 pm
Dude, of course someone else in this world has made it too, but i scripted it and im just sharing it.

Even if you'd do so, Why would your code have Res' name?
Title: Re: Simple name detect
Post by: The_Lucifer on September 01, 2014, 09:46:23 pm
Who is Res?! is Res NE.restricted? i have his name there becuase he is a special person, he took off all the warning of my server, thats why ._.
Title: Re: Simple name detect
Post by: NeskWriter on September 01, 2014, 09:52:45 pm
Who is Res?! is Res NE.restricted? i have his name there becuase he is a special person, he took off all the warning of my server, thats why ._.

Wow you even did notice that his name since few days is CrystalBlue
Title: Re: Simple name detect
Post by: The_Lucifer on September 01, 2014, 10:04:37 pm
Of course, Im not blind, on his profile it says "Moderators change my name to NE.CrystalBlue ...