31.10.2012, 15:06
Use my code.
pawn Код:
new pName[MAX_PLAYER_NAME]; // Creating a new variable to saving players name.
GetPlayerName(playerid, pName, sizeof(pName)); // GetPlayerName saves the players name of the player 'playerid' in this pName variable
if(!strcmp(pName, "lol", true)) // checking is the name of players lol or not. true means ingorecase so, lOl isn't same as lol when you set it to false LOl is the same as lol
{
// name is right. Do anything here
}