if(strcmp(cmd, "/open", true) == 0) { if(strcmp(GetPlayerName(playerid), "[BS]", true, 3)) { //do your actions } }