Display a player ID from his name from a command
#2

Check if the ID is online if he is just simply
pawn Код:
format( string, sizeof( string ), "The ID that matches %s is %d.", GetName( id ), id );
SendClientMessage( playerid, WHITE, string );
EDIT: If you doesn't have "GetName" or something like that:
pawn Код:
stock GetName( playerid )
{
    new Name[ MAX_PLAYER_NAME ];
   
    if( IsPlayerConnected( playerid ) )
    {
        GetPlayerName( playerid, Name, sizeof( Name ) );
    }
    else
    {
        Name = "Disconnected/Nothing";
    }
   
    return Name;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)