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