Author Topic: Simple name detect  (Read 1735 times)

0 Members and 1 Guest are viewing this topic.

Offline The_Lucifer

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Simple name detect
« 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

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Simple name detect
« Reply #1 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


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline The_Lucifer

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: Simple name detect
« Reply #2 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.

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Simple name detect
« Reply #3 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?


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline The_Lucifer

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: Simple name detect
« Reply #4 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 ._.

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Simple name detect
« Reply #5 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


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline The_Lucifer

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: Simple name detect
« Reply #6 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 ...