18.06.2013, 18:45
Just make an input dialog whenever you want the player to search a player. For example, a command.
Then OnDialogResponse
You weren't specific what-so-ever, you didn't say you wanted it to check a database (mysql) or files for the name, etc, or if you just wanted online players, etc.
pawn Code:
#define DIALOG_PLAYER_SEARCH (1)
ShowPlayerDialog(playerid,DIALOG_PLAYER_SEARCH, DIALOG_STYLE_INPUT, "Search", "Type a players name to search it!", "Search", "Cancel");
pawn Code:
switch(dialogid)
{
case DIALOG_PLAYER_SEARCH:
{
//Do whatever you want it to do with inputtext, which is what they type
}
}

